PrivateParlorXT::SQLiteDatabase
Inherits PrivateParlorXT::Database < Reference < Object
An implementation of Database that uses a SQLite database for storing information about SQLiteUser objects
Constructors
Creates an instance of SQLiteDatabase and ensures that the proper tables exist
Instance methods
Queries the database for the most active users, ordered by highest ranking users first, then most active users.
Use this to exclude a user from the result (i.e., when a user does not have debug mode enabled)
Queries the database for the most active users, ordered by highest ranking users first, then most active users.
Adds a user to the database
Get an array of recently blacklisted users
Queries the database for users with warnings and removes a warning
If the user still has warnings, the next time a warning is removed should be the current time plus the value of warn_lifespan
This should be invoked as a recurring task
Get users that have not been active within a given time limit
Get an array of users whose ranks are currently invalid
Get the total count of users, users that have stopped the bot, and users that are blacklisted