idk
This commit is contained in:
@@ -55,19 +55,9 @@ module.exports = {
|
|||||||
const embedColor = Number(color.replace("#", "0x"));
|
const embedColor = Number(color.replace("#", "0x"));
|
||||||
|
|
||||||
if (subcommand === 'reload') {
|
if (subcommand === 'reload') {
|
||||||
|
|
||||||
await interaction.deferReply({ ephemeral: true });
|
|
||||||
|
|
||||||
const { exec } = require('child_process');
|
await interaction.reply({ content: 'In development', ephemeral: true })
|
||||||
|
return
|
||||||
const pm2 = exec('pm2 restart 0', )
|
|
||||||
|
|
||||||
if (pm2.stderr) {
|
|
||||||
await interaction.editReply("An error occurred while reloading the bot.")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
await interaction.editReply("Bot reloaded.")
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user