forked from Supositware/Haha-Yes
26 lines
No EOL
782 B
JavaScript
26 lines
No EOL
782 B
JavaScript
const { Command } = require('discord-akairo');
|
|
|
|
class RebootCommand extends Command {
|
|
constructor() {
|
|
super('reboot', {
|
|
aliases: ['ded', 'reboot', 'restart'],
|
|
category: 'owner',
|
|
ownerOnly: 'true',
|
|
description: {
|
|
content: 'Restart the bot',
|
|
usage: '[]',
|
|
examples: ['']
|
|
}
|
|
});
|
|
}
|
|
|
|
async exec(message) {
|
|
console.log('\x1b[31m\x1b[47m\x1b[5mSHUTING DOWN!!!!!\x1b[0m');
|
|
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']});
|
|
console.log('\x1b[31m\x1b[47m\x1b[5mSHUTING DOWN!!!!!\x1b[0m');
|
|
process.exit();
|
|
|
|
}
|
|
}
|
|
|
|
module.exports = RebootCommand; |