Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Files and directories

Where a Linux installation made with deploy/install.sh and deploy/polarbot.service keeps everything. Nothing else is written: logs go to the journal, and flagged messages are never stored.

PathWhat it is
/opt/polarbot/polarbotThe installed binary (install.sh).
/opt/polarbot/polarbot.prevThe previous binary, kept by install.sh for a rollback.
/etc/polarbot/config.tomlThe config file (default --config). Installed from deploy/config.toml once; never overwritten by install.sh.
/etc/polarbot/discord_token.credThe discord_token credential, encrypted with systemd-creds (mode 0600). See Credentials.
/etc/polarbot/discord_client_secret.credThe discord_client_secret credential, encrypted with systemd-creds (mode 0600). See Credentials.
/etc/polarbot/oauth_key.credThe oauth_key credential, encrypted with systemd-creds (mode 0600). See Credentials.
/etc/systemd/system/polarbot.serviceThe systemd unit (from deploy/polarbot.service).
/var/lib/polarbot/The data directory (StateDirectory=polarbot, mode 0700). With DynamicUser=yes systemd keeps it in /var/lib/private/polarbot and links /var/lib/polarbot to it.
/var/lib/polarbot/polarbot.dbThe SQLite database, in WAL mode (so also polarbot.db-wal and polarbot.db-shm). See Database.
/var/lib/polarbot/threatlists/destroylist.txtCached threat list destroylist (one domain per line). Loaded at startup, replaced after every successful refresh.
/var/lib/polarbot/threatlists/discord-phishing-links.txtCached threat list discord-phishing-links (one domain per line). Loaded at startup, replaced after every successful refresh.
/var/lib/polarbot/adultlists/stevenblack-porn.txtCached adult-site list stevenblack-porn (one domain per line).
/var/backups/polarbot/polarbot-<UTC stamp>.dbDatabase backups made by install.sh before every install (with -wal/-shm when present, mode 0600). The 10 newest are kept.