From 7132fdbb26a442318910faffe95b3947883ff6de Mon Sep 17 00:00:00 2001 From: thsrite Date: Sun, 9 Jun 2024 12:41:42 +0800 Subject: [PATCH] fix plugin command args --- app/command.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/command.py b/app/command.py index 64232342..66cfec55 100644 --- a/app/command.py +++ b/app/command.py @@ -273,6 +273,8 @@ class Command(metaclass=Singleton): data = cmd_data.get("data") or {} data['channel'] = channel data['user'] = userid + if data_str: + data['args'] = data_str cmd_data['data'] = data command['func'](**cmd_data) elif args_num == 2: