Public Member Functions
com.rosalfred.core.ia.rivescript.ObjectHandler< T extends BotReply > Interface Reference

List of all members.

Public Member Functions

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:
nameThe name of the object being called.
userThe user's ID.
argsThe 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:
nameThe name of the object.
codeThe source code inside the object.

The documentation for this interface was generated from the following file:


alfred_bot
Author(s): Mickael Gaillard , Erwan Le Huitouze
autogenerated on Tue Jun 14 2016 01:34:50