Removing unnecceary code

This commit is contained in:
2023-05-20 15:46:51 +02:00
parent 8b2912f5e5
commit 1acca7e0ee

View File

@@ -77,8 +77,13 @@ module.exports = {
if (subcommand === 'reload') {
await interaction.reply({ content: 'In development', ephemeral: true })
return
const { exec } = require('child_process');
exec('pm2 restart 0', async (err, stdout, stderr) => {
if (err) {
await interaction.reply({ content: 'Error while reloading: ' + err, ephemeral: true })
}
await interaction.reply({ content: 'Reloading...', ephemeral: true })
});
}
@@ -135,6 +140,9 @@ module.exports = {
if (subcommand === 'updatemutedrolepermissions') {
await interaction.reply({ content: 'In development', ephemeral: true })
return
await interaction.deferReply({ ephemeral: true })
const guild = interaction.guild;