nonebot2/tests/test_plugins/test_api_hook.py
2021-03-31 21:20:07 +08:00

7 lines
135 B
Python

from nonebot.adapters import Bot
@Bot.on_calling_api
async def call(bot: Bot, api: str, data: dict):
print(type(bot), api, data)