Feature/81 slash command support #192

Merged
Vylpes merged 6 commits from feature/81-slash-command-support into develop 2022-09-18 11:57:22 +01:00
4 changed files with 3 additions and 5 deletions
Showing only changes of commit 7e827090f9 - Show all commits

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 {
VylpesTester commented 2022-09-17 19:21:27 +01:00 (Migrated from github.com)
Review

Process.env isn't there anymore

Process.env isn't there anymore
VylpesTester commented 2022-09-17 19:21:27 +01:00 (Migrated from github.com)
Review

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);
VylpesTester commented 2022-09-17 19:21:27 +01:00 (Migrated from github.com)
Review

Process.env isn't there anymore

Process.env isn't there anymore
VylpesTester commented 2022-09-17 19:21:27 +01:00 (Migrated from github.com)
Review

Process.env isn't there anymore

Process.env isn't there anymore
await interaction.reply(process.env.COMMANDS_DISABLED_MESSAGE || "This command is disabled.");
VylpesTester commented 2022-09-17 19:21:27 +01:00 (Migrated from github.com)
Review

Process.env isn't there anymore

Process.env isn't there anymore
if (disabledCommands?.find(x => x == interaction.commandName)) {
VylpesTester commented 2022-09-17 19:21:27 +01:00 (Migrated from github.com)
Review

Process.env isn't there anymore

Process.env isn't there anymore
await interaction.reply(disabledCommandsMessage || "This command is disabled.");
VylpesTester commented 2022-09-17 19:21:27 +01:00 (Migrated from github.com)
Review

Process.env isn't there anymore

Process.env isn't there anymore
return; return;
} }

VylpesTester commented 2022-09-17 19:21:27 +01:00 (Migrated from github.com)
Review

Process.env isn't there anymore

Process.env isn't there anymore
VylpesTester commented 2022-09-17 19:21:27 +01:00 (Migrated from github.com)
Review

Process.env isn't there anymore

Process.env isn't there anymore