eat 修复问题

This commit is contained in:
xtaodada 2022-06-26 16:29:42 +08:00
parent 898aef8aa0
commit 463d692288
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
2 changed files with 3 additions and 3 deletions

View File

@ -67,7 +67,7 @@ async def eat_it(context, user, base, mask, photo, number, layer=0):
try:
markImg = Image.open(f"plugins{sep}eat{sep}{str(user.id)}.jpg")
maskImg = Image.open(f"plugins{sep}eat{sep}mask{str(numberPosition[2])}.png")
maskImg = Image.open(f"plugins{sep}eat{sep}mask{str(numberPosition[2])}.png").convert("RGBA")
except:
await context.edit(f"图片模版加载出错请检查并更新配置mask{str(numberPosition[2])}.png")
return base
@ -411,7 +411,7 @@ async def eat(client_: Client, context: Message):
markImg = Image.open(f"plugins{sep}eat{sep}" + str(target_user_id) + ".jpg")
try:
eatImg = Image.open(f"plugins{sep}eat{sep}eat" + str(number) + ".png")
maskImg = Image.open(f"plugins{sep}eat{sep}mask" + str(number) + ".png")
maskImg = Image.open(f"plugins{sep}eat{sep}mask" + str(number) + ".png").convert("RGBA")
except:
await context.edit(f"图片模版加载出错,请检查并更新配置:{str(number)}")
return

View File

@ -12,7 +12,7 @@
},
{
"name": "eat",
"version": "1.046",
"version": "1.047",
"section": "profile",
"maintainer": "SF_PICK",
"size": "20.0 kb",