mirror of
https://github.com/KimigaiiWuyi/GenshinUID.git
synced 2025-05-29 03:30:32 +08:00
🐛 现在可以使用草主推荐
等旅行者攻略
This commit is contained in:
parent
634cb616ed
commit
27bc2a6aa5
@ -14,6 +14,8 @@ async def send_guide_pic(bot: HoshinoBot, ev: CQEvent):
|
||||
if not name:
|
||||
return
|
||||
name = await alias_to_char_name(name)
|
||||
if name.startswith('旅行者'):
|
||||
name = f'{name[:3]}-{name[-1]}'
|
||||
url = 'https://img.genshin.minigg.cn/guide/{}.jpg'.format(name)
|
||||
if httpx.head(url).status_code == 200:
|
||||
logger.info('获得{}推荐图片成功!'.format(name))
|
||||
|
Loading…
x
Reference in New Issue
Block a user