UPDATE 02/09/2019: Aimed to be rewritten using Commando.js for easiness of maintainability.
API Doc: https://discord.js.org
Based on guide: https://discordjs.guide/
Not implemented:
To make this code work, you'll need to setup your own bot with its own token. To do so, follow this steps.
# Install dependencies
npm install
# Start bot
npm run serve
When I run npm run serve
, I get: UnhandledPromiseRejectionWarning: Error: Incorrect login details were provided
Make sure you have a ./src/config.json
file with your token properly filled.
To get a default config.json
, run npm run init
.
To setup your token, see the Setup section.