These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system (TODO).
- Windows: Download and Install Node.js and npm
- Linux:
Node.js
andnpm
aren't really being kept up to date on Debian/Ubuntu in the repositories, so to get the latest versions of both, enter the following in your command line:
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs
Run the following installs from the repository's root directory:
npm install
npm install discord.js
npm install dotenv
This project uses environment variables to extort your Bot Token from the public.
Create a file named .env
in the repository's root directory. Copy and paste your Bot Token into the file and save it:
BOT_TOKEN = YOUR_TOKEN_HERE
You can find your Bot Token on the Discord Developer Portal.
Enter npm run dev
in your command line to start the bot. Each time you save changes to the bot's files it gets restarted, letting you easily test changes.
Slide your way through the server!