class

PrivateParlorXT::InfoCommand

Inherits PrivateParlorXT::CommandHandler < PrivateParlorXT::Handler < Reference < Object

A command used to get information about one's account, or get obfuscated information about another user if one is authorized to see such information

Constructors

new(config : Config)

Creates an instance of InfoCommand

Source

Instance methods

cooldown_until(expiration : Time | Nil, services : Services) : String

Format the cooldown until text based on the given expiration

Source
do(message : Tourmaline::Message, services : Services) : Nil

Returns a message containing information about the user's account or the user who sent the message this message replies to

Source
ranked_info(user : User, message : Tourmaline::Message, reply : Tourmaline::Message, services : Services) : String | Nil

Returns a String containing obfuscated information about a user the who sent the reply

Source
smiley(warnings : Int32) : String

Returns a smiley based on the number of given warnings

Source
user_info(user : User, services : Services) : String | Nil

Returns a String containing information about the given user

Source
warn_expiry(expiration : Time | Nil, services : Services) : String | Nil

Format the warning expiration text based on the given expiration

Source