From 089fc945f42a744429f7fb3ba5a10909d334fe9a Mon Sep 17 00:00:00 2001 From: lloydzhou Date: Thu, 4 Jan 2024 21:12:50 +0800 Subject: [PATCH] feat: add command parser --- server/utils/lark/parser.py | 1 + 1 file changed, 1 insertion(+) diff --git a/server/utils/lark/parser.py b/server/utils/lark/parser.py index 9d05085b..5d378a3f 100644 --- a/server/utils/lark/parser.py +++ b/server/utils/lark/parser.py @@ -140,6 +140,7 @@ def parse_args(self, command, *args, **kwargs): try: # TODO command = command.replace("@_user_1", "") + command = command.replace("@_user_2", "") argv = [a for a in command.split(" ") if a] param, unkown = self.parser.parse_known_args(argv) return param.func(param, unkown, *args, **kwargs)