eximiabots-radiox/commands/restart.js
2020-03-02 21:38:42 +02:00

15 lines
347 B
JavaScript

module.exports = {
name: 'restart',
alias: 'none',
usage: '',
description: 'Restart the bot',
onlyDev: true,
permission: 'none',
category: 'util',
async execute(msg, args, client, Discord, prefix, command) {
client.destroy();
require('../index.js');
msg.channel.send('restarted!');
}
};