From 456ba8bf4be626542e86b1aa11b2f6d395d9cdc3 Mon Sep 17 00:00:00 2001 From: baiqwerdvd <158065462+baiqwerdvd@users.noreply.github.com> Date: Tue, 28 May 2024 10:06:15 +0800 Subject: [PATCH] use on_command --- ArknightsUID/arknightsuid_charsnapshot/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArknightsUID/arknightsuid_charsnapshot/__init__.py b/ArknightsUID/arknightsuid_charsnapshot/__init__.py index 6708a9d..cf30156 100644 --- a/ArknightsUID/arknightsuid_charsnapshot/__init__.py +++ b/ArknightsUID/arknightsuid_charsnapshot/__init__.py @@ -9,7 +9,7 @@ from .get_char_snapshot import get_char_snapshot sv_get_char_snapshot = SV("ark角色快照") -@sv_get_char_snapshot.on_prefix(f"{PREFIX}角色快照") +@sv_get_char_snapshot.on_command(f"{PREFIX}角色快照") async def send_char_snapshot(bot: Bot, ev: Event): user_id = ev.at if ev.at else ev.user_id uid = await ArknightsBind.get_uid_by_game(user_id, ev.bot_id)