14 lines
367 B
JavaScript
14 lines
367 B
JavaScript
|
module.exports = {
|
||
|
name: "restart",
|
||
|
category: "Owner",
|
||
|
description: "Restart the bot",
|
||
|
Owner: true,
|
||
|
run: async (client, interaction, args) => {
|
||
|
const msg = await interaction.channel.send("Restarting...");
|
||
|
await client.destroy();
|
||
|
await client.login(process.env.TOKEN);
|
||
|
await msg.delete();
|
||
|
await interaction.followUp("Restarted");
|
||
|
},
|
||
|
};
|