This commit is contained in:
2023-03-29 15:09:46 +02:00
parent 8012be779d
commit 8da4fc0fab

View File

@@ -56,18 +56,8 @@ module.exports = {
if (subcommand === 'reload') { if (subcommand === 'reload') {
await interaction.deferReply({ ephemeral: true }); await interaction.reply({ content: 'In development', ephemeral: true })
const { exec } = require('child_process');
const pm2 = exec('pm2 restart 0', )
if (pm2.stderr) {
await interaction.editReply("An error occurred while reloading the bot.")
return return
}
await interaction.editReply("Bot reloaded.")
} }