Events

Discord.Short comes with special events. These include:

  • MONGOCONNECT - When bot connects to MongoDB

  • IDLEPING - Whenever the Heroku anti-idle pings the server

  • ANTIIDLEREADY - When the anti-idle dummy server is online

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:

ds.bot.on('EVENT', function() {
    // callback
});

Last updated