zhaobenny / bz-cogs

Interesting cogs for Red Bot
MIT License
23 stars 14 forks source link

Add ignore by regex feature #10

Closed hollowstrawberry closed 1 year ago

hollowstrawberry commented 1 year ago

Messages matching a configurable regex won't trigger an AI response. I wanted this feature as I realized that aliased commands still call on_message_without_command. A bonus is it lets me ignore prefixes of all my bots. It may also be used for moderation purposes, and who knows what else.

After the history code is rewritten, it could incorporate this setting to make those messages invisible to the bot.

Also reorders the message checks to make the async ones go last.

Also this is how the config looks now:

image