mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-08-01 16:39:52 +00:00
✨ 重构Marsho插件,优化模块导入,钩子函数与类实例化,全局变量独立为模块
This commit is contained in:
5
nonebot_plugin_marshoai/marsho_onebot.py
Normal file
5
nonebot_plugin_marshoai/marsho_onebot.py
Normal file
@ -0,0 +1,5 @@
|
||||
from nonebot import on_type
|
||||
from nonebot.adapters.onebot.v11 import PokeNotifyEvent # type: ignore
|
||||
from nonebot.rule import to_me
|
||||
|
||||
poke_notify = on_type((PokeNotifyEvent,), rule=to_me())
|
Reference in New Issue
Block a user