Page:
Data and Privacy
Pages
AlbumOfTheDay
Assistant
AutoRoom Commands
AutoRoom Overview
AutoRoom Templates
Cog Catalog
Data and Privacy
Deadman
Development
Home
ImageGrab
Installation
Local Services
PlayitStatus
Renamer
Transcribe
Troubleshooting
TtsToy Accessibility
TtsToy Commands
TtsToy Overview
TtsToy Servers
YTAudio
Clone
1
Data and Privacy
kingston edited this page 2026-11-03 12:51:18 -06:00
Table of Contents
Data and Privacy
This page lists the data each cog writes to Red's configuration store and the data it sends off the machine. Config identifiers are included so an administrator can find and reset a cog's data.
Storage summary
| Cog | Config identifier | Scope | Keys |
|---|---|---|---|
| AlbumOfTheDay | 0xA1B00FDA |
Guild | api_url, channel_id, post_hour, post_minute, timezone, last_posted |
| Assistant | 987654321 |
Global and guild | Global api_key, base_url. Guild enabled, chat_channel, model, vision_model, temperature, system_prompt, question_mode, max_tokens, reasoning_effort |
| AutoRoom | 1224364860 |
Global, guild, custom AUTOROOM_SOURCE, channel |
See the AutoRoom page |
| Deadman | 918273645 |
Global | armed, expires_at, users, trigger_channel |
| ImageGrab | none | None | Nothing is stored |
| PlayitStatus | 1234567890 |
Global | channel_id, last_status |
| Renamer | 182736451 |
Guild | allowed_roles, registered but never read |
| Transcribe | 481516234 |
Guild | show_original |
| TtsToy | 0x0A0A0A0A |
Global, guild, member, user | See the TtsToy page |
| YTAudio | 0x5954415544494F |
Guild | volume |
Message content
- Assistant sends message text to the configured chat completions backend. With a remote backend this leaves the machine. With the default local Ollama URL it stays on the host. Chat history is held in a Python dict and is lost on reload. It is never written to disk.
- Transcribe sends downloaded audio to the local Whisper service and the transcript to the local NLLB service. Neither is a remote API.
- TtsToy sends text to the selected engine. MiniMax is a remote API and receives the text. Chatterbox, DECTalk, Piper, Morshu and VOX are local.
- ImageGrab downloads attachments from Discord's CDN and uploads zip files back to Discord. Nothing is written to disk.
- AlbumOfTheDay polls a public group API and posts the result. No user data is involved.
Files on disk
- YTAudio writes to
<cog data>/mp3cacheand<cog data>/streams. Both directories are deleted and recreated when the cog unloads. Individual stream and mp3 files are removed when a track finishes or is skipped. - TtsToy writes generated audio to
<cog data>/ttstoy. A one hour loop deletes the whole directory. Chatterbox reference clips live in the Chatterbox server's data directory, not in the cog's. - TtsToy reads and writes a shared JSON file at
/tmp/ttstoy_webui_state.jsonby default, overridable withTTSTOY_SHARED_STATE. The file holds a login secret, the web UI URL, user profile fields, and queued commands from the web UI. It is not encrypted, and default file permissions may allow other local users to read it.
Data deletion
red_delete_data_for_user is implemented as a no-op in Deadman, AutoRoom, PlayitStatus and TtsToy. Deleting a user's data through Red's data deletion commands does not remove:
- Assistant chat history for that user's channels. It is in memory only and disappears on reload.
- TtsToy uploaded voice filenames in user config and their files on the Chatterbox server.
- AutoRoom channels a user created, or the owner field on them.
- Deadman user IDs while the switch is armed.
An operator handling a deletion request must clear these manually with [p]set api style config commands or by removing the relevant config keys.
Credentials
- Assistant stores the API key in plain text in Red's global config.
- TtsToy stores the MiniMax key in plain text in global config.
- YTAudio has the Lavalink password compiled into the source.
- TtsToy web UI login requires an internal secret read from the shared state file.
Red's config files are readable by the account running the bot. Protect that account and its data directory accordingly.
Scrapyard Cogworks
Cogs