Haha-Yes/commands/owner/reboot.js

25 lines
668 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'],
split: 'none',
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-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-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;