From a992a7094885cf024ff00da0b378ee70e21ad6c4 Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Sun, 30 Dec 2018 03:35:30 +0100 Subject: [PATCH] reboot command --- commands/owner/reboot.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 commands/owner/reboot.js diff --git a/commands/owner/reboot.js b/commands/owner/reboot.js new file mode 100644 index 00000000..787d2523 --- /dev/null +++ b/commands/owner/reboot.js @@ -0,0 +1,25 @@ +const { Command } = require('discord-akairo'); + +class RebootCommand extends Command { + constructor() { + super('reboot', { + aliases: ['ded', 'reboot', 'restart'], + split: 'none', + category: 'owner', + ownerOnly: 'true', + description: { + content: 'Restart the bot', + usage: '[]', + examples: [''] + } + }); + } + + async exec(message) { + await message.say('k bye thx\nhttps://i.redd.it/lw8hrvr0l4f11.jpg'); + process.exit(); + + } +} + +module.exports = RebootCommand; \ No newline at end of file