mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2025-07-27 18:00:55 +00:00
feat: 插件启用停用检测
This commit is contained in:
@ -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}")
|
||||
|
Reference in New Issue
Block a user