Haha-Yes/commands/owner/reboot.js

26 lines
782 B
JavaScript
Raw Normal View History

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) {
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']});
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;