zhenxun_bot/zhenxun/plugins/draw_card/rule.py
2024-07-28 03:37:37 +08:00

11 lines
233 B
Python

from nonebot.internal.rule import Rule
from zhenxun.configs.config import Config
def rule(game) -> Rule:
async def _rule() -> bool:
return Config.get_config("draw_card", game.config_name, True)
return Rule(_rule)