This allows reusing the same pattern defined as a module-level constant in sopel_rep.plugin instead of building it multiple times to suit different contexts.
Note: Cannot switch to the find decorator because each match triggers a separate instance of the decorated callable; the "first valid action" logic in karma_cmd() wouldn't work with that.
I think this resolves #36; can't see anything else obvious in the plugin that could use updating as far as decorators/matching.
This allows reusing the same pattern defined as a module-level constant in
sopel_rep.plugin
instead of building it multiple times to suit different contexts.Note: Cannot switch to the
find
decorator because each match triggers a separate instance of the decorated callable; the "first valid action" logic inkarma_cmd()
wouldn't work with that.I think this resolves #36; can't see anything else obvious in the plugin that could use updating as far as decorators/matching.