Discord bot aimed towards collecting user suggested films to suggest a new movie.
The bot tries to collects IMDB and Letterboxd film suggestions from users and recommends a random film from the database.
- Film collection:
- Movie suggestion:
- Random suggestion:
- Download Git for your system from the Git website.
- Run the installer file and follow the instructions.
- Verify your git install by opening a terminal and typing
git --version
. - Done for now! You can continue to the next section.
- Download the current Node.js and NPM bundle for your system from the Node.js website.
- Run the installer file and follow the instructions.
- Verify your Node.js and NPM install by typing
node -v
andnpm -v
, respectively. - Done for now! You can continue to the next section.
- Download the MySQL Community server from the MySQL website.
- Run the installer file and follow the instructions.
- Copy the temp password at the last prompt, you will need this.
- Run the command
mysql -u root -p
and enter the password you copied from the installer. - Once logged in to the root user, run
CREATE USER 'your_username' IDENTIFIED BY 'your_password';
- Clone the repository to your machine using
git clone https://github.com/jnwarner/motd-bot.git
- Open the directory in a terminal and use the command
npm install
to install dependencies. - Log into the MySQL account made when installing mysql using the command
mysql -u your_username -p
- Run the db.sql file using
mysql -u your_username -p < /path/to/db.sql
, creating the tables for the bot. - Grant permissions to user using the command
GRANT PRIVILEGES ON movies.* TO 'your_username'@'localhost' IDENTIFIED BY 'your_password';
- Insert the necessary data in a file named tokens.json (reference can be found in tokens.example.json)
- Done! You can start your bot using
node index.js
or use a process management service such as PM2 to run the bot!