fix: no yield

This commit is contained in:
Wbucket
2026-11-06 22:08:54 +08:00
parent 3823b83d9e
commit 7610960cb6
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ class MyPlugin(Star):
@filter.on_decorating_result()
async def pattern_extract(self,event:AstrMessageEvent):
yield self.Timer.parse(event)
await self.Timer.parse(event)
async def terminate(self):
"""可选择实现异步的插件销毁方法,当插件被卸载/停用时会调用。"""
+1 -1
View File
@@ -32,7 +32,7 @@ class TimerService:
if not Second is None:
self.timer(event,Second)
yield
# 定时:
def timer(self,event:AstrMessageEvent,Sec:int):