public class FactoidConfiguration
extends java.lang.Object
src/main/resources/factoids.xml
.
Currently only the definition of static factoids is supported in the configuration file. These consist of one or more trigger words and a single static response.
An example factoids.xml
is shown below:
<factoids> <factoid> <trigger>ask</trigger> <response>Please don't ask to ask your question, just ask. It's useful to include the version of Tor Browser or tor that you're using and the operating system.</response> </factoid> </factoids>
StaticFactoid
Modifier and Type | Method and Description |
---|---|
java.util.List<Factoid> |
getFactoids()
Returns a list of factoids as loaded from the XML configuration.
|
static FactoidConfiguration |
getSingleton()
Get the singleton FactoidConfiguration object.
|
public java.util.List<Factoid> getFactoids()
public static FactoidConfiguration getSingleton()