27 lines
876 B
Bash
27 lines
876 B
Bash
# quotebot configuration — copy to a local file and `source` it before running.
|
|
# All values are optional; defaults connect to Libera and join #r.trees.
|
|
#
|
|
# cp config.example.env config.env # config.env is gitignored
|
|
# set -a; source config.env; set +a
|
|
# python3 bot.py
|
|
|
|
# --- Network ---
|
|
IRC_SERVER=irc.libera.chat
|
|
IRC_PORT=6697
|
|
IRC_TLS=1 # set to 0 for a plaintext connection (port 6667)
|
|
|
|
# --- Identity ---
|
|
IRC_NICK=treesquotes
|
|
IRC_USER=treesquotes
|
|
IRC_REALNAME=quotebot
|
|
IRC_CHANNEL=#r.trees
|
|
|
|
# Optional: register the nick with NickServ on connect.
|
|
# Leave empty/unset if the nick is unregistered. NEVER commit a real password.
|
|
IRC_NICKSERV_PASS=
|
|
|
|
# --- Bot behaviour ---
|
|
QUOTEBOT_DB=quotes.db
|
|
QUOTEBOT_PREFIX=!
|
|
QUOTEBOT_SEND_DELAY=1.0 # seconds between outbound lines (flood protection)
|
|
QUOTEBOT_LOGLEVEL=INFO # DEBUG to see raw IRC traffic
|