Browse Source

Magicbox channel support added.

master
MagicBot 2 years ago
parent
commit
0ce94360f7
  1. 2
      src/discord/ChatChannel.java
  2. 3
      src/discord/MagicBot.java
  3. 1
      src/engine/gameManager/ConfigManager.java

2
src/discord/ChatChannel.java

@ -20,7 +20,7 @@ public enum ChatChannel { @@ -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;

3
src/discord/MagicBot.java

@ -209,6 +209,9 @@ public class MagicBot extends ListenerAdapter { @@ -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;

1
src/engine/gameManager/ConfigManager.java

@ -88,6 +88,7 @@ public enum ConfigManager { @@ -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

Loading…
Cancel
Save