PrivateParlorXT::KarmaSignCommand
Inherits PrivateParlorXT::CommandHandler < PrivateParlorXT::Handler < Reference < Object
Processes karma sign messages before an UpdateHandler gets them
This handler expects the command handlers to be registered before the update handlers
Instance methods
Preformats the given message with a karma level signature if the message meets requirements
get_karma_level(karma_levels : Hash(Range(Int32, Int32), String), user : User) : String
Returns the name of the karma level whose range contains the user's karma
karma_sign(level : String, arg : String, entities : Array(Tourmaline::MessageEntity)) : Tuple(String, Array(Tourmaline::MessageEntity))
Format the karma level sign based on the given level appending the signature to arg
Checks if the user is spamming karma level signatures
Returns true if the user is spamming karma level signatures or unformatted text is spammy, returns false otherwise