com.uwyn.drone.core
Class AbstractModule
java.lang.Object
com.uwyn.drone.core.AbstractModule
- All Implemented Interfaces:
- Module
- Direct Known Subclasses:
- Faq, Help, Identify, Log, Ping, Quit, Register, Say, Seen, Throughput, Version
- public abstract class AbstractModule
- extends Object
- implements Module
Method Summary |
void |
channelCommand(Bot bot,
Channel channel,
String nick,
String command,
String arguments,
ServerMessage fullMessage)
|
void |
channelMessage(Bot bot,
Channel channel,
String nick,
ServerMessage fullMessage)
|
String[] |
getChannelCommands()
|
String |
getDescription()
|
Map |
getHelpMap()
|
String[] |
getMessageCommands()
|
String |
getName()
|
String[] |
getNoticeCommands()
|
String[] |
getRawCommands()
|
ResponseCode[] |
getResponseCodes()
|
ModuleRunner |
getRunner()
|
void |
loggedon(Bot bot)
|
void |
messageCommand(Bot bot,
String nick,
String command,
String arguments,
ServerMessage fullMessage)
|
void |
noticeCommand(Bot bot,
String nick,
String command,
String arguments,
ServerMessage fullMessage)
|
boolean |
processesChannelMessages()
|
void |
rawCommand(Bot bot,
String nick,
String command,
ServerMessage fullMessage)
|
void |
response(Bot bot,
String nick,
ResponseCode responseCode,
ServerMessage fullMessage)
|
void |
setRunner(ModuleRunner runner)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractModule
public AbstractModule()
setRunner
public void setRunner(ModuleRunner runner)
- Specified by:
setRunner
in interface Module
getRunner
public ModuleRunner getRunner()
- Specified by:
getRunner
in interface Module
getName
public String getName()
- Specified by:
getName
in interface Module
getDescription
public String getDescription()
- Specified by:
getDescription
in interface Module
getHelpMap
public Map getHelpMap()
- Specified by:
getHelpMap
in interface Module
getMessageCommands
public String[] getMessageCommands()
- Specified by:
getMessageCommands
in interface Module
getNoticeCommands
public String[] getNoticeCommands()
- Specified by:
getNoticeCommands
in interface Module
getChannelCommands
public String[] getChannelCommands()
- Specified by:
getChannelCommands
in interface Module
processesChannelMessages
public boolean processesChannelMessages()
- Specified by:
processesChannelMessages
in interface Module
getRawCommands
public String[] getRawCommands()
- Specified by:
getRawCommands
in interface Module
getResponseCodes
public ResponseCode[] getResponseCodes()
- Specified by:
getResponseCodes
in interface Module
loggedon
public void loggedon(Bot bot)
throws CoreException
- Specified by:
loggedon
in interface Module
- Throws:
CoreException
messageCommand
public void messageCommand(Bot bot,
String nick,
String command,
String arguments,
ServerMessage fullMessage)
throws CoreException
- Specified by:
messageCommand
in interface Module
- Throws:
CoreException
noticeCommand
public void noticeCommand(Bot bot,
String nick,
String command,
String arguments,
ServerMessage fullMessage)
throws CoreException
- Specified by:
noticeCommand
in interface Module
- Throws:
CoreException
channelCommand
public void channelCommand(Bot bot,
Channel channel,
String nick,
String command,
String arguments,
ServerMessage fullMessage)
throws CoreException
- Specified by:
channelCommand
in interface Module
- Throws:
CoreException
channelMessage
public void channelMessage(Bot bot,
Channel channel,
String nick,
ServerMessage fullMessage)
throws CoreException
- Specified by:
channelMessage
in interface Module
- Throws:
CoreException
rawCommand
public void rawCommand(Bot bot,
String nick,
String command,
ServerMessage fullMessage)
throws CoreException
- Specified by:
rawCommand
in interface Module
- Throws:
CoreException
response
public void response(Bot bot,
String nick,
ResponseCode responseCode,
ServerMessage fullMessage)
throws CoreException
- Specified by:
response
in interface Module
- Throws:
CoreException
Copyright © 2002-2004 Geert Bevin and UWYN. All Rights Reserved.