-
Notifications
You must be signed in to change notification settings - Fork 11
1. Initial Setup
Requirements:
- Nodejs v8.9.1 or higher
- MySQL Server Access or Local Server
- Discord Account
- Discord Server
Setup Steps:
-
Create a Discord Bot Account, by selecting: "App Bot User" at https://discordapp.com/developers/applications/me
-
Set environment variable "DISCORD_TOKEN" to the token found for your App Bot User. This is how the bot will authenticate/login as your App Bot User
-
Set environment variable "SERVER_ID" to the ID of the main server for the bot. (Enable Developer Mode under User Settings->Appearance->Developer Mode, and then right click on server name and select Copy ID)
-
Click the "Generate OAuth2 URL" and navigate to this URL in order to connect your bot user to a server you own (or check "Public Bot" and then anyone can add the bot to their server)
-
Ensure node dependencies are met with (run first line as admin, and second line inside the project folder)
npm install --global --production windows-build-tools
npm install
-
Ensure SQL Dependency/Table Requirements are met. (https://github.com/tespacarleton/DiscordBot/wiki/2.-SQL-Setup)
-
Start the app with
node app.js