Haha-Yes/commands/owner/reboot.js

25 lines
487 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) {
await message.channel.send('k bye thx\nhttps://i.redd.it/lw8hrvr0l4f11.jpg');
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;