Package | Description |
---|---|
me.timothy.bots | |
me.timothy.bots.impl | |
me.timothy.bots.responses | |
me.timothy.bots.summon |
Modifier and Type | Field and Description |
---|---|
protected Database |
BotDriver.database
The database.
|
Constructor and Description |
---|
BotDriver(Database database,
FileConfiguration config,
Bot bot,
CommentSummon[] commentSummons,
PMSummon[] pmSummons,
LinkSummon[] submissionSummons)
Creates a bot driver based on the specified database, configuration info,
rest client, and bot.
|
Modifier and Type | Class and Description |
---|---|
class |
FlatFileDatabase
A basic flat-file database that uses 1 line in
each file to save a fullname.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
ResponseFormatter.getFormattedResponse(FileConfiguration config,
Database db)
Parses the current state of info and
gets the nice pretty response
|
java.lang.String |
MoneyFormattableObject.toFormattedString(ResponseInfo info,
java.lang.String myName,
FileConfiguration config,
Database db) |
java.lang.String |
GenericFormattableObject.toFormattedString(ResponseInfo info,
java.lang.String myName,
FileConfiguration config,
Database db) |
java.lang.String |
FormattableObject.toFormattedString(ResponseInfo info,
java.lang.String myName,
FileConfiguration config,
Database db)
Formats an object using the data given
|
Modifier and Type | Method and Description |
---|---|
SummonResponse |
CommentSummon.handleComment(me.timothy.jreddit.info.Comment comment,
Database db,
FileConfiguration config)
Handles the comment
|
SummonResponse |
LinkSummon.handleLink(me.timothy.jreddit.info.Link link,
Database db,
FileConfiguration config)
Handles the link
|
SummonResponse |
PMSummon.handlePM(me.timothy.jreddit.info.Message message,
Database db,
FileConfiguration config)
Handles the message
|