Class ScriptBotCoreAdapter
This is an adapter object to work around Rhino not letting programmers have optional arguments on functions.
Rhino requires that all arguments be sent. This object, being all JS, and not a interface-object is not
subject to those requirements. This class does not implement all features of the class it is adapting.
Defined in: </ScriptBot/trunk/src/app/scriptbot.js>.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
ScriptBotCoreAdapter(robot)
Creates a default BotAdatper.
|
| Field Attributes | Field Name and Description |
|---|---|
| Method Attributes | Method Name and Description |
|---|---|
|
getBot()
Returns the real ScriptBotCore instance.
|
|
|
initialize(nick, ircServer, ircChannel)
|
|
|
registerPlugin(event, handler, id)
|
|
|
registerPluginInfo(plugin, handler, id)
|
|
|
registerUnhandledEventPlugin(event, handler)
|
|
|
registerUnrestrictedPlugin(event, handler, id)
|
|
|
setPassword(value)
|
|
|
setScriptLoggingEnabled(value)
|
|
|
setVerbose(value)
|
|
|
unregisterPlugin(plugin, info)
|
|
|
unregisterPluginByEvent(event, id, unrestricted)
|
|
|
unregisterPluginInfo(plugin, id)
|
|
Class Detail
ScriptBotCoreAdapter(robot)
Creates a default BotAdatper.
Author: AMcBain, 2008.
Author: AMcBain, 2008.
- Parameters:
- {ScriptBotCore} robot
- The ScriptBotCore being passed.
Field Detail
prefix
- See:
- ScriptBotCore#prefix
Method Detail
{ScriptBotCore}
getBot()
Returns the real ScriptBotCore instance.
- Returns:
- The real ScriptBotCore instance.
initialize(nick, ircServer, ircChannel)
- Parameters:
- nick
- ircServer
- ircChannel
registerPlugin(event, handler, id)
- Parameters:
- event
- handler
- id
registerPluginInfo(plugin, handler, id)
- Parameters:
- plugin
- handler
- id
registerUnhandledEventPlugin(event, handler)
- Parameters:
- event
- handler
registerUnrestrictedPlugin(event, handler, id)
- Parameters:
- event
- handler
- id
setPassword(value)
- Parameters:
- value
setScriptLoggingEnabled(value)
- Parameters:
- value
setVerbose(value)
- Parameters:
- value
unregisterPlugin(plugin, info)
- Parameters:
- plugin
- info
unregisterPluginByEvent(event, id, unrestricted)
- Parameters:
- event
- id
- unrestricted
unregisterPluginInfo(plugin, id)
- Parameters:
- plugin
- id
unregisterUnhandledEventPlugin(event)
- Parameters:
- event