class

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)
Source
new(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)
Source
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Source

Instance 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

Source
karma_animation

The amount of karma necessary to post a GIF

Source
karma_audio

The amount of karma necessary to post an audio message

Source
karma_contact

The amount of karma necessary to post a contact

Source
karma_document

The amount of karma necessary to post a file

Source
karma_forwarded_message

The amount of karma necessary to post a forwarded message

Source
karma_location

The amount of karma necessary to post a location

Source
karma_media_group

The amount of karma necessary to post an album

Source
karma_photo

The amount of karma necessary to post a photo

Source
karma_poll

The amount of karma necessary to post a poll

Source
karma_sticker

The amount of karma necessary to post a sticker

Source
karma_text

The amount of karma necessary to post a text message

Source
karma_venue

The amount of karma necessary to post a venue

Source
karma_video

The amount of karma necessary to post a video

Source
karma_video_note

The amount of karma necessary to post a video note

Source
karma_voice

The amount of karma necessary to post a voice message

Source