Update instructions order when registering listeners
This commit is contained in:
parent
3bd09d2867
commit
c843d2cd61
@ -133,8 +133,6 @@ public class HidekoBot
|
||||
slashCommandListener.registerCommand(new TimeoutCommand());
|
||||
slashCommandListener.registerCommand(new TriviaCommand());
|
||||
slashCommandListener.registerCommand(new UrbanDictionaryCommand());
|
||||
Cache.setSlashCommandListener(slashCommandListener);
|
||||
Cache.setSlashCommandCompletionListener(slashCommandCompletionListener);
|
||||
|
||||
// register message commands
|
||||
MessageCommandListener messageCommandListener = new MessageCommandListener();
|
||||
@ -156,9 +154,11 @@ public class HidekoBot
|
||||
messageCommandListener.registerCommand(new wtf.beatrice.hidekobot.commands.message.TimeoutCommand());
|
||||
messageCommandListener.registerCommand(new wtf.beatrice.hidekobot.commands.message.TriviaCommand());
|
||||
messageCommandListener.registerCommand(new wtf.beatrice.hidekobot.commands.message.UrbanDictionaryCommand());
|
||||
Cache.setMessageCommandListener(messageCommandListener);
|
||||
|
||||
// register listeners
|
||||
Cache.setSlashCommandListener(slashCommandListener);
|
||||
Cache.setSlashCommandCompletionListener(slashCommandCompletionListener);
|
||||
Cache.setMessageCommandListener(messageCommandListener);
|
||||
jda.addEventListener(messageCommandListener);
|
||||
jda.addEventListener(slashCommandListener);
|
||||
jda.addEventListener(slashCommandCompletionListener);
|
||||
|
Loading…
Reference in New Issue
Block a user