clean up stuff

This commit is contained in:
spiral 2021-10-20 11:45:50 -04:00
parent 14dd8a5453
commit 1777df5370
No known key found for this signature in database
GPG key ID: A6059F0CA0E1BD31
12 changed files with 185 additions and 542 deletions

View file

@ -1,24 +0,0 @@
const Logger = require('@lilywonhalf/pretty-logger');
const Config = require('../config.json');
const CommandCategory = require('../model/command-category');
const CommandPermission = require('../model/command-permission');
class Kill
{
constructor() {
this.aliases = [];
this.category = CommandCategory.BOT_MANAGEMENT;
this.isAllowedForContext = CommandPermission.isMemberMod;
this.description = 'Kills the bot process';
}
/**
* @param {Message} message
*/
async process(message) {
await message.react('✔');
Logger.notice('killbotpls');
}
}
module.exports = new Kill();

View file

@ -1,23 +0,0 @@
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();

View file

@ -1,28 +0,0 @@
const Logger = require('@lilywonhalf/pretty-logger');
const CommandCategory = require('../model/command-category');
const CommandPermission = require('../model/command-permission');
class SetAvatar
{
constructor() {
this.aliases = ['setavatar'];
this.category = CommandCategory.BOT_MANAGEMENT;
this.isAllowedForContext = CommandPermission.isMemberMod;
this.description = 'Set the bot avatar';
}
/**
* @param {Message} message
* @param {Array} args
*/
async process(message, args) {
bot.user.setAvatar(args.join(' ')).then(() => {
message.reply('my avatar has been changed!')
}).catch((error) => {
message.reply('there has been an error changing my avatar. Check the logs for more details.');
Logger.exception(error);
});
}
}
module.exports = new SetAvatar();