mirror of
https://github.com/DarthKilroy/Spot.git
synced 2026-02-04 02:26:48 +00:00
clean up stuff
This commit is contained in:
parent
14dd8a5453
commit
1777df5370
12 changed files with 185 additions and 542 deletions
|
|
@ -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();
|
||||
|
|
@ -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();
|
||||
|
|
@ -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();
|
||||
Loading…
Add table
Add a link
Reference in a new issue