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