mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2025-04-12 23:29:37 +08:00
🐛 改漏了
This commit is contained in:
parent
749e3ed7d3
commit
806a32e129
@ -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/{name}.png'
|
CARD_API = '{proxy}https://raw.githubusercontent.com/Nwflower/genshin-atlas/master/{name}'
|
||||||
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'
|
||||||
|
|
||||||
|
|
||||||
|
@ -271,7 +271,7 @@ async def _(bot: Bot, event: MessageEvent, state: T_State, type: str = Arg('type
|
|||||||
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 in {'七圣召唤图鉴', '武器图鉴'}:
|
if type in {'七圣召唤图鉴', '武器图鉴'}:
|
||||||
final_name = (await get_atlas_full_path(final_name, 'card' if type == '七圣召唤图鉴' else 'weapon'))
|
final_name = await get_atlas_full_path(final_name, 'card' if type == '七圣召唤图鉴' else 'weapon')
|
||||||
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)))
|
||||||
@ -340,7 +340,7 @@ async def _(state: T_State, matches: dict = Arg('matches'), choice: str = ArgPla
|
|||||||
break
|
break
|
||||||
if final_name:
|
if final_name:
|
||||||
if type in {'七圣召唤图鉴', '武器图鉴'}:
|
if type in {'七圣召唤图鉴', '武器图鉴'}:
|
||||||
final_name = (await get_atlas_full_path(final_name, 'card' if type == '七圣召唤图鉴' else 'weapon'))
|
final_name = await get_atlas_full_path(final_name, 'card' if type == '七圣召唤图鉴' else 'weapon')
|
||||||
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)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user