class PrivateParlorXT::KarmaHandler

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

Defined in:

private-parlor-xt/karma_economy/karma_handler.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.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) #

[View source]

Instance Method Detail

def cutoff_rank : Int32 #

The value of the Rank at which users of this Rank and above do not have to spend karma to post messages


[View source]
def karma_animation : Int32 #

The amount of karma necessary to post a GIF


[View source]
def karma_audio : Int32 #

The amount of karma necessary to post an audio message


[View source]
def karma_contact : Int32 #

The amount of karma necessary to post a contact


[View source]
def karma_document : Int32 #

The amount of karma necessary to post a file


[View source]
def karma_forwarded_message : Int32 #

The amount of karma necessary to post a forwarded message


[View source]
def karma_location : Int32 #

The amount of karma necessary to post a location


[View source]
def karma_media_group : Int32 #

The amount of karma necessary to post an album


[View source]
def karma_photo : Int32 #

The amount of karma necessary to post a photo


[View source]
def karma_poll : Int32 #

The amount of karma necessary to post a poll


[View source]
def karma_sticker : Int32 #

The amount of karma necessary to post a sticker


[View source]
def karma_text : Int32 #

The amount of karma necessary to post a text message


[View source]
def karma_venue : Int32 #

The amount of karma necessary to post a venue


[View source]
def karma_video : Int32 #

The amount of karma necessary to post a video


[View source]
def karma_video_note : Int32 #

The amount of karma necessary to post a video note


[View source]
def karma_voice : Int32 #

The amount of karma necessary to post a voice message


[View source]