PrivateParlorXT::KarmaHandler
Inherits YAML::Serializable < Reference < Object
A module that requires users to have a certain amount of karma before sending a message
Each message has a specific among of karma necessary before a message of that type can be sent. If a message of that type is sent, the amount for that type will be deducted from the user's karma.
Constructors
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
Sourcenew(cutoff_rank : Int32 = 10, karma_text : Int32 = 0, karma_animation : Int32 = 5, karma_audio : Int32 = 2, karma_document : Int32 = 2, karma_video : Int32 = 10, karma_video_note : Int32 = 10, karma_voice : Int32 = 2, karma_photo : Int32 = 5, karma_media_group : Int32 = 10, karma_poll : Int32 = 20, karma_forwarded_message : Int32 = 10, karma_sticker : Int32 = 2, karma_venue : Int32 = 10, karma_location : Int32 = 10, karma_contact : Int32 = 10)
Sourcenew(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
SourceInstance methods
cutoff_rank
The value of the Rank at which users of this Rank and above do not have to spend karma to post messages