public interface ICommandRegistry
| Modifier and Type | Method and Description |
|---|---|
boolean |
deregister(BotCommand botCommand)
deregister a command
|
Map<BotCommand,Boolean> |
deregisterAll(BotCommand... botCommands)
deregister multiple commands
|
BotCommand |
getRegisteredCommand(String commandIdentifier)
get registered command
|
Collection<BotCommand> |
getRegisteredCommands()
get a collection of all registered commands
|
boolean |
register(BotCommand botCommand)
register a command
|
Map<BotCommand,Boolean> |
registerAll(BotCommand... botCommands)
register multiple commands
|
void |
registerDefaultAction(BiConsumer<AbsSender,Message> defaultConsumer)
Register a default action when there is no command register that match the message sent
|
void registerDefaultAction(BiConsumer<AbsSender,Message> defaultConsumer)
defaultConsumer - Consumer to evaluate the messageboolean register(BotCommand botCommand)
botCommand - the command to registerMap<BotCommand,Boolean> registerAll(BotCommand... botCommands)
botCommands - commands to registerboolean deregister(BotCommand botCommand)
botCommand - the command to deregisterMap<BotCommand,Boolean> deregisterAll(BotCommand... botCommands)
botCommands - commands to deregisterCollection<BotCommand> getRegisteredCommands()
BotCommand getRegisteredCommand(String commandIdentifier)
Copyright © 2016. All rights reserved.