2
0
mirror of https://github.com/Nick80835/microbot synced 2025-08-30 22:16:05 +00:00

rework noprefix

This commit is contained in:
Nick80835
2020-06-26 19:17:50 -04:00
parent 0b2d46e756
commit 83b492f40b
2 changed files with 6 additions and 3 deletions

View File

@@ -72,7 +72,7 @@ class Loader():
self.command_handler.incoming_commands.append({
"pattern": pattern,
"function": func,
"noprefix": args.get('noprefix', False),
"simple_pattern": args.get('simple_pattern', False),
"sudo": args.get('sudo', False),
"extras": args.get('extras', None),
"nsfw": args.get('nsfw', False),
@@ -109,7 +109,7 @@ class Loader():
self.command_handler.incoming_commands.append({
"pattern": pattern + pattern_extra,
"function": func,
"noprefix": args.get('noprefix', False),
"simple_pattern": args.get('simple_pattern', False),
"sudo": args.get('sudo', False),
"extras": args.get('extras', pattern),
"nsfw": args.get('nsfw', False),