const { ScheduledTask } = require('@sapphire/plugin-scheduled-tasks')
module.exports = class ExampleTask extends ScheduledTask {
constructor(context, options) {
super(context, {
...options,
name: 'example',
pattern: '*/10 * * * * *',
})
}
run() {
this.container.logger.info('Task ran!')
}
}
const { ScheduledTask } = require('@sapphire/plugin-scheduled-tasks')
module.exports = class ExampleTask extends ScheduledTask {
constructor(context, options) {
super(context, {
...options,
name: 'example',
pattern: '*/10 * * * * *',
})
}
run() {
this.container.logger.info('Task ran!')
}
}