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
+2 -2
View File
@@ -32,11 +32,11 @@ class TimerService:
if not Second is None:
self.timer(event,Second)
yield
# 定时:
def timer(self,event:AstrMessageEvent,Sec:int):
asyncio.create_task(self.timer_task())
asyncio.create_task(self.timer_task())
async def timer_task(self):
await asyncio.sleep(1)