PrivateParlorXT::Database
Inherits Reference < Object
A base class for Database implementations, used for storing and retrieving data about users
Constructors
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 user by a given arg, calling the appropriate function
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