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.
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: