restart.js (515B)
1 module.exports = { 2 name: "restart", 3 category: "Owner", 4 description: "Restart the bot", 5 Owner: true, 6 run: async (client, interaction, args) => { 7 await interaction.deleteReply(); 8 const msg = await interaction.channel.send( 9 "<a:config:896990033561669762> Restarting " 10 ); 11 await client.destroy(); 12 await client.login(process.env.TOKEN); 13 await msg.delete(); 14 await interaction.channel.send( 15 "<a:nyx_checkmark:897240322411724841> Restarted" 16 ); 17 }, 18 };