From 4ab21b7f7bf344ed48f76b900113fdb9fae6451d Mon Sep 17 00:00:00 2001 From: Mualamx Date: Sun, 12 Oct 2025 03:35:14 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20=E5=88=A0=E9=99=A4=E5=90=8E?= =?UTF-8?q?=E9=97=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- command.py | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/command.py b/command.py index 3bb43d2..5cd3886 100644 --- a/command.py +++ b/command.py @@ -95,8 +95,7 @@ diuse_farm = on_alconna( Subcommand("sign-in", help_text="农场签到"), Subcommand("admin-up", Args["num?", int], help_text="农场下阶段"), Subcommand("point-to-vipPoint", Args["num?", int], help_text="农场币换点券"), - Subcommand("my-vipPoint", help_text="我的点券"), - Subcommand("mx-change", Args["num?", int], help_text="mx管理员变更农场币"), + Subcommand("my-vipPoint", help_text="我的点券") ), priority=5, block=True, @@ -696,26 +695,3 @@ async def _(session: Uninfo): ).send(reply_to=True) -diuse_farm.shortcut( - "mx管理员变更农场币(.*?)", - command="我的农场", - arguments=["mx-change"], - prefix=True, -) - - -@diuse_farm.assign("mx-change") -async def _(session: Uninfo, num: Query[int] = AlconnaQuery("num", 0)): - if num.result <= 0: - await MessageUtils.build_message("请在指令后跟需要农场币的数量").finish( - reply_to=True - ) - - uid = str(session.user.id) - - if not await g_pToolManager.isRegisteredByUid(uid): - return - - await g_pDBService.user.updateUserPointByUid(uid, int(num.result)) - message = f"伟大的米线大人把你的农场币变更为: {num.result} 农场币" - await MessageUtils.build_message(message).send(reply_to=True)