LittlePaimon/Paimon_Wiki/blue.py
2022-05-21 14:55:23 +08:00

66 lines
2.3 KiB
Python

from utils import aiorequests
from utils.message_util import MessageBuild
blue = {
'胡桃': ['', (0, 1886)],
'托马': ['', (1886, 2420)],
'宵宫': ['', (2420, 2955)],
'烟绯': ['', (2955, 3492)],
'可莉': ['', (3492, 4029)],
'迪卢克': ['', (4029, 4567)],
'辛焱': ['', (4567, 5511)],
'安柏': ['', (5511, 6047)],
'香菱': ['', (6047, 6982)],
'班尼特': ['', (6982, 7932)],
'神里绫人': ['', (0, 750)],
'珊瑚宫心海': ['', (750, 1700)],
'达达利亚': ['', (1700, 2424)],
'行秋': ['', (2424, 2920)],
'莫娜': ['', (2920, 3640)],
'芭芭拉': ['', (3640, 4396)],
'申鹤': ['', (0, 959)],
'神里绫华': ['', (959, 1496)],
'优菈': ['', (1496, 2231)],
'甘雨': ['', (2231, 3569)],
'凯亚': ['', (3569, 4102)],
'重云': ['', (4102, 4639)],
'七七': ['', (4639, 5374)],
'迪奥娜': ['', (5374, 5710)],
'罗莎莉亚': ['', (5710, 6044)],
'埃洛伊': ['', (6044, 6394)],
'八重神子': ['', (0, 947)],
'雷电将军': ['', (947, 1474)],
'九条裟罗': ['', (1474, 2001)],
'刻晴': ['', (2001, 2730)],
'雷泽': ['', (2730, 3258)],
'菲谢尔': ['', (3258, 3786)],
'丽莎': ['', (3786, 4310)],
'北斗': ['', (4310, 4838)],
'雷主': ['', (4838, 5177)],
'早柚': ['', (0, 553)],
'枫原万叶': ['', (553, 1078)],
'': ['', (1078, 1803)],
'温迪': ['', (1803, 2527)],
'': ['', (2527, 3252)],
'砂糖': ['', (3252, 3977)],
'风主': ['', (3977, 4311)],
'': ['', (3977, 4311)],
'': ['', (3977, 4311)],
'荒泷一斗': ['', (0, 741)],
'五郎': ['', (741, 1055)],
'阿贝多': ['', (1055, 1767)],
'钟离': ['', (1767, 2475)],
'诺艾尔': ['', (2475, 3188)],
'凝光': ['', (3188, 3900)],
'岩主': ['', (3900, 4608)],
'云堇': ['', (4608, 5325)]
}
async def get_blue_pic(name):
for c in blue.items():
if c[0] == name:
img = await aiorequests.get_img(url=f'https://static.cherishmoon.fun/LittlePaimon/blue/{c[1][0]}.jpg', crop=(0, int(c[1][1][0]), 1080, int(c[1][1][1])))
return MessageBuild.Image(img)
return None