|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.alicebot.server.net.listener.AliceChatListener org.alicebot.server.net.listener.AliceIRC
public class AliceIRC
This code is from the sIRC project and was written by Chris Knight http://www.chrisknight.com/sirc/ and modified to work with an Alicebot server.
Field Summary | |
---|---|
static java.lang.String |
label
Please document. |
Fields inherited from class org.alicebot.server.net.listener.AliceChatListener |
---|
bot, botID, parameters |
Constructor Summary | |
---|---|
AliceIRC(Bot bot)
Creates a new AliceIRC chat listener for a given bot. |
Method Summary | |
---|---|
boolean |
checkParameters()
Checks that the parameters that have been set for the listener are okay. |
java.lang.String |
getShellCommands()
Returns a list of shell commands that are available. |
java.lang.String |
getShellDescription()
Returns a string that describes the listener when getting a listener list in the interactive shell. |
java.lang.String |
getShellID()
Returns a string that can be used to send commands to the listener from the interactive shell. |
java.lang.String |
getVersion()
Returns the version string. |
protected void |
processMessage(java.lang.String message)
Please document this. |
void |
processShellCommand(java.lang.String command)
Sends a command to the shell. |
void |
run()
Connects to the given host and begins listening. |
void |
shutdown()
Shuts down the process. |
Methods inherited from class org.alicebot.server.net.listener.AliceChatListener |
---|
setParameter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String label
Constructor Detail |
---|
public AliceIRC(Bot bot)
bot
- the bot for whom to listenMethod Detail |
---|
public boolean checkParameters()
AliceChatListener
checkParameters
in class AliceChatListener
true
if parameters are okay, false
if notpublic void shutdown()
BotProcess
shutdown
in interface BotProcess
public void run()
run
in interface java.lang.Runnable
public java.lang.String getShellID()
ShellCommandable
getShellID
in interface ShellCommandable
public java.lang.String getShellDescription()
ShellCommandable
getShellDescription
in interface ShellCommandable
public java.lang.String getShellCommands()
ShellCommandable
getShellCommands
in interface ShellCommandable
public void processShellCommand(java.lang.String command)
ShellCommandable
ShellCommandable
itself is responsible for putting back any output to the shell.
processShellCommand
in interface ShellCommandable
command
- the command to send to the shellpublic java.lang.String getVersion()
protected void processMessage(java.lang.String message)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |