Magicbox channel support added.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user