Finish command completion listener implementation
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Very similarly to how the slash command interface works, now a slash command auto-completion interface also exists, with its respective listener.
This commit is contained in:
@@ -7,6 +7,7 @@ import wtf.beatrice.hidekobot.datasources.DatabaseSource;
|
||||
import wtf.beatrice.hidekobot.datasources.PropertiesSource;
|
||||
import wtf.beatrice.hidekobot.listeners.MessageCommandListener;
|
||||
import wtf.beatrice.hidekobot.listeners.MessageLogger;
|
||||
import wtf.beatrice.hidekobot.listeners.SlashCommandCompletionListener;
|
||||
import wtf.beatrice.hidekobot.listeners.SlashCommandListener;
|
||||
import wtf.beatrice.hidekobot.util.Logger;
|
||||
|
||||
@@ -40,6 +41,7 @@ public class Cache
|
||||
private static final String botName = "Hideko";
|
||||
|
||||
private static SlashCommandListener slashCommandListener = null;
|
||||
private static SlashCommandCompletionListener slashCommandCompletionListener = null;
|
||||
private static MessageCommandListener messageCommandListener = null;
|
||||
|
||||
private final static String defaultInviteLink =
|
||||
@@ -226,6 +228,12 @@ public class Cache
|
||||
public static SlashCommandListener getSlashCommandListener() { return slashCommandListener; }
|
||||
|
||||
|
||||
public static void setSlashCommandCompletionListener(SlashCommandCompletionListener commandCompletionListener)
|
||||
{ slashCommandCompletionListener = commandCompletionListener; }
|
||||
|
||||
public static SlashCommandCompletionListener getSlashCommandCompletionListener() { return slashCommandCompletionListener; }
|
||||
|
||||
|
||||
public static void setMessageCommandListener(MessageCommandListener commandListener)
|
||||
{ messageCommandListener = commandListener; }
|
||||
|
||||
|
Reference in New Issue
Block a user