public class DynamicCommand extends Command
actor, category, command, commandAliases, description, enabled, parsedContent, requiredPermissions, requiresCommandTrigger, twitchClient, usageExample
Constructor and Description |
---|
DynamicCommand(java.lang.String commandName,
CommandPermission commandPermission,
java.lang.String commandText)
Initalize Command
|
Modifier and Type | Method and Description |
---|---|
void |
executeCommand(ChannelMessageEvent messageEvent)
executeCommand Logic
|
getCommandArgumentSeperatedList, getCommandArgumentTargetUserOrSelf, getCommandArgumentTargetUsers, getCommandContent, hasPermissions, onInvalidCommandUsage, parseArguments, sendMessageToChannel, sendMessageToUser
public DynamicCommand(java.lang.String commandName, CommandPermission commandPermission, java.lang.String commandText)
commandName
- Name for the new command.commandPermission
- Permissions required to use the new command.commandText
- Text to write, if the new command is triggered.CommandPermission
public void executeCommand(ChannelMessageEvent messageEvent)
executeCommand
in class Command
messageEvent
- The message event. Can infer channel, user, etc.