2021-09-06 12:38:25 +02:00
|
|
|
module.exports = {
|
|
|
|
name: "restart",
|
|
|
|
category: "Owner",
|
|
|
|
description: "Restart the bot",
|
|
|
|
Owner: true,
|
|
|
|
run: async (client, interaction, args) => {
|
2021-09-17 18:28:39 +02:00
|
|
|
await interaction.deleteReply();
|
2021-11-18 18:56:42 +01:00
|
|
|
const msg = await interaction.channel.send(
|
|
|
|
"<a:config:896990033561669762> Restarting "
|
|
|
|
);
|
2021-09-06 12:38:25 +02:00
|
|
|
await client.destroy();
|
|
|
|
await client.login(process.env.TOKEN);
|
|
|
|
await msg.delete();
|
2021-11-18 18:56:42 +01:00
|
|
|
await interaction.channel.send(
|
|
|
|
"<a:nyx_checkmark:897240322411724841> Restarted"
|
|
|
|
);
|
2021-09-06 12:38:25 +02:00
|
|
|
},
|
|
|
|
};
|