class PrivateParlorXT::TripcodeCommand
- PrivateParlorXT::TripcodeCommand
- PrivateParlorXT::CommandHandler
- PrivateParlorXT::Handler
- Reference
- Object
Overview
A command used to set the user's tripcode, so that it can be used for tripcode signatures
Defined in:
private-parlor-xt/handlers/command_handlers/tripcode_command.crInstance Method Summary
-
#do(message : Tourmaline::Message, services : Services) : Nil
Sets the user's tripcode or returns the user's tripcode if set when the message meets requirements
-
#tripcode_set(set_format : String, name : String, tripcode : String, services : Services) : String
Format the tripcode set reply
-
#valid_signature?(arg : String) : Bool | Nil
Returns
true
if the given arg is a valid flag signature -
#valid_tripcode?(arg : String) : Bool
Returns
true
if the given arg is a valid tripcode
Instance methods inherited from class PrivateParlorXT::CommandHandler
authorized?(user : User, message : Tourmaline::Message, permission : CommandPermissions, services : Services) : Boolauthorized?(user : User, message : Tourmaline::Message, services : Services, *permissions : CommandPermissions) : CommandPermissions | Nil authorized?, delete_messages(message : MessageID, user : UserID, debug_enabled : Bool | Nil, services : Services) : MessageID | Nil delete_messages, deny_user(user : User, services : Services) : Nil deny_user, remove_command_entity(text : String, entities : Array(Tourmaline::MessageEntity), arg : String) : Array(Tourmaline::MessageEntity) remove_command_entity, user_from_message(message : Tourmaline::Message, services : Services) : User | Nil user_from_message
Instance methods inherited from class PrivateParlorXT::Handler
do(message : Tourmaline::Message, services : Services) : Nil
do,
reply_message(user : User, message : Tourmaline::Message, services : Services) : Tourmaline::Message | Nil
reply_message,
reply_user(user : User, reply_message : Tourmaline::Message, services : Services) : User | Nil
reply_user,
unique?(user : User, message : Tourmaline::Message, services : Services, text : String | Nil = nil) : Bool
unique?,
update_user_activity(user : User, services : Services) : Nil
update_user_activity
Constructor methods inherited from class PrivateParlorXT::Handler
new(config : Config)
new
Instance Method Detail
Sets the user's tripcode or returns the user's tripcode if set when the message meets requirements
def tripcode_set(set_format : String, name : String, tripcode : String, services : Services) : String
#
Format the tripcode set reply
def valid_signature?(arg : String) : Bool | Nil
#
Returns true
if the given arg is a valid flag signature
Returns false
otherwise
def valid_tripcode?(arg : String) : Bool
#
Returns true
if the given arg is a valid tripcode
Returns false otherwise