mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-21 20:20:05 +08:00
版本更新
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import nonebot
|
||||
from nonebot.adapters import Bot
|
||||
from nonebot.plugin import PluginMetadata
|
||||
from nonebot_plugin_apscheduler import scheduler
|
||||
|
||||
@@ -26,8 +27,8 @@ __plugin_meta__ = PluginMetadata(
|
||||
driver = nonebot.get_driver()
|
||||
|
||||
|
||||
async def check(group_id: str) -> bool:
|
||||
return not await CommonUtils.task_is_block("morning_goodnight", group_id)
|
||||
async def check(bot: Bot, group_id: str) -> bool:
|
||||
return not await CommonUtils.task_is_block(bot, "morning_goodnight", group_id)
|
||||
|
||||
|
||||
# 早上好
|
||||
|
||||
Reference in New Issue
Block a user