nonebot2/tests/test_plugins/test_api_hook.py

7 lines
135 B
Python
Raw Normal View History

2021-03-31 21:20:07 +08:00
from nonebot.adapters import Bot
@Bot.on_calling_api
async def call(bot: Bot, api: str, data: dict):
print(type(bot), api, data)