mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-04 11:20:01 +08:00
优化gamedraw插件
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user