Rated E for everyone.
- Node.js 10 or higher
- NPM 6 or higher
- Discord Account
-
Visit www.discord.com and create a new account if you don't have one already
-
Visit the developer portal https://discord.com/developers/applications
-
Create a new application & give it a name
-
Click the Bot tab and add a bot
-
Save your bot's token, you'll be needing it in the latter steps
- Clone the repository
$ git clone https://github.com/grantkang/E-Bot.git
- Once inside the project directory, install the dependencies
$ npm install
- Create a config.json in the root of the project. Include a command prefix and your bot's token from earlier
{ "prefix": "<YOUR_COMMAND_PREFIX>", "token": "<YOUR_BOT'S_TOKEN>" }
- ..and you're set!
-
Visit the developer portal https://discord.com/developers/applications
-
Choose your app
-
Copy the client id
-
Visit https://discord.com/oauth2/authorize?client_id=<YOUR_CLIENT_ID>&scope=bot and choose the server you want to add your bot in
-
Navigate to the root directory of the project and run the following npm script
$ npm run start
Currently available commands are in server/commands/available
. To create new commands, create new JavaScript files in that folder while following the same format as existing files.
- to enable commands, run the enable script while providing the names of the JavaScript files of the commands
$ npm run cmd-enable break-time.js ping.js
- to disable commands, run the disable script while providing the names of the JavaScript files of the commands
$ npm run cmd-disable break-time.js ping.js beep.js