|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.im.bot.BuildCommand
public class BuildCommand
Build command for the instant messaging bot.
| Constructor Summary | |
|---|---|
BuildCommand(java.lang.String imId)
|
|
| Method Summary | |
|---|---|
void |
executeCommand(IMChat chat,
IMMessage message,
java.lang.String sender,
java.lang.String[] args)
Execute a command. |
java.lang.String |
getHelp()
Return the command usage text. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BuildCommand(java.lang.String imId)
imId - An identifier describing the Im account used to send the build command.
E.g. the Jabber ID of the Bot.| Method Detail |
|---|
public void executeCommand(IMChat chat,
IMMessage message,
java.lang.String sender,
java.lang.String[] args)
throws IMException
BotCommand
executeCommand in interface BotCommandchat - the IMChat object, may be used to send reply messagesmessage - the original IMMessagesender - the room nickname of the command sender // FIXME ckutz: replace with the FQ sender id!args - arguments passed to the command, where args[0] is the command name itself
IMExceptionpublic java.lang.String getHelp()
BotCommand
getHelp in interface BotCommand
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||