This README assumes that you have both Node and MongoDB installed on your computer. If that is not the case, please follow the instructions listed on each respective website to install this on your machine.
Node: https://nodejs.org/en/download/
MongoDB: https://docs.mongodb.com/guides/server/install/
To quickly install all required files on your computer run the following commands in your terminal.
git clone https://github.com/aaronpo97/discord-bot/
cd discord-bot
npm i
To create a bot account with discord, please follow the following instructions found on:
https://discordjs.guide/preparations/setting-up-a-bot-application.html
Step 3: Create a .env
file to store the following bot information (these are your environment variables for configuration).
How to find user id: https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID-
BOT_OWNER=YourUserId
BOT_PREFIX=YourBotPrefix
BOT_TOKEN=YourBotToken
Example: (not real tokens)
BOT_OWNER=1389201830128
BOT_PREFIX=bot!
BOT_TOKEN=1242142141444
Run the following commands in your terminal to run the bot locally on your machine.
npm start