zhenxun_bot/plugins/draw_card/rule.py

12 lines
226 B
Python
Raw Normal View History

2022-12-26 01:30:56 +08:00
from nonebot.internal.rule import Rule
from 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)