mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-06 04:10:02 +08:00
允许真寻自身触发命令,提供配置项 self_message:STATUS
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
from configs.config import Config
|
||||
from nonebot.internal.rule import Rule
|
||||
|
||||
|
||||
def rule() -> Rule:
|
||||
async def _rule() -> bool:
|
||||
return Config.get_config("self_message", "STATUS")
|
||||
|
||||
return Rule(_rule)
|
||||
Reference in New Issue
Block a user