mirror of
https://github.com/DarthKilroy/Spot.git
synced 2025-12-19 18:26:48 +00:00
30 lines
757 B
JavaScript
30 lines
757 B
JavaScript
const Logger = require('@lilywonhalf/pretty-logger');
|
|
const Config = require('../../config.json');
|
|
const CommandCategory = require('../command-category');
|
|
const CommandPermission = require('../command-permission');
|
|
|
|
class Kill
|
|
{
|
|
static instance = null;
|
|
|
|
constructor() {
|
|
if (Kill.instance !== null) {
|
|
return Kill.instance;
|
|
}
|
|
|
|
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();
|