|
||||||||||
| 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(JabberChat chat,
org.jivesoftware.smack.packet.Message message,
java.lang.String sender,
java.lang.String[] args)
Execute a command. |
java.lang.String |
getHelp()
Return the command usage text. |
| Method Detail |
|---|
void executeCommand(JabberChat chat,
org.jivesoftware.smack.packet.Message message,
java.lang.String sender,
java.lang.String[] args)
throws org.jivesoftware.smack.XMPPException
chat - the JabberChat object, may be used to send reply messagesmessage - the original Messagesender - the room nickname of the command senderargs - arguments passed to the command, where args[0] is the command name itself
org.jivesoftware.smack.XMPPExceptionjava.lang.String getHelp()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||