Magicbox channel support added.

This commit is contained in:
2023-03-02 08:06:17 -05:00
parent 110a05d5a4
commit 0ce94360f7
3 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ public enum ChatChannel {
GENERAL("MB_MAGICBOT_GENERAL"), GENERAL("MB_MAGICBOT_GENERAL"),
FORTOFIX("MB_MAGICBOT_FORTOFIX"), FORTOFIX("MB_MAGICBOT_FORTOFIX"),
RECRUIT("MB_MAGICBOT_RECRUIT"), RECRUIT("MB_MAGICBOT_RECRUIT"),
MAGICBOX("MB_MAGICBOT_MAGICBOX"),
ADMINLOG("MB_MAGICBOT_ADMINLOG"); ADMINLOG("MB_MAGICBOT_ADMINLOG");
public final String configName; public final String configName;
+3
View File
@@ -209,6 +209,9 @@ public class MagicBot extends ListenerAdapter {
case "#recruit": case "#recruit":
ChatChannelHandler.handleRequest(ChatChannel.RECRUIT, event, args); ChatChannelHandler.handleRequest(ChatChannel.RECRUIT, event, args);
break; break;
case "#magicbox":
ChatChannelHandler.handleRequest(ChatChannel.MAGICBOX, event, args);
break;
case "#lookup": case "#lookup":
LookupRequestHandler.handleRequest(event, args); LookupRequestHandler.handleRequest(event, args);
break; break;
@@ -88,6 +88,7 @@ public enum ConfigManager {
MB_MAGICBOT_GENERAL, MB_MAGICBOT_GENERAL,
MB_MAGICBOT_FORTOFIX, MB_MAGICBOT_FORTOFIX,
MB_MAGICBOT_RECRUIT, MB_MAGICBOT_RECRUIT,
MB_MAGICBOT_MAGICBOX,
MB_MAGICBOT_ADMINLOG; MB_MAGICBOT_ADMINLOG;
// Map to hold our config pulled in from the environment // Map to hold our config pulled in from the environment