zigdon / xkcd-Bucket

Bucket is the channel bot for #xkcd
http://wiki.xkcd.com/irc/Bucket
121 stars 31 forks source link

Ignore band name candidates that look like bot commands #112

Open dgw opened 6 years ago

dgw commented 6 years ago

Given that Bucket instances may coexist in channels that have other bots, it is sometimes amusing when Bucket decides to learn a band name from something like .wiki two words (someone looking up "two words" on Wikipedia), .t mein Freund (a translation command), etc.

Would it be reasonable to add a check that band name candidates !~ /^\W/ to core, or should that be plugin territory? Since it's most likely for Bucket to peacefully coexist with other bots that respond to punctuation-prefixed commands, not free text, having only that check is pretty effective.