mirror of
https://github.com/KimigaiiWuyi/GenshinUID.git
synced 2025-05-07 12:43:26 +08:00
🐛 修复Bug, 支持更多适配按钮
This commit is contained in:
parent
d20418376d
commit
173242fad9
@ -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('圣遗物排名')
|
||||
|
@ -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))
|
||||
|
||||
|
@ -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]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user