CactusDev / CactusBot

An open source, community-written service-agnostic chat bot
MIT License
30 stars 6 forks source link

Magic command regex subcommand #300

Closed Innectic closed 6 years ago

Innectic commented 7 years ago

Magic commands should be able to match by a given regex, probably in the Command.command decorator

2Cubed commented 7 years ago

What do you mean by this? Something like regex="things?", where the command could be either run as !main thing or !main things?

Innectic commented 7 years ago

@2Cubed Pretty much, yeah.