Implement configuration file + automatic channel joining #14

Merged
pratyush merged 3 commits from config into master 2024-09-28 19:43:11 +02:00
Owner

Reference the commit messages.

Reference the commit messages.
Georg added 1 commit 2024-09-21 16:08:23 +02:00
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>
Author
Owner

The indentation in the struct definitions is ugly when rendered in Gitea, but it seems fine in git show. I didn’t apply all suggestions from go fmt because I like the columns to align instead of depending on the length of the entries.

The indentation in the struct definitions is ugly when rendered in Gitea, but it seems fine in `git show`. I didn't apply all suggestions from `go fmt` because I like the columns to align instead of depending on the length of the entries.
Georg added 1 commit 2024-09-21 17:50:20 +02:00
The Allowed() function already implements this loop, use it to reduce
redundant code.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Georg added 1 commit 2024-09-21 18:42:02 +02:00
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 <mail@georg-pfuetzenreuter.net>
Author
Owner

Added another feature commit which builds on top of the first one, might be best to review separately.

Added another feature commit which builds on top of the first one, might be best to review separately.
Georg changed title from Implement configuration file to Implement configuration file + automatic channel joining 2024-09-21 18:42:52 +02:00
Georg force-pushed config from 923efb3d0e to 3af09d6234 2024-09-21 18:45:28 +02:00 Compare
Georg force-pushed config from 3af09d6234 to 9e9347ade7 2024-09-21 18:46:57 +02:00 Compare
Georg force-pushed config from 9e9347ade7 to 0a90b6e483 2024-09-28 19:33:24 +02:00 Compare
pratyush merged commit a475bc2f42 into master 2024-09-28 19:43:11 +02:00
pratyush deleted branch config 2024-09-28 19:43:11 +02:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: LibertaCasa/watbot#14
No description provided.