diff --git a/.dev.env b/.dev.env index e4e3d28..199bb0a 100644 --- a/.dev.env +++ b/.dev.env @@ -11,7 +11,6 @@ BOT_VER=3.1 BOT_AUTHOR=Vylpes BOT_OWNERID=147392775707426816 BOT_CLIENTID=682942374040961060 -BOT_PREFIX=d! ABOUT_FUNDING=https://ko-fi.com/vylpes ABOUT_REPO=https://github.com/vylpes/vylbot-app diff --git a/.prod.env b/.prod.env index ff055a4..c4fd73a 100644 --- a/.prod.env +++ b/.prod.env @@ -11,7 +11,6 @@ BOT_VER=3.1 BOT_AUTHOR=Vylpes BOT_OWNERID=147392775707426816 BOT_CLIENTID=680083120896081954 -BOT_PREFIX=v! ABOUT_FUNDING=https://ko-fi.com/vylpes ABOUT_REPO=https://github.com/vylpes/vylbot-app diff --git a/.stage.env b/.stage.env index 6788ec2..85e3068 100644 --- a/.stage.env +++ b/.stage.env @@ -11,7 +11,6 @@ BOT_VER=3.1 BOT_AUTHOR=Vylpes BOT_OWNERID=147392775707426816 BOT_CLIENTID=1016767908740857949 -BOT_PREFIX=s! ABOUT_FUNDING=https://ko-fi.com/vylpes ABOUT_REPO=https://github.com/vylpes/vylbot-app diff --git a/src/client/events.ts b/src/client/events.ts index 5970f47..2d36001 100644 --- a/src/client/events.ts +++ b/src/client/events.ts @@ -11,9 +11,10 @@ export class Events { const disabledCommandsString = await SettingsHelper.GetSetting("commands.disabled", interaction.guildId); const disabledCommands = disabledCommandsString?.split(","); - if (disabledCommands?.find(x => x == interaction.commandName)) { - await interaction.reply(process.env.COMMANDS_DISABLED_MESSAGE || "This command is disabled."); + const disabledCommandsMessage = await SettingsHelper.GetSetting("commands.disabled.message", interaction.guildId); + if (disabledCommands?.find(x => x == interaction.commandName)) { + await interaction.reply(disabledCommandsMessage || "This command is disabled."); return; }