Regex Prefixes?
I see that the prefix given is internally turned into a regular expression. Would it be possible to give the option to provide a regular expression for a prefix instead? Technically, adding an option for aliases would work, too.
How would you express a regular expression prefix to the user? And how would you set one in a guild?
For the first question, the randexp module could possibly be used for examples, and/or the regex itself could be shown.
As for the second, if the issue is distinguishing a normal prefix from a normal one, I suppose either ending the command with /r or surrounding the expression with ``` ``` or / / could work. These would rule out prefixes with those characteristics, though. A separate command could be used, instead? Then it could work alongside a normal prefix?
And what would be the purpose of this in the first place?
For example, a user would be able to specify multiple prefixes with /bot|robot|hey/i, or they could specify optional parts of the prefix with /(hey )?bot,?/i. Of course, these could also be done with allowing multiple prefixes.