mirror of
https://github.com/Nick80835/microbot
synced 2025-09-04 00:15:34 +00:00
add an extras variable for extra stuff idk
This commit is contained in:
@@ -30,6 +30,7 @@ class CommandHandler():
|
||||
|
||||
event.pattern_match = pattern_match
|
||||
event.args = pattern_match.groups()[-1]
|
||||
event.extras = value["extras"]
|
||||
|
||||
try:
|
||||
await value["function"](event)
|
||||
|
@@ -50,7 +50,8 @@ class Loader():
|
||||
self.command_handler.incoming_commands[pattern] = {
|
||||
"function": func,
|
||||
"noprefix": args.get('noprefix', False),
|
||||
"sudo": args.get('sudo', False)
|
||||
"sudo": args.get('sudo', False),
|
||||
"extras": args.get('extras', None)
|
||||
}
|
||||
|
||||
return func
|
||||
|
Reference in New Issue
Block a user