更新资源
@ -9,7 +9,7 @@ HoshinoBot = nonebot.NoneBot
|
|||||||
from . import log, config, util
|
from . import log, config, util
|
||||||
from .service import Service, sucmd
|
from .service import Service, sucmd
|
||||||
|
|
||||||
__version__ = 'v1.0.3'
|
__version__ = 'v1.0.0'
|
||||||
|
|
||||||
_bot = None
|
_bot = None
|
||||||
os.makedirs(os.path.expanduser('~/.hoshino'), exist_ok=True)
|
os.makedirs(os.path.expanduser('~/.hoshino'), exist_ok=True)
|
||||||
|
@ -206,8 +206,6 @@ async def create_item(rank, item_type, name, element, count, dg_time):
|
|||||||
|
|
||||||
async def ten(uid, gacha_data, sd) -> PngImagePlugin.PngImageFile:
|
async def ten(uid, gacha_data, sd) -> PngImagePlugin.PngImageFile:
|
||||||
gacha_list = []
|
gacha_list = []
|
||||||
curr_time = datetime.datetime.now()
|
|
||||||
time_str = datetime.datetime.strftime(curr_time,'%m-%d %H:%M')
|
|
||||||
for i in range(0,10):
|
for i in range(0,10):
|
||||||
if gacha_data['gacha_type'] == 'all_star':
|
if gacha_data['gacha_type'] == 'all_star':
|
||||||
role = random.choice(gacha_data['list'])
|
role = random.choice(gacha_data['list'])
|
||||||
@ -237,11 +235,10 @@ async def ten(uid, gacha_data, sd) -> PngImagePlugin.PngImageFile:
|
|||||||
img.thumbnail((1024, 768))
|
img.thumbnail((1024, 768))
|
||||||
img2 = Image.new("RGB", img.size, (255, 255, 255))
|
img2 = Image.new("RGB", img.size, (255, 255, 255))
|
||||||
img2.paste(img, mask=img.split()[3])
|
img2.paste(img, mask=img.split()[3])
|
||||||
draw = ImageDraw.Draw(img2)
|
|
||||||
draw.text((27,545),('@%s %s Created By 频道·尘世闲游' % (str(sd['nickname']),time_str)), font=timefont, fill="#8E8E8E")
|
|
||||||
return img2
|
return img2
|
||||||
|
|
||||||
async def more_ten(uid, gacha_data, num, sd):
|
async def more_ten(uid, gacha_data, num, sd):
|
||||||
|
time_str = datetime.datetime.strftime(datetime.datetime.now(),'%m-%d %H:%M')
|
||||||
if num == 1:
|
if num == 1:
|
||||||
img = await ten(uid,gacha_data, sd)
|
img = await ten(uid,gacha_data, sd)
|
||||||
else:
|
else:
|
||||||
@ -249,5 +246,7 @@ async def more_ten(uid, gacha_data, num, sd):
|
|||||||
for i in range(0, num):
|
for i in range(0, num):
|
||||||
item_img = await ten(uid, gacha_data, sd)
|
item_img = await ten(uid, gacha_data, sd)
|
||||||
img.paste(item_img, (0, 575 * i))
|
img.paste(item_img, (0, 575 * i))
|
||||||
|
draw = ImageDraw.Draw(img)
|
||||||
|
draw.text((27,575 * num - 30),('@%s %s Created By 惜月の小派蒙' % (str(sd['nickname']),time_str)), font=timefont, fill="#8E8E8E")
|
||||||
return pil2b64(img, 75)
|
return pil2b64(img, 75)
|
||||||
|
|
||||||
|
BIN
hoshino/modules/Genshin_Paimon/res/reliquaries/72544.png
Normal file
After Width: | Height: | Size: 9.4 KiB |
BIN
hoshino/modules/Genshin_Paimon/res/reliquaries/88543.png
Normal file
After Width: | Height: | Size: 8.3 KiB |
BIN
hoshino/modules/Genshin_Paimon/res/reliquaries/88554.png
Normal file
After Width: | Height: | Size: 6.4 KiB |
BIN
hoshino/modules/Genshin_Paimon/res/reliquaries/96543.png
Normal file
After Width: | Height: | Size: 7.4 KiB |
BIN
hoshino/modules/Genshin_Paimon/res/role_side_card/10000043.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
@ -16,7 +16,7 @@ async def bind(bot,ev):
|
|||||||
else:
|
else:
|
||||||
cookie_info = await get_bind_game(cookie)
|
cookie_info = await get_bind_game(cookie)
|
||||||
if not cookie_info or cookie_info['retcode'] != 0:
|
if not cookie_info or cookie_info['retcode'] != 0:
|
||||||
msg = f'这cookie没有用哦,检查一下是不是复制错了或者过期了(试试重新登录米游社再获取),错误信息:{cookie_info["message"]}'
|
msg = '这cookie没有用哦,检查一下是不是复制错了或者过期了(试试重新登录米游社再获取)'
|
||||||
if ev.detail_type != 'private':
|
if ev.detail_type != 'private':
|
||||||
msg += '\n当前是在群聊里绑定,建议旅行者添加派蒙好友私聊绑定!'
|
msg += '\n当前是在群聊里绑定,建议旅行者添加派蒙好友私聊绑定!'
|
||||||
await bot.send(ev,msg,at_sender=True)
|
await bot.send(ev,msg,at_sender=True)
|
||||||
|
BIN
readme/myzj.jpg
Normal file
After Width: | Height: | Size: 104 KiB |
BIN
readme/ssbq.jpg
Normal file
After Width: | Height: | Size: 68 KiB |
BIN
readme/sy12.jpg
Normal file
After Width: | Height: | Size: 178 KiB |
BIN
readme/ys.jpg
Normal file
After Width: | Height: | Size: 386 KiB |
BIN
readme/ysa.jpg
Normal file
After Width: | Height: | Size: 587 KiB |
BIN
readme/ysc.jpg
Normal file
After Width: | Height: | Size: 65 KiB |
BIN
readme/十连.jpg
Normal file
After Width: | Height: | Size: 67 KiB |