List of all members.
Public Member Functions |
T | onCall (String name, String user, String[] args) |
boolean | onLoad (String name, String[] code) |
Detailed Description
Interface for object handlers.
Definition at line 7 of file ObjectHandler.java.
Member Function Documentation
T com.rosalfred.core.ia.rivescript.ObjectHandler< T extends BotReply >.onCall |
( |
String |
name, |
|
|
String |
user, |
|
|
String[] |
args |
|
) |
| |
Handler for when a user invokes the object. Should return the text reply from the object.
- Parameters:
-
name | The name of the object being called. |
user | The user's ID. |
args | The argument list from the call tag. |
boolean com.rosalfred.core.ia.rivescript.ObjectHandler< T extends BotReply >.onLoad |
( |
String |
name, |
|
|
String[] |
code |
|
) |
| |
Handler for when object code is read (loaded) by RiveScript. Should return true for success or false to indicate error.
- Parameters:
-
name | The name of the object. |
code | The source code inside the object. |
The documentation for this interface was generated from the following file: