Discord.Short comes with special events. These include:
MONGOCONNECT - When bot connects to MongoDB
MONGOCONNECT
IDLEPING - Whenever the Heroku anti-idle pings the server
IDLEPING
ANTIIDLEREADY - When the anti-idle dummy server is online
ANTIIDLEREADY
you can add a function to an event like this:
ds.on('EVENT', function() { // callback });
you can also add Discord.js events by using the bot object:
bot
ds.bot.on('EVENT', function() { // callback });
Last updated 4 years ago