ircbot

Class IRCMessage


public class IRCMessage
extends java.lang.Object

Field Summary

static long
serialVersionUID

Constructor Summary

IRCMessage(String msg, Channels channels, People people, String botName)
IRCMessage(IRCMessage oldMessage, String newCommand, String newParams)

Method Summary

String
getBotCommand()
IRCChannel
getChannel()
String
getCommand()
String
getMessage()
String
getParam(int index)
String
getParams()
String
getPrefix()
String
getReceiver()
String
getReplyTo()
Person
getSender()
int
length()
void
replaceBotCommand(String command)

Field Details

serialVersionUID

public static final long serialVersionUID
Field Value:
0L

Constructor Details

IRCMessage

public IRCMessage(String msg,
                  Channels channels,
                  People people,
                  String botName)

IRCMessage

public IRCMessage(IRCMessage oldMessage,
                  String newCommand,
                  String newParams)

Method Details

getBotCommand

public String getBotCommand()

getChannel

public IRCChannel getChannel()

getCommand

public String getCommand()

getMessage

public String getMessage()

getParam

public String getParam(int index)

getParams

public String getParams()

getPrefix

public String getPrefix()

getReceiver

public String getReceiver()

getReplyTo

public String getReplyTo()

getSender

public Person getSender()

length

public int length()
Returns:
The length of this message. The length is defined as the number of words in the parameter list. The length is only defined for bot commands. E.g. The command "!join channel password" has length 2.

replaceBotCommand

public void replaceBotCommand(String command)