woomy/src/commands/restart.js

23 lines
498 B
JavaScript
Raw Normal View History

2020-01-25 10:02:43 +00:00
exports.run = async (client, message) => {// eslint-disable-line no-unused-vars
await message.channel.send("<:reboot:467216876938985482> Restarting...");
client.commands.forEach( async cmd => {
await client.unloadCommand(cmd);
});
process.exit(1);
};
exports.conf = {
enabled: true,
guildOnly: false,
aliases: [],
permLevel: "Developer",
requiredPerms: []
};
exports.help = {
name: "restart",
category: "Owner",
description: "Restarts the bot.",
usage: "restart"
};