19 lines
668 B
Python
19 lines
668 B
Python
"""Shared in-memory state. Import from here; never create a second copy."""
|
|
import asyncio
|
|
|
|
submissions: dict = {}
|
|
counter: int = 0
|
|
daily_submissions: dict = {}
|
|
welcome_messages: dict = {}
|
|
welcome_lock: asyncio.Lock = asyncio.Lock()
|
|
chat_sessions: dict = {}
|
|
chat_message_map: dict = {}
|
|
banned_chat_users: set = set()
|
|
upload_prompt_tasks: dict = {}
|
|
upload_prompt_msg_ids: dict = {} # user_id -> last prompt message_id
|
|
submitting_users: set = set()
|
|
chatroom_semipublic_group_messages: dict = {}
|
|
known_usernames: dict[int, str | None] = {}
|
|
backup_hashes: dict[str, str] = {} # file_unique_id -> sha256
|
|
confirmed_users: set[int] = set()
|
|
blacklisted_words: list[str] = [] |