hudson.plugins.jabber.im.transport.bot
Class SnackCommand

java.lang.Object
  extended by hudson.plugins.jabber.im.transport.bot.SnackCommand
All Implemented Interfaces:
BotCommand

public class SnackCommand
extends java.lang.Object
implements BotCommand

Give the bot a snack! (this is really more to familiarize myself with working with Hudson/jabber

Author:
R. Tyler Ballance

Constructor Summary
SnackCommand()
           
 
Method Summary
 void executeCommand(org.jivesoftware.smack.GroupChat groupChat, 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnackCommand

public SnackCommand()
Method Detail

executeCommand

public void executeCommand(org.jivesoftware.smack.GroupChat groupChat,
                           org.jivesoftware.smack.packet.Message message,
                           java.lang.String sender,
                           java.lang.String[] args)
                    throws org.jivesoftware.smack.XMPPException
Description copied from interface: BotCommand
Execute a command.

Specified by:
executeCommand in interface BotCommand
Parameters:
groupChat - the GroupChat object, may be used to send reply messages
message - the original Message
sender - the room nickname of the command sender
args - arguments passed to the command, where args[0] is the command name itself
Throws:
org.jivesoftware.smack.XMPPException

getHelp

public java.lang.String getHelp()
Description copied from interface: BotCommand
Return the command usage text.

Specified by:
getHelp in interface BotCommand
Returns:
the command usage text


Copyright © 2009. All Rights Reserved.