mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-19 03:00:09 +08:00
feat✨: 添加游戏抽卡功能
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user