🐛 现在可以使用草主推荐等旅行者攻略

This commit is contained in:
KimgiaiiWuyi 2022-08-30 22:16:18 +08:00
parent 634cb616ed
commit 27bc2a6aa5

View File

@ -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))