mirror of
https://github.com/KimigaiiWuyi/GenshinUID.git
synced 2025-05-30 04:00:31 +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:
|
if not name:
|
||||||
return
|
return
|
||||||
name = await alias_to_char_name(name)
|
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)
|
url = 'https://img.genshin.minigg.cn/guide/{}.jpg'.format(name)
|
||||||
if httpx.head(url).status_code == 200:
|
if httpx.head(url).status_code == 200:
|
||||||
logger.info('获得{}推荐图片成功!'.format(name))
|
logger.info('获得{}推荐图片成功!'.format(name))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user