import Discord,{SlashCommandBuilder} from 'discord.js'; import { TClient } from 'src/client'; export default { async run(client: TClient, interaction: Discord.ChatInputCommandInteraction<'cached'>){ if (!client.config.eval.whitelist.includes(interaction.user.id)) return client.youNeedRole(interaction, 'bottech'); interaction.reply('Restarting...').then(()=>require('node:child_process').exec('pm2 restart Daggerbot')) }, data: new SlashCommandBuilder() .setName('restart') .setDescription('Restart the bot for technical reasons') }