diff --git a/app/command.py b/app/command.py index cdfdd01d..3313814b 100644 --- a/app/command.py +++ b/app/command.py @@ -103,7 +103,10 @@ class Command(metaclass=Singleton): "id": "subscribe_search", "type": "scheduler", "description": "搜索订阅", - "category": "订阅" + "category": "订阅", + "kwargs": { + 'state': 'R' + } }, "/subscribe_delete": { "func": SubscribeChain().remote_delete, @@ -230,7 +233,7 @@ class Command(metaclass=Singleton): ) # 执行定时任务 - self.scheduler.start(job_id=command.get("id")) + self.scheduler.start(job_id=command.get("id"), **command.get("kwargs", {})) if userid: self.chain.post_message(