mirror of
https://github.com/DarthKilroy/Spot.git
synced 2025-12-23 12:16:48 +00:00
Initial commit
This commit is contained in:
commit
8ae81f1cc6
24 changed files with 1425 additions and 0 deletions
29
model/command/reload.js
Normal file
29
model/command/reload.js
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
const Logger = require('@lilywonhalf/pretty-logger');
|
||||
const CommandCategory = require('../command-category');
|
||||
const CommandPermission = require('../command-permission');
|
||||
|
||||
class Reload
|
||||
{
|
||||
static instance = null;
|
||||
|
||||
constructor() {
|
||||
if (Reload.instance !== null) {
|
||||
return Reload.instance;
|
||||
}
|
||||
|
||||
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();
|
||||
Loading…
Add table
Add a link
Reference in a new issue