Improve the way the command registry handles commands
CrsiX opened this issue · comments
The registry should fulfill the following requirements in any way:
- Singleton-like behavior (e.g. prohibit two different instances of a command)
- Allow parsing and the generation of help & usage messages (e.g. don't do silly stuff)
- Easy to use (e.g. adding and removing commands and so on is simple enaugh)
- Divide the command executors from the Telegram updater or handler
The new mate_bot.registry
module addressed this issue. It looks like it solves the issue gracefully.