版本更新

This commit is contained in:
HibiKier
2024-10-20 21:11:16 +08:00
parent 4e33bf3a50
commit d594d17bf6
253 changed files with 34987 additions and 2241 deletions
@@ -53,6 +53,7 @@ async def _():
_group, _ = await GroupConsole.get_or_create(
group_id=group.group_id, channel_id__isnull=True
)
modules = [f"<{module}" for module in modules]
_group.block_task = ",".join(modules) + "," # type: ignore
update_list.append(_group)
logger.info(
+3 -2
View File
@@ -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)
# 早上好