JJMumbleBot icon indicating copy to clipboard operation
JJMumbleBot copied to clipboard

[Feature Request] Overhaul command handling system to utilize decorators instead of 'cmd_' method name prefixes

Open DuckBoss opened this issue 3 years ago • 0 comments

It might be a better idea to change the command handling system so that it uses a @command decorator instead of the current cmd_ prefix on methods. This would also open up the opportunity to add other custom decorators for other functionality. For example:

OLD:
def cmd_echo(...):
    ...

NEW:
@command
def echo(...):
    ...

DuckBoss avatar Jan 30 '22 16:01 DuckBoss