2
0
mirror of https://github.com/Nick80835/microbot synced 2025-09-05 00:45:55 +00:00

strip args

This commit is contained in:
Nick80835
2020-06-26 15:24:45 -04:00
parent 80c67918e1
commit 0b2d46e756

View File

@@ -52,7 +52,7 @@ class CommandHandler():
event.nsfw_disabled = str(event.chat.id) in self.settings.get_list("nsfw_blacklist")
event.pattern_match = pattern_match
event.args = pattern_match.groups()[-1]
event.args = pattern_match.groups()[-1].strip()
event.other_args = pattern_match.groups()[1:-1]
event.extras = value["extras"]