eat 修复问题

This commit is contained in:
xtaodada 2022-06-26 16:26:20 +08:00
parent 05b56ff419
commit afc90fa1c0
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
2 changed files with 3 additions and 3 deletions

4
eat.py
View File

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

View File

@ -192,7 +192,7 @@
},
{
"name": "eat",
"version": "1.044",
"version": "1.045",
"section": "profile",
"maintainer": "SF_PICK",
"size": "22.3 kb",