nyx/command/Owner/restart.js

19 lines
515 B
JavaScript
Raw Normal View History

2023-10-31 02:39:28 +01:00
module.exports = {
name: "restart",
category: "Owner",
description: "Restart the bot",
Owner: true,
run: async (client, interaction, args) => {
await interaction.deleteReply();
const msg = await interaction.channel.send(
"<a:config:896990033561669762> Restarting "
);
await client.destroy();
await client.login(process.env.TOKEN);
await msg.delete();
await interaction.channel.send(
"<a:nyx_checkmark:897240322411724841> Restarted"
);
},
};