feat: 插件启用停用检测

This commit is contained in:
2024-03-26 22:36:16 +08:00
parent ac234544a3
commit 5d7c201018
2 changed files with 6 additions and 6 deletions

View File

@ -236,7 +236,7 @@ async def pre_handle(event: Event, matcher: Matcher):
raise IgnoredException("Plugin disabled in session")
@Bot.on_calling_api
async def _(bot: Bot, api: str, data: dict[str, any]):
# TODO 插件启用/停用检查hook
nonebot.logger.info(f"Plugin Callapi: {api}: {data}")
# @Bot.on_calling_api
# async def _(bot: Bot, api: str, data: dict[str, any]):
# # TODO 插件启用/停用检查hook
# nonebot.logger.info(f"Plugin Callapi: {api}: {data}")