2021-05-02 20:00:36 -04:00
|
|
|
const Logger = require('@lilywonhalf/pretty-logger');
|
2021-07-16 21:10:49 -04:00
|
|
|
const CommandCategory = require('../model/command-category');
|
|
|
|
|
const CommandPermission = require('../model/command-permission');
|
2021-05-02 20:00:36 -04:00
|
|
|
|
|
|
|
|
class Reload
|
|
|
|
|
{
|
|
|
|
|
constructor() {
|
|
|
|
|
this.aliases = ['reboot'];
|
|
|
|
|
this.category = CommandCategory.BOT_MANAGEMENT;
|
|
|
|
|
this.isAllowedForContext = CommandPermission.isMemberMod;
|
|
|
|
|
this.description = 'Reboots the bot';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param {Message} message
|
|
|
|
|
*/
|
|
|
|
|
async process(message) {
|
|
|
|
|
await message.reply(`OK, I'm rebooting now.`);
|
|
|
|
|
Logger.notice('Reboot asked');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
module.exports = new Reload();
|