/tg/ Station 13 - Modules - TypesVar Details - Proc Details

messenger

Vars

invisibleWhether the user is invisible to the message list.
last_textgreat wisdom from PDA.dm - "no spamming" (prevents people from spamming the same message over and over)
last_text_everyoneeven more wisdom from PDA.dm - "no everyone spamming" (prevents people from spamming the same message over and over)
mime_modeWhether or not we're in a mime PDA.
ringtoneThe current ringtone (displayed in the chat when a message is received).
saved_chatsAn asssociative list of chats we have started, format: chatref -> pda_chat.
selected_imageSelected photo for sending purposes.
sending_and_receivingWhether or not we're sending and receiving messages.
sending_virusWhether or not we're sending (or trying to send) a virus.
sort_by_jobWhether or not we're sorting by job.
spam_modeWhether this app can send messages to all.
viewing_messages_ofWhose chatlogs we currently have open. If we are in the contacts list, this is null.

Procs

Topictopic call that answers to people pressing "(Reply)" in chat
can_send_everyone_messageChecks if the person can send an everyone message
create_chatCreates a chat and adds it to saved_chats. Supports fake users. Returns the newly created chat.
find_chat_by_recipientGets the chat by the recipient, either by their name or messenger ref
get_messengersGets the list of available messengers
get_picture_assetsGets all currently relevant photo asset keys
quick_reply_promptBrings up the quick reply prompt to send a message.
sanitize_pda_messageReturns a message input, sanitized and checked against the filter
send_messageSends a message to targets via PDA. When sending to everyone, set everyone to true so the message is formatted accordingly
send_message_to_allHelper proc that sends a message to everyone
send_rigged_messageSends a rigged message that explodes when the recipient tries to reply or look at it.
set_ringtoneSet the ringtone if possible. Also handles encoding.
update_pictures_for_allSends new datum/picture assets to everyone

Var Details

invisible

Whether the user is invisible to the message list.

last_text

great wisdom from PDA.dm - "no spamming" (prevents people from spamming the same message over and over)

last_text_everyone

even more wisdom from PDA.dm - "no everyone spamming" (prevents people from spamming the same message over and over)

mime_mode

Whether or not we're in a mime PDA.

ringtone

The current ringtone (displayed in the chat when a message is received).

saved_chats

An asssociative list of chats we have started, format: chatref -> pda_chat.

selected_image

Selected photo for sending purposes.

sending_and_receiving

Whether or not we're sending and receiving messages.

sending_virus

Whether or not we're sending (or trying to send) a virus.

sort_by_job

Whether or not we're sorting by job.

spam_mode

Whether this app can send messages to all.

viewing_messages_of

Whose chatlogs we currently have open. If we are in the contacts list, this is null.

Proc Details

Topic

topic call that answers to people pressing "(Reply)" in chat

can_send_everyone_message

Checks if the person can send an everyone message

create_chat

Creates a chat and adds it to saved_chats. Supports fake users. Returns the newly created chat.

find_chat_by_recipient

Gets the chat by the recipient, either by their name or messenger ref

get_messengers

Gets the list of available messengers

get_picture_assets

Gets all currently relevant photo asset keys

quick_reply_prompt

Brings up the quick reply prompt to send a message.

sanitize_pda_message

Returns a message input, sanitized and checked against the filter

send_message

Sends a message to targets via PDA. When sending to everyone, set everyone to true so the message is formatted accordingly

send_message_to_all

Helper proc that sends a message to everyone

send_rigged_message

Sends a rigged message that explodes when the recipient tries to reply or look at it.

set_ringtone

Set the ringtone if possible. Also handles encoding.

update_pictures_for_all

Sends new datum/picture assets to everyone