chipmunkbot3/commands/rc.js

19 lines
388 B
JavaScript
Raw Normal View History

2024-04-02 17:53:10 -04:00
const { literal } = require('brigadier-commands')
2024-02-11 21:23:41 -05:00
2024-04-02 17:53:10 -04:00
module.exports = {
register (dispatcher) {
const node = dispatcher.register(
literal('rc')
.executes(this.refillCoreCommand)
)
2024-02-11 21:23:41 -05:00
2024-04-02 17:53:10 -04:00
node.description = "Refills the bot's command core"
node.permissionLevel = 0
},
2024-02-11 21:23:41 -05:00
2024-04-02 17:53:10 -04:00
refillCoreCommand (context) {
const bot = context.source.bot
bot.core.reset()
}
}