The method that gets executed periodically or on start, depending on the module's configuration.
A promise that is used to determine if and when the task completes.
Returns a runtime object corresponding to the current module.
Returns the schedule that specifies when this commands gets executed. This must be a cron-like string or a number in milliseconds. If this returns 0 or undefined or null, this task will never be scheduled to run.
Gets called when the bot starts listening.
Gets called when the bot is shutting down.
Returns true if the scheduled task should run when the bot starts, or false otherwise.
Generated using TypeDoc
Defines a task that is executed periodically or upon the start of the bot.
2.0.0