nonebot-plugin-marshoai/nonebot_plugin_marshoai/azure_onebot.py

9 lines
194 B
Python

from nonebot import on_type
from nonebot.rule import to_me
from nonebot.adapters.onebot.v11 import PokeNotifyEvent
poke_notify = on_type(
(PokeNotifyEvent,),
rule=to_me()
)