Feature/81 slash command support #192
4 changed files with 3 additions and 5 deletions
1
.dev.env
1
.dev.env
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -11,9 +11,10 @@ export class Events {
|
||||||
Process.env isn't there anymore Process.env isn't there anymore
|
|||||||
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);
|
||||||
Process.env isn't there anymore Process.env isn't there anymore
Process.env isn't there anymore Process.env isn't there anymore
|
|||||||
await interaction.reply(process.env.COMMANDS_DISABLED_MESSAGE || "This command is disabled.");
|
|
||||||
Process.env isn't there anymore Process.env isn't there anymore
|
|||||||
|
|
||||||
|
if (disabledCommands?.find(x => x == interaction.commandName)) {
|
||||||
Process.env isn't there anymore Process.env isn't there anymore
|
|||||||
|
await interaction.reply(disabledCommandsMessage || "This command is disabled.");
|
||||||
Process.env isn't there anymore Process.env isn't there anymore
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Process.env isn't there anymore Process.env isn't there anymore
Process.env isn't there anymore Process.env isn't there anymore
|
Loading…
Reference in a new issue
Process.env isn't there anymore