mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-10 14:20:04 +08:00
🐛 统一被动技能判断
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
# 早上好
|
||||
|
||||
Reference in New Issue
Block a user