From a4249fe856d7ac044b38e6209d92e4f2b0ecbe5e Mon Sep 17 00:00:00 2001 From: Taken Date: Sun, 2 Apr 2023 10:30:08 +0200 Subject: [PATCH] Disabled reload command --- commands/devel.js | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/commands/devel.js b/commands/devel.js index bedbb4d..aaf9405 100644 --- a/commands/devel.js +++ b/commands/devel.js @@ -59,23 +59,8 @@ module.exports = { if (subcommand === 'reload') { - await interaction.deferReply({ ephemeral: true }) - - const spawn = require('child_process').spawn; - - if (user.id !== dev) { - await interaction.editReply({ content: 'Due to you not screwing something up this command is restricted to only ' + userMentioned, ephemeral: true }) - return - } - - const child = spawn('pm restart 0', {}) - - if (child.stderr) { - await interaction.editReply({ content: 'Error restarting bot.', ephemeral: true }) - return - } - - await interaction.editReply({ content: 'Restarting bot...', ephemeral: true }) + await interaction.reply({ content: 'In development', ephemeral: true }) + return } }