mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2025-04-12 23:29:37 +08:00
🐛 武器图鉴路径
This commit is contained in:
parent
8f58e9e52f
commit
df966e8d5d
@ -7,7 +7,7 @@ from LittlePaimon.config import config
|
|||||||
from LittlePaimon.utils.requests import aiorequests
|
from LittlePaimon.utils.requests import aiorequests
|
||||||
|
|
||||||
CARD_RESOURCES_API = '{proxy}https://raw.githubusercontent.com/Nwflower/Atlas/master/resource/text/card.yaml'
|
CARD_RESOURCES_API = '{proxy}https://raw.githubusercontent.com/Nwflower/Atlas/master/resource/text/card.yaml'
|
||||||
CARD_API = '{proxy}https://raw.githubusercontent.com/Nwflower/genshin-atlas/master/card/{name}.png'
|
CARD_API = '{proxy}https://raw.githubusercontent.com/Nwflower/genshin-atlas/master/{name}.png'
|
||||||
RESOURCES_API = '{proxy}https://raw.githubusercontent.com/Nwflower/genshin-atlas/master/path.json'
|
RESOURCES_API = '{proxy}https://raw.githubusercontent.com/Nwflower/genshin-atlas/master/path.json'
|
||||||
|
|
||||||
|
|
||||||
|
@ -270,8 +270,8 @@ async def _(bot: Bot, event: MessageEvent, state: T_State, type: str = Arg('type
|
|||||||
temp_type = list(matches.keys())[0]
|
temp_type = list(matches.keys())[0]
|
||||||
if type in {'材料', '攻略', '图鉴'}:
|
if type in {'材料', '攻略', '图鉴'}:
|
||||||
type = f'{temp_type}图鉴' if temp_type != '角色' else f'{temp_type}{type}'
|
type = f'{temp_type}图鉴' if temp_type != '角色' else f'{temp_type}{type}'
|
||||||
if type == '七圣召唤图鉴':
|
if type in {'七圣召唤图鉴', '武器图鉴'}:
|
||||||
final_name = (await get_atlas_full_path(final_name, 'card')).replace('/card/', '').rstrip('.png')
|
final_name = (await get_atlas_full_path(final_name, 'card' if type == '七圣召唤图鉴' else 'weapon')).replace('/card/', '').rstrip('.png')
|
||||||
try:
|
try:
|
||||||
await total_wiki.finish(
|
await total_wiki.finish(
|
||||||
MessageSegment.image(API[type].format(proxy=config.github_proxy, name=final_name)))
|
MessageSegment.image(API[type].format(proxy=config.github_proxy, name=final_name)))
|
||||||
|
@ -7,7 +7,7 @@ API: Dict[str, str] = {
|
|||||||
'角色材料': '{proxy}https://raw.githubusercontent.com/Nwflower/genshin-atlas/master/material%20for%20role/{name}.png',
|
'角色材料': '{proxy}https://raw.githubusercontent.com/Nwflower/genshin-atlas/master/material%20for%20role/{name}.png',
|
||||||
'收益曲线': '{proxy}https://raw.githubusercontent.com/CMHopeSunshine/LittlePaimonRes/main/genshin_guide/curve/{name}.jpg',
|
'收益曲线': '{proxy}https://raw.githubusercontent.com/CMHopeSunshine/LittlePaimonRes/main/genshin_guide/curve/{name}.jpg',
|
||||||
'参考面板': '{proxy}https://raw.githubusercontent.com/CMHopeSunshine/LittlePaimonRes/main/genshin_guide/panel/{name}.jpg',
|
'参考面板': '{proxy}https://raw.githubusercontent.com/CMHopeSunshine/LittlePaimonRes/main/genshin_guide/panel/{name}.jpg',
|
||||||
'武器图鉴': '{proxy}https://raw.githubusercontent.com/Nwflower/genshin-atlas/master/weapon/{name}.png',
|
'武器图鉴': '{proxy}https://raw.githubusercontent.com/Nwflower/genshin-atlas/master/{name}.png',
|
||||||
'圣遗物图鉴': '{proxy}https://raw.githubusercontent.com/Nwflower/genshin-atlas/master/artifact/{name}.png',
|
'圣遗物图鉴': '{proxy}https://raw.githubusercontent.com/Nwflower/genshin-atlas/master/artifact/{name}.png',
|
||||||
'原魔图鉴': '{proxy}https://raw.githubusercontent.com/CMHopeSunshine/GenshinWikiMap/master/results/monster_map/{name}.jpg',
|
'原魔图鉴': '{proxy}https://raw.githubusercontent.com/CMHopeSunshine/GenshinWikiMap/master/results/monster_map/{name}.jpg',
|
||||||
'特产图鉴': '{proxy}https://raw.githubusercontent.com/Nwflower/genshin-atlas/master/specialty/{name}.png',
|
'特产图鉴': '{proxy}https://raw.githubusercontent.com/Nwflower/genshin-atlas/master/specialty/{name}.png',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user