更新资源

This commit is contained in:
CMHopeSunshine 2022-03-17 19:00:07 +08:00
parent 5e5c3ba0b0
commit c9d81f6fd5
15 changed files with 5 additions and 6 deletions

View File

@ -9,7 +9,7 @@ HoshinoBot = nonebot.NoneBot
from . import log, config, util
from .service import Service, sucmd
__version__ = 'v1.0.3'
__version__ = 'v1.0.0'
_bot = None
os.makedirs(os.path.expanduser('~/.hoshino'), exist_ok=True)

View File

@ -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:
gacha_list = []
curr_time = datetime.datetime.now()
time_str = datetime.datetime.strftime(curr_time,'%m-%d %H:%M')
for i in range(0,10):
if gacha_data['gacha_type'] == 'all_star':
role = random.choice(gacha_data['list'])
@ -237,11 +235,10 @@ async def ten(uid, gacha_data, sd) -> PngImagePlugin.PngImageFile:
img.thumbnail((1024, 768))
img2 = Image.new("RGB", img.size, (255, 255, 255))
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
async def more_ten(uid, gacha_data, num, sd):
time_str = datetime.datetime.strftime(datetime.datetime.now(),'%m-%d %H:%M')
if num == 1:
img = await ten(uid,gacha_data, sd)
else:
@ -249,5 +246,7 @@ async def more_ten(uid, gacha_data, num, sd):
for i in range(0, num):
item_img = await ten(uid, gacha_data, sd)
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)

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -16,7 +16,7 @@ async def bind(bot,ev):
else:
cookie_info = await get_bind_game(cookie)
if not cookie_info or cookie_info['retcode'] != 0:
msg = f'这cookie没有用哦检查一下是不是复制错了或者过期了(试试重新登录米游社再获取),错误信息:{cookie_info["message"]}'
msg = '这cookie没有用哦检查一下是不是复制错了或者过期了(试试重新登录米游社再获取)'
if ev.detail_type != 'private':
msg += '\n当前是在群聊里绑定,建议旅行者添加派蒙好友私聊绑定!'
await bot.send(ev,msg,at_sender=True)

BIN
readme/myzj.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

BIN
readme/ssbq.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

BIN
readme/sy12.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 KiB

BIN
readme/ys.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 386 KiB

BIN
readme/ysa.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 587 KiB

BIN
readme/ysc.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

BIN
readme/十连.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB