Initial quotebot: stdlib IRC quotes bot for Libera #r.trees
This commit is contained in:
commit
841a152436
6 changed files with 530 additions and 0 deletions
27
config.example.env
Normal file
27
config.example.env
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
# 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue