Haha-Yes/commands/owner/reboot.js
2019-07-08 22:47:49 +02:00

24 lines
No EOL
650 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) {
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']});
process.exit();
}
}
module.exports = RebootCommand;