class PrivateParlorXT::KarmaHandler
- PrivateParlorXT::KarmaHandler
- Reference
- Object
Overview
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.
Included Modules
- YAML::Serializable
Defined in:
private-parlor-xt/karma_economy/karma_handler.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .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)
Instance Method Summary
- #cutoff_rank : Int32
-
#karma_animation : Int32
The amount of karma necessary to post a GIF
-
#karma_audio : Int32
The amount of karma necessary to post an audio message
-
#karma_contact : Int32
The amount of karma necessary to post a contact
-
#karma_document : Int32
The amount of karma necessary to post a file
-
#karma_forwarded_message : Int32
The amount of karma necessary to post a forwarded message
-
#karma_location : Int32
The amount of karma necessary to post a location
-
#karma_media_group : Int32
The amount of karma necessary to post an album
-
#karma_photo : Int32
The amount of karma necessary to post a photo
-
#karma_poll : Int32
The amount of karma necessary to post a poll
-
#karma_sticker : Int32
The amount of karma necessary to post a sticker
-
#karma_text : Int32
The amount of karma necessary to post a text message
-
#karma_venue : Int32
The amount of karma necessary to post a venue
-
#karma_video : Int32
The amount of karma necessary to post a video
-
#karma_video_note : Int32
The amount of karma necessary to post a video note
-
#karma_voice : Int32
The amount of karma necessary to post a voice message
Constructor Detail
Instance Method Detail
The value of the Rank
at which users of this Rank
and above do not have to spend karma to post messages