Skip to content

Commit

Permalink
feat: add command parser
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydzhou committed Jan 4, 2024
1 parent 9973dc0 commit 089fc94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/utils/lark/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 089fc94

Please sign in to comment.