mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
修改优化开箱显示图片
This commit is contained in:
parent
0c7c7f3987
commit
3cc834d424
@ -135,14 +135,8 @@ update_case = on_command(
|
|||||||
show_case = on_command("查看武器箱", priority=5, block=True)
|
show_case = on_command("查看武器箱", priority=5, block=True)
|
||||||
my_knifes = on_command("我的金色", priority=1, permission=GROUP, block=True)
|
my_knifes = on_command("我的金色", priority=1, permission=GROUP, block=True)
|
||||||
show_skin = on_command("查看皮肤", priority=5, block=True)
|
show_skin = on_command("查看皮肤", priority=5, block=True)
|
||||||
test = on_command("test", priority=1, permission=GROUP, block=True)
|
|
||||||
|
|
||||||
|
|
||||||
@test.handle()
|
|
||||||
async def _(event: GroupMessageEvent):
|
|
||||||
a = await get_skin_case("872472")
|
|
||||||
print(a)
|
|
||||||
|
|
||||||
|
|
||||||
@reload_count.handle()
|
@reload_count.handle()
|
||||||
async def _(event: GroupMessageEvent):
|
async def _(event: GroupMessageEvent):
|
||||||
|
|||||||
@ -251,7 +251,9 @@ async def open_multiple_case(
|
|||||||
h = img_h * int(num / 5)
|
h = img_h * int(num / 5)
|
||||||
else:
|
else:
|
||||||
h = img_h * int(num / 5) + img_h
|
h = img_h * int(num / 5) + img_h
|
||||||
markImg = BuildImage(w, h, img_w - 10, img_h - 10, 10)
|
markImg = BuildImage(
|
||||||
|
w - 10, h - 10, img_w - 10, img_h - 10, 10, color=(255, 255, 255)
|
||||||
|
)
|
||||||
for img in img_list:
|
for img in img_list:
|
||||||
markImg.paste(img, alpha=True)
|
markImg.paste(img, alpha=True)
|
||||||
over_count = max_count - user.today_open_total
|
over_count = max_count - user.today_open_total
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user