From bde9a8defb73399e5174794d7bb20907f8716832 Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Sat, 21 Sep 2024 16:06:04 +0200 Subject: 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 --- config.example.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 config.example.yaml (limited to 'config.example.yaml') 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' + -- cgit v1.2.3 From 0a90b6e483bcf6d57030cc7f26f2a3b1a819b37e Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Sat, 21 Sep 2024 18:40:29 +0200 Subject: Implement automatic channel joining Avoid the need for an administrator to join the bot to channels by implementing a configuration option allowing the passing of channels the bot should always join to by itself upon startup. Signed-off-by: Georg Pfuetzenreuter --- config.example.yaml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config.example.yaml') diff --git a/config.example.yaml b/config.example.yaml index ce0a6e3..5d3fbac 100644 --- a/config.example.yaml +++ b/config.example.yaml @@ -13,6 +13,8 @@ watbot: hosts: - annoying.example.com channels: # optional, no default + join: + - crantest # channels without a prefix character will be prefixed with "#" permitted: - '#lucy' -- cgit v1.2.3