PrivateParlorXT::HearsHandler
Inherits PrivateParlorXT::Handler < Reference < Object
A base class for handling messages whose text matches a certain pattern.
Handlers that are meant to match patterns in text should inherit from this class,
and include an Hears annotation to have it be usable by the bot.
Instance methods
deny_user(user : User, services : Services) : Nil
Queues a system reply when the message matched is from a user who is blacklisted
karma_reason(reason : String | Nil, karma_reply : String, services : Services) : String
Format the reason for karma related replies
truncate_karma_reason(reason : String | Nil) : String | Nil
Return the first 500 characters of the given reason