From 6a865587ffb564925de9c5b1656e73ef37f00d00 Mon Sep 17 00:00:00 2001 From: XiaoDeng3386 <1744793737@qq.com> Date: Sun, 1 Dec 2024 11:59:55 +0800 Subject: [PATCH] fix a bug --- src/plugins/nonebot_plugin_sign/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/nonebot_plugin_sign/__main__.py b/src/plugins/nonebot_plugin_sign/__main__.py index 92589171..07ad9410 100644 --- a/src/plugins/nonebot_plugin_sign/__main__.py +++ b/src/plugins/nonebot_plugin_sign/__main__.py @@ -116,7 +116,7 @@ async def resign(sign_data: SignData, user: MoonlarkUser) -> bool: if (days := (date.today() - sign_data.last_sign).days - 1) >= 15: return False needed_vimcoin = days * 30 - if user.has_vimcoin(needed_vimcoin): + if not await user.has_vimcoin(needed_vimcoin): return False try: await prompt(