Based on an example of a Discord.js Bot Handler created by the Idiot's Guide Community.
git
command line (Windows|Linux|MacOS) installednode
Version 8.0.0 or higher- The node-gyp build tools. This is a pre-requisite for Enmap, but also for a lot of other modules. See The Enmap Guide for details and requirements for your OS. Just follow what's in the tabbed block only, then come back here!
You also need your bot's token. This is obtained by creating an application in the Developer section of discordapp.com. Check the first section of this page for more info.
In a command prompt in your projects folder (wherever that may be) run the following:
git clone https://github.com/jdamboeck/b05.wtf-discord-bot.git
Once finished:
- In the folder from where you ran the git command, run
cd guidebot
and then runnpm install
- If you get any error about python or msibuild.exe or binding, read the requirements section again!
- Run
node setup.js
to generate a proper configuration file and settings.
To start the bot, in the command prompt, run the following command:
node index.js
To add the bot to your guild, you have to get an oauth link for it.
You can use this site to help you generate a full OAuth Link, which includes a calculator for the permissions: https://finitereality.github.io/permissions-calculator/?v=0