From 0ce94360f79d14f0515620451a98ada710bf468a Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 2 Mar 2023 08:06:17 -0500 Subject: [PATCH] Magicbox channel support added. --- src/discord/ChatChannel.java | 2 +- src/discord/MagicBot.java | 3 +++ src/engine/gameManager/ConfigManager.java | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/discord/ChatChannel.java b/src/discord/ChatChannel.java index de86cd1d..1540dfce 100644 --- a/src/discord/ChatChannel.java +++ b/src/discord/ChatChannel.java @@ -20,7 +20,7 @@ public enum ChatChannel { GENERAL("MB_MAGICBOT_GENERAL"), FORTOFIX("MB_MAGICBOT_FORTOFIX"), RECRUIT("MB_MAGICBOT_RECRUIT"), - + MAGICBOX("MB_MAGICBOT_MAGICBOX"), ADMINLOG("MB_MAGICBOT_ADMINLOG"); public final String configName; diff --git a/src/discord/MagicBot.java b/src/discord/MagicBot.java index 93eb189f..0ada6f9e 100644 --- a/src/discord/MagicBot.java +++ b/src/discord/MagicBot.java @@ -209,6 +209,9 @@ public class MagicBot extends ListenerAdapter { case "#recruit": ChatChannelHandler.handleRequest(ChatChannel.RECRUIT, event, args); break; + case "#magicbox": + ChatChannelHandler.handleRequest(ChatChannel.MAGICBOX, event, args); + break; case "#lookup": LookupRequestHandler.handleRequest(event, args); break; diff --git a/src/engine/gameManager/ConfigManager.java b/src/engine/gameManager/ConfigManager.java index b23ca660..658f6c33 100644 --- a/src/engine/gameManager/ConfigManager.java +++ b/src/engine/gameManager/ConfigManager.java @@ -88,6 +88,7 @@ public enum ConfigManager { MB_MAGICBOT_GENERAL, MB_MAGICBOT_FORTOFIX, MB_MAGICBOT_RECRUIT, + MB_MAGICBOT_MAGICBOX, MB_MAGICBOT_ADMINLOG; // Map to hold our config pulled in from the environment