重构Marsho插件,优化模块导入,钩子函数与类实例化,全局变量独立为模块

This commit is contained in:
2024-12-31 00:26:23 +08:00
parent 5f7d82ae29
commit aca5c2bd04
7 changed files with 91 additions and 76 deletions

View 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())