Remove unused code, clean up folder tree

This commit is contained in:
spiral 2021-07-16 21:10:49 -04:00
parent a4892d854b
commit 1e8c1261f5
No known key found for this signature in database
GPG key ID: A6059F0CA0E1BD31
14 changed files with 38 additions and 80 deletions

23
command/reload.js Normal file
View file

@ -0,0 +1,23 @@
const Logger = require('@lilywonhalf/pretty-logger');
const CommandCategory = require('../model/command-category');
const CommandPermission = require('../model/command-permission');
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();