2018-12-30 03:35:30 +01:00
|
|
|
const { Command } = require('discord-akairo');
|
|
|
|
|
|
|
|
class RebootCommand extends Command {
|
2019-01-02 08:09:45 +01:00
|
|
|
constructor() {
|
|
|
|
super('reboot', {
|
|
|
|
aliases: ['ded', 'reboot', 'restart'],
|
|
|
|
category: 'owner',
|
|
|
|
ownerOnly: 'true',
|
|
|
|
description: {
|
2018-12-30 03:35:30 +01:00
|
|
|
content: 'Restart the bot',
|
|
|
|
usage: '[]',
|
|
|
|
examples: ['']
|
|
|
|
}
|
2019-01-02 08:09:45 +01:00
|
|
|
});
|
|
|
|
}
|
2018-12-30 03:35:30 +01:00
|
|
|
|
2019-01-02 08:09:45 +01:00
|
|
|
async exec(message) {
|
2019-07-09 05:02:25 +02:00
|
|
|
console.log('\x1b[31m\x1b[47m\x1b[5mSHUTING DOWN!!!!!\x1b[0m');
|
2019-03-08 20:16:06 +01:00
|
|
|
await message.channel.send('k bye thx', { files: ['https://cdn.discordapp.com/attachments/532980995767533568/553656409452183552/bad_things_happen_to_good_people.jpg', 'https://cdn.discordapp.com/attachments/532980995767533568/553310025792356362/meme.png']});
|
2019-07-09 05:02:25 +02:00
|
|
|
console.log('\x1b[31m\x1b[47m\x1b[5mSHUTING DOWN!!!!!\x1b[0m');
|
2019-01-02 08:09:45 +01:00
|
|
|
process.exit();
|
2018-12-30 03:35:30 +01:00
|
|
|
|
2019-01-02 08:09:45 +01:00
|
|
|
}
|
2018-12-30 03:35:30 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = RebootCommand;
|