🐛 统一被动技能判断

This commit is contained in:
HibiKier
2024-08-03 00:34:19 +08:00
parent 7ab800be97
commit 131cd5ea9a
6 changed files with 14 additions and 23 deletions
+2 -5
View File
@@ -40,11 +40,8 @@ async def _():
)
async def check(group_id: str, channel_id: str | None) -> bool:
task = await TaskInfo.get_or_none(module="morning_goodnight")
if not task or not task.status:
return False
return await GroupConsole.is_block_task(group_id, "morning_goodnight")
async def check(group_id: str) -> bool:
return not await TaskInfo.is_block("morning_goodnight", group_id)
# 早上好