mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 11:48:55 -05:00
* [Filter] Performance increases. The filter was already using re to split words, this just does the entire search in re instead. A further improvement to this would cache patterns used and update them if the wordlist changes. * Add a pattern cache * exit on no-words * formatting pass * keep the return type consistent, even though this doesnt break core since this is available to cogs * ... * Quit being an idiot * Slight further improvements, a fix, and restructure Moved actual set creation out of the inner portion. Reduced config lookups in case of no filter. Fixed channel wordlist fetching. * I really should go back to using a pre-commit hook for the style stuff