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