Compare commits

..

9 Commits

Author SHA1 Message Date
e91af7c0f6
Implement Jeopardy cashout
This adds integration between Watbot and the Limnoria Jeopardy plugin.
If a game of Jeopardy ends, Watbot will parse the finishers message and
pay a small share of the Jeopardy price money in the form of Watcoins.
To avoid abuse, only Jeopardy finishing messages from authorized bots
are considered. An IRC user is considered an authorized bot if the
hostmask matches one of the configured bot hostmasks, and if the
nickname is configured for "jeopardy" in the newly introduced bot games
configuration.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2024-09-28 19:44:11 +02:00
a475bc2f42 Merge pull request 'Implement configuration file + automatic channel joining' (#14) from config into master
Reviewed-on: #14
2024-09-28 19:43:10 +02:00
0a90b6e483
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 <mail@georg-pfuetzenreuter.net>
2024-09-28 19:33:18 +02:00
cc322e87e6
Replace redundant logic in Admin()
The Allowed() function already implements this loop, use it to reduce
redundant code.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2024-09-28 19:33:18 +02:00
bde9a8defb
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>
2024-09-28 19:33:17 +02:00
f4a9607770 Merge pull request 'Remove count script' (#16) from count into master
Reviewed-on: #16
2024-09-24 23:12:50 +02:00
dbaf6f046a
Remove count script
Unable to find a purpose.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2024-09-24 21:59:25 +02:00
331d38694e Merge pull request 'Remove and ignore binary' (#15) from gitignore into master
Reviewed-on: #15
2024-09-24 21:13:01 +02:00
bd7d3abf24
Remove and ignore binary
Build artifacts shouldn't be tracked in version control.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2024-09-21 16:22:04 +02:00
3 changed files with 3 additions and 2 deletions

3
.gitignore vendored
View File

@ -8,6 +8,9 @@
*.so *.so
*.dylib *.dylib
# Normal binary, `go build`
watbot
# Test binary, build with `go test -c` # Test binary, build with `go test -c`
*.test *.test

2
count
View File

@ -1,2 +0,0 @@
wc -l osrc/watbot_*.py
wc -l *.go wat/*.go

BIN
watbot

Binary file not shown.