ward / irc-butler

IRC bot for my needs
3 stars 1 forks source link

!games mls shortcut fails during playoffs #25

Closed ward closed 7 years ago

ward commented 7 years ago

Reported by jludka. During the playoffs of the MLS, the !games mls command will not show the results it should be showing. This is because we replace it with an exact search for the major league soccer in USA while the source has renamed it slightly.

16:13 <jludka> [16:41:43] <geekosaur> !games mls
16:13 <jludka> [16:41:44] <irc-butler> No games for Major League Soccer in USA.
16:13 <jludka> [16:41:49] <geekosaur> sigh
16:13 <jludka> [16:41:59] <geekosaur> !games major league soccer
16:13 <jludka> [16:42:00] <irc-butler> <USA> [Major League Soccer:: play-off] (AET)
16:13 <jludka> seems like it needs a wildcard?
16:14 <ward> yes, something like that, the way it currently works is it takes the shortcut and replaces it by an exact search to not get false positives
16:14 <ward> false negatives are more annoying in this case though :p
16:16 <jludka> i'm reasonably certain that nothing else is going to match Major League Soccer*
16:16 <ward> plausible!