class

PrivateParlorXT::StartCommand

Inherits PrivateParlorXT::CommandHandler < PrivateParlorXT::Handler < Reference < Object

A command used to join the bot and start receiving messages

Instance methods

do(message : Tourmaline::Message, services : Services) : Nil

Adds the user from the given message to the bot if he is not in the database; rejoins users who have previously joined the chat.

Source
existing_user(user : User, username : String | Nil, fullname : String, message_id : MessageID, services : Services) : Nil

Handles users attempting to rejoin if they are already in the database

Source
new_user(id : UserID, username : String | Nil, fullname : String, message_id : MessageID, services : Services) : Nil

Adds the user with the given id to the database if registration is open.

Source