Commit Graph

8 Commits

Author SHA1 Message Date
c247dbae8c wordbot: Add special cases for 1, 2, 3, and 4+ word scores
This groups multiple words into the same message and also adds a little
bit of fun for multi-word scores.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2025-06-30 10:26:56 -07:00
5aa282143e wordbot: Fix latest wordbot patch (whoopsie)
Last patch was creating a set of the list of all matches, instead of a
set of all matches. This fixes that, and also makes the regex a raw
string.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2024-03-30 20:13:50 -07:00
Max Marrone
232527cd3a wordbot: Recognize words adjacent to punctuation.
If there was an unmatched word 'foo', and someone wrote 'foo. bar.', wordbot would not recognize the match because it was only splitting the string on spaces, not punctuation.

This treats as a word any contiguous sequence of letters, numbers (just in case) and hyphens (just in case).

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2024-03-30 20:04:07 -07:00
741bd85ff7 Add nick to wordbot score message
Whoever scored a point gets a notification for such.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-05-30 20:43:48 -07:00
0bb17050ec Add a couple of debug log messages to wordbot when a new round is started/finished
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-05-30 17:42:18 -07:00
5cf12406f7 Remove user ping from wordbot leaderboard
When a user's name is used in the !wordbot leaderboard command, we make
every effort to not ping them by interleaving zero-width space
characters in the nickname.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-05-30 17:38:32 -07:00
de2b1c1761 Add !wordbot leaderboard command
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-05-30 17:33:37 -07:00
dd4b7f2223 Add initial wordbot implementation
This matches the old database format that was written a while back.
There's an "end_now" command that's been left in there for debugging
purposes, that'll be gone soon enough.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-05-30 17:05:02 -07:00