From b85ce5024b297d98574e9ef18050aea5a197e276 Mon Sep 17 00:00:00 2001 From: KimigaiiWuyi <444835641@qq.com> Date: Thu, 7 Dec 2023 04:32:55 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=E9=94=99=E8=AF=AF,=20=E6=B7=BB=E5=8A=A0=E4=B8=80?= =?UTF-8?q?=E9=83=A8=E5=88=86=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GenshinUID/genshinuid_roleinfo/__init__.py | 13 ++++++++++++- GenshinUID/genshinuid_user/__init__.py | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/GenshinUID/genshinuid_roleinfo/__init__.py b/GenshinUID/genshinuid_roleinfo/__init__.py index 232b722f..eae8f4e7 100644 --- a/GenshinUID/genshinuid_roleinfo/__init__.py +++ b/GenshinUID/genshinuid_roleinfo/__init__.py @@ -3,6 +3,7 @@ import re from gsuid_core.sv import SV from gsuid_core.bot import Bot from gsuid_core.models import Event +from gsuid_core.message_models import Button from gsuid_core.utils.error_reply import UID_HINT from ..utils.convert import get_uid @@ -36,5 +37,15 @@ async def send_role_info(bot: Bot, ev: Event): return await bot.send(UID_HINT) await bot.logger.info('[查询角色信息]uid: {}'.format(uid)) + a = Button('🔍查询探索', '查询探索') + b = Button('🔍查询收集', '查询收集') + c = Button('💖刷新面板', '刷新面板') + t = Button('🌌查询深渊', '查询深渊') + s = Button('✨查询体力', '每日') + u = Button('🆚查询七圣', '七圣召唤') + v = Button('✉原石札记', '原石札记') + x = Button('⏱注册时间', '原神注册时间') + y = Button('💗抽卡记录', '抽卡记录') + im = await draw_pic(uid) - await bot.send(im) + await bot.send_option(im, [[a, b, c], [t, s, u], [v, x, y]]) diff --git a/GenshinUID/genshinuid_user/__init__.py b/GenshinUID/genshinuid_user/__init__.py index f8dcd7b9..ddb54461 100644 --- a/GenshinUID/genshinuid_user/__init__.py +++ b/GenshinUID/genshinuid_user/__init__.py @@ -27,7 +27,7 @@ async def send_link_uid_msg(bot: Bot, ev: Event): c = Button('💖刷新面板', '刷新面板') d2 = Button('🔔绑定UID', '绑定uid') d = Button('🔔绑定更多UID', '绑定uid') - e = Button('🔄切换UID', '切换UID') + e = Button('🔄切换UID', '切换uid') f = Button('❌删除uid', '删除uid') if '绑定' in ev.command: