PrivateParlorXT::Statistics
Inherits Reference < Object
A base class statistics module used for calculating and recording data about messages and users
Instance methods
Returns a formatted String containing information about the bot and its toggles
Returns a hash of BotInfo to String, containing information about configuration data and toggles
Returns a formatted String containing user counts
Increment the message count according to the given type and increment the total number of messages in general
Returns a hash of Karma to `Int32 , containing the total number of karma given or lost, and daily, weekly, and monthly totals
Returns an Int32 total of users whose karma lie between start_value and end_value
Returns a formatted String containing karma level counts
Returns the Tourmaline::InlineKeyboardMarkup for the given next_screen.
Keyboard buttons are localized and displayed in rows of 3 buttons.
Returns a hash of Messages to Int32, containing the total number of message for each type and daily, weekly, and monthly totals
Returns a formatted String containing messages counts
Returns a Float64 containing the percent change from initial to final
Returns a hash of Robot9000 to Int32, containing the total number of unique and unoriginal messages for texts and media types
Returns a formatted String containing Robot9000 counts
Returns a String containing the date at which the statistics module was initialized
Get the Time the module was initialized, which should coincide closely with the time the bot was started.
Used to calculate uptime.
Returns a String of the formatted statistics screen based on the given next_screen
Returns a hash of Users to Int32, containing the total number of each kind of user and daily, weekly, and monthly totals
Returns a formatted String containing a counts of user totals