优化gamedraw插件

This commit is contained in:
HibiKier
2022-12-26 01:30:56 +08:00
parent 3acd7d7d41
commit 802f4df2ce
3 changed files with 101 additions and 80 deletions
+11
View File
@@ -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)