Fix changes requested

This commit is contained in:
Ethan Lane 2022-09-18 08:53:17 +01:00
parent 09c431def7
commit 7e827090f9
Signed by: Vylpes
GPG key ID: EED233CC06D12504
4 changed files with 3 additions and 5 deletions

View file

@ -11,7 +11,6 @@ BOT_VER=3.1
BOT_AUTHOR=Vylpes BOT_AUTHOR=Vylpes
BOT_OWNERID=147392775707426816 BOT_OWNERID=147392775707426816
BOT_CLIENTID=682942374040961060 BOT_CLIENTID=682942374040961060
BOT_PREFIX=d!
ABOUT_FUNDING=https://ko-fi.com/vylpes ABOUT_FUNDING=https://ko-fi.com/vylpes
ABOUT_REPO=https://github.com/vylpes/vylbot-app ABOUT_REPO=https://github.com/vylpes/vylbot-app

View file

@ -11,7 +11,6 @@ BOT_VER=3.1
BOT_AUTHOR=Vylpes BOT_AUTHOR=Vylpes
BOT_OWNERID=147392775707426816 BOT_OWNERID=147392775707426816
BOT_CLIENTID=680083120896081954 BOT_CLIENTID=680083120896081954
BOT_PREFIX=v!
ABOUT_FUNDING=https://ko-fi.com/vylpes ABOUT_FUNDING=https://ko-fi.com/vylpes
ABOUT_REPO=https://github.com/vylpes/vylbot-app ABOUT_REPO=https://github.com/vylpes/vylbot-app

View file

@ -11,7 +11,6 @@ BOT_VER=3.1
BOT_AUTHOR=Vylpes BOT_AUTHOR=Vylpes
BOT_OWNERID=147392775707426816 BOT_OWNERID=147392775707426816
BOT_CLIENTID=1016767908740857949 BOT_CLIENTID=1016767908740857949
BOT_PREFIX=s!
ABOUT_FUNDING=https://ko-fi.com/vylpes ABOUT_FUNDING=https://ko-fi.com/vylpes
ABOUT_REPO=https://github.com/vylpes/vylbot-app ABOUT_REPO=https://github.com/vylpes/vylbot-app

View file

@ -11,9 +11,10 @@ export class Events {
const disabledCommandsString = await SettingsHelper.GetSetting("commands.disabled", interaction.guildId); const disabledCommandsString = await SettingsHelper.GetSetting("commands.disabled", interaction.guildId);
const disabledCommands = disabledCommandsString?.split(","); const disabledCommands = disabledCommandsString?.split(",");
if (disabledCommands?.find(x => x == interaction.commandName)) { const disabledCommandsMessage = await SettingsHelper.GetSetting("commands.disabled.message", interaction.guildId);
await interaction.reply(process.env.COMMANDS_DISABLED_MESSAGE || "This command is disabled.");
if (disabledCommands?.find(x => x == interaction.commandName)) {
await interaction.reply(disabledCommandsMessage || "This command is disabled.");
return; return;
} }