Move clearchat command to base class
All checks were successful
continuous-integration/drone/push Build is passing

The "clear" command now supports both slash commands and message commands, having identical behavior in both situations.
This commit is contained in:
2022-11-22 20:39:55 +01:00
parent ecdb0c73e8
commit 3f1835e059
5 changed files with 303 additions and 153 deletions

View File

@@ -116,6 +116,7 @@ public class HidekoBot
MessageCommandListener messageCommandListener = new MessageCommandListener();
messageCommandListener.registerCommand(new HelloCommand());
messageCommandListener.registerCommand(new CommandsCommand());
messageCommandListener.registerCommand(new wtf.beatrice.hidekobot.commands.message.ClearCommand());
Cache.setMessageCommandListener(messageCommandListener);
// register listeners