class PrivateParlorXT::HandlerConfig
- PrivateParlorXT::HandlerConfig
- Reference
- Object
Overview
Contains a limited set of Config variables that are needed for handlers
Defined in:
private-parlor-xt/config/handler_config.crConstructors
-
.new(config : Config)
Creates a new instance of `HandlerConfig``
Instance Method Summary
-
#allow_effects : Bool | Nil
Whether or not to allow users to send messages with a message effect animation
-
#allow_spoilers : Bool | Nil
Whether or not to allow users to send photos, videos, or GIFs with a spoiler overlay
-
#blacklist_contact : String | Nil
Returns the contact string shown to blacklisted users
-
#cooldown_base : Int32
The base integer for which cooldown times are computed from
-
#default_rank : Int32
The value of the
Ranka user will be set to when joining for the first time or getting demoted -
#downvote_limit_interval : Int32
Limit a user's usage of
DownvoteHandlerfor once every interval (in seconds) -
#entity_types : Array(String)
An array of
Stringreferring to entity types that will be removed from all messages -
#flag_signatures : Bool | Nil
Whether or not to replace tripcodes with a flag or emoji signature
-
#karma_levels : Hash(Range(Int32, Int32), String)
A hash of
Range(Int32, Int32)=>Stringmapping a range of possibleUserkarma values to the name of the karma level that is defined by that range -
#karma_reasons : Bool | Nil
Whether or not to allow users to attach a reason to their upvote/downvote messages
-
#linked_network : Hash(String, String)
A hash of
String=>Stringmapping the name of a chat to the chat's username -
#media_limit_period : Time::Span
The duration (in hours) in which new users cannot send media
-
#pseudonymous : Bool | Nil
Whether or not to enable pseudonymous mode, which forces the use of tripcodes for all users and automatically prepends messages with the user's tripcode
-
#registration_open : Bool | Nil
Whether or not registration is open, allowing new users to join
-
#sign_limit_interval : Int32
Limit a users' usage of
SignCommandandTripodeSignCommandfor once every interval (in seconds) -
#tripcode_salt : String
A
Stringused to generate secure tripcodes -
#upvote_limit_interval : Int32
Limit a user's usage of
UpvoteHandlerfor once every interval (in seconds) -
#warn_deduction : Int32
The amount of karma to remove from a user when receiving a cooldown
-
#warn_lifespan : Int32
The length of time (in hours) until a warning expires
Constructor Detail
Instance Method Detail
Whether or not to allow users to send messages with a message effect animation
Whether or not to allow users to send photos, videos, or GIFs with a spoiler overlay
The value of the Rank a user will be set to when joining for the first time or getting demoted
Limit a user's usage of DownvoteHandler for once every interval (in seconds)
An array of String referring to entity types that will be removed from all messages
Whether or not to replace tripcodes with a flag or emoji signature
A hash of Range(Int32, Int32) => String mapping a range of possible User karma values to the name of the karma level that is defined by that range
Whether or not to allow users to attach a reason to their upvote/downvote messages
A hash of String => String mapping the name of a chat to the chat's username
Whether or not to enable pseudonymous mode, which forces the use of tripcodes for all users and automatically prepends messages with the user's tripcode
Whether or not registration is open, allowing new users to join
Limit a users' usage of SignCommand and TripodeSignCommand for once every interval (in seconds)
Limit a user's usage of UpvoteHandler for once every interval (in seconds)