Constructor and Description |
---|
StaticFactoid(java.util.List<java.lang.String> triggers,
java.lang.String response) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFactoid(java.lang.String lookup)
Returns the factoid's response based on a lookup parameter.
|
java.lang.Boolean |
isTriggered(java.lang.String trigger)
Checks if a word a trigger word for this factoid.
|
public StaticFactoid(java.util.List<java.lang.String> triggers, java.lang.String response)
public java.lang.Boolean isTriggered(java.lang.String trigger)
Factoid
isTriggered
in interface Factoid
trigger
- the word to checkpublic java.lang.String getFactoid(java.lang.String lookup)
Factoid
getFactoid
in interface Factoid
lookup
- a parameter to pass to the factoid that may influence the response