mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 06:12:53 +08:00
10 lines
209 B
Python
10 lines
209 B
Python
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)
|