summaryrefslogtreecommitdiffstats
path: root/config.example.yaml
diff options
context:
space:
mode:
authorGeorg Pfuetzenreuter2024-09-21 16:06:04 +0200
committerGeorg Pfuetzenreuter2024-09-28 19:33:17 +0200
commitbde9a8defb73399e5174794d7bb20907f8716832 (patch)
tree53bfb785c90168e4c82f5a3c1e26a9a7e9f042d3 /config.example.yaml
parentf4a9607770cc4f84431332ab4cdb7e292d037275 (diff)
downloadwatbot-bde9a8defb73399e5174794d7bb20907f8716832.tar.gz
watbot-bde9a8defb73399e5174794d7bb20907f8716832.tar.bz2
watbot-bde9a8defb73399e5174794d7bb20907f8716832.zip
Implement configuration file
Abstract settings which commonly differ between instances to a YAML based configuration file to allow for easy administration without the need for modifying the source code. Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Diffstat (limited to 'config.example.yaml')
-rw-r--r--config.example.yaml18
1 files changed, 18 insertions, 0 deletions
diff --git a/config.example.yaml b/config.example.yaml
new file mode 100644
index 0000000..ce0a6e3
--- /dev/null
+++ b/config.example.yaml
@@ -0,0 +1,18 @@
+watbot:
+ server:
+ host: irc.casa # mandatory, no default
+ port: 6697
+ tls_verify: true
+ name: watest
+ nick: watest # nick is name by default
+ user: watest # user is nick by default
+ admins: # optional, no default
+ hosts:
+ - admin.example.com
+ ignores: # optional, no default
+ hosts:
+ - annoying.example.com
+ channels: # optional, no default
+ permitted:
+ - '#lucy'
+