diff --git a/GenshinUID/genshinuid_enka/__init__.py b/GenshinUID/genshinuid_enka/__init__.py index 0379d97f..e1bfc48f 100644 --- a/GenshinUID/genshinuid_enka/__init__.py +++ b/GenshinUID/genshinuid_enka/__init__.py @@ -68,7 +68,9 @@ async def sned_role_rank_pic(bot: Bot, ev: Event): if not msg: return logger.info(f'[角色排名]角色: {msg}') - await bot.send(await draw_role_rank_img(msg)) + a = Button('💖排名列表', '排名列表') + b = Button(f'✅查询{msg}', f'查询{msg}') + await bot.send_option(await draw_role_rank_img(msg), [a, b]) @sv_akasha.on_command('圣遗物排名') diff --git a/GenshinUID/genshinuid_guide/__init__.py b/GenshinUID/genshinuid_guide/__init__.py index e99c101a..17119a6c 100644 --- a/GenshinUID/genshinuid_guide/__init__.py +++ b/GenshinUID/genshinuid_guide/__init__.py @@ -26,7 +26,8 @@ async def send_guide_pic(bot: Bot, ev: Event): if im: await bot.logger.info('获得{}攻略成功!'.format(ev.text)) - await bot.send_option(im, [Button(f'🎴参考面板{ev.text}', '参考面板{ev.text}')]) + a = Button(f'🎴参考面板{ev.text}', f'参考面板{ev.text}') + await bot.send_option(im, [a]) else: await bot.logger.warning('未找到{}攻略图片'.format(ev.text)) diff --git a/GenshinUID/genshinuid_wikitext/get_cost_pic.py b/GenshinUID/genshinuid_wikitext/get_cost_pic.py index 0efc2e30..5b395173 100644 --- a/GenshinUID/genshinuid_wikitext/get_cost_pic.py +++ b/GenshinUID/genshinuid_wikitext/get_cost_pic.py @@ -16,12 +16,6 @@ from ..utils.get_assets import get_assets_from_ambr from ..utils.map.name_covert import name_to_avatar_id from ..utils.image.convert import str_lenth, convert_img from ..utils.resource.RESOURCE_PATH import CHAR_PATH, WIKI_COST_CHAR_PATH -from ..utils.image.image_tools import ( - get_star_png, - get_simple_bg, - get_unknown_png, - draw_pic_with_ring, -) from ..utils.fonts.genshin_fonts import ( gs_font_24, gs_font_26, @@ -29,6 +23,12 @@ from ..utils.fonts.genshin_fonts import ( gs_font_36, gs_font_44, ) +from ..utils.image.image_tools import ( + get_star_png, + get_simple_bg, + get_unknown_png, + draw_pic_with_ring, +) async def get_char_cost_wiki_img(name: str) -> Union[str, bytes]: