Added a login embed

This commit is contained in:
2023-05-20 16:06:10 +02:00
parent 422e5e8268
commit 7debd94e0f
3 changed files with 18 additions and 2 deletions

View File

@@ -78,11 +78,12 @@ module.exports = {
if (subcommand === 'reload') {
const { exec } = require('child_process');
await interaction.reply({ content: 'Reloading...', ephemeral: true })
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 })
})
}