|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BotCommand
Command pattern contract for Jabber bot commands.
Bot| Method Summary | |
|---|---|
void |
executeCommand(IMChat chat,
IMMessage message,
Sender sender,
java.lang.String[] args)
Execute a command. |
java.lang.String |
getHelp()
Return the command usage text. |
| Method Detail |
|---|
void executeCommand(IMChat chat,
IMMessage message,
Sender sender,
java.lang.String[] args)
throws IMException
chat - the IMChat object, may be used to send reply messagesmessage - the original IMMessagesender - the command senderargs - arguments passed to the command, where args[0] is the command name itself
IMExceptionjava.lang.String getHelp()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||