zhenxun_bot/zhenxun/plugins/draw_card/rule.py

11 lines
233 B
Python
Raw Normal View History

2024-07-28 03:37:37 +08:00
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)