Skip to content

Commit

Permalink
✨ 新增角色橱窗
Browse files Browse the repository at this point in the history
  • Loading branch information
KimigaiiWuyi committed Jun 30, 2024
1 parent a95f93b commit 9d81565
Show file tree
Hide file tree
Showing 34 changed files with 673 additions and 43 deletions.
13 changes: 12 additions & 1 deletion GenshinUID/genshinuid_enka/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from ..utils.image.convert import convert_img
from ..utils.map.GS_MAP_PATH import alias_data
from .draw_arti_rank import draw_arti_rank_img
from .draw_char_info import draw_all_char_list
from .draw_char_rank import draw_cahrcard_list
from .draw_role_rank import draw_role_rank_img
from .get_enka_img import draw_enka_img, get_full_char
Expand Down Expand Up @@ -352,5 +353,15 @@ async def send_charcard_list(bot: Bot, ev: Event):
if uid is None:
return await bot.send(UID_HINT)
im = await draw_cahrcard_list(str(uid), ev)
await bot.logger.info(f'UID{uid}获取角色数据成功!')
await bot.logger.info(f'[毕业度统计] UID{uid}获取角色数据成功!')
await bot.send(im)


@sv_get_enka.on_command(('角色橱窗'))
async def send_char_detail_list(bot: Bot, ev: Event):
uid = await get_uid(bot, ev)
if uid is None:
return await bot.send(UID_HINT)
im = await draw_all_char_list(str(uid))
await bot.logger.info(f'[角色橱窗] UID{uid}获取角色数据成功!')
await bot.send(im)
Loading

0 comments on commit 9d81565

Please sign in to comment.