mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 01:57:46 +00:00
eat 修复问题
This commit is contained in:
parent
05b56ff419
commit
afc90fa1c0
4
eat.py
4
eat.py
@ -82,7 +82,7 @@ async def eat_it(context, uid, base, mask, photo, number, layer=0):
|
|||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
markImg = Image.open("plugins/eat/" + str(uid) + ".jpg")
|
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:
|
except:
|
||||||
await context.edit(f"图片模版加载出错,请检查并更新配置:mask{str(numberPosition[2])}.png")
|
await context.edit(f"图片模版加载出错,请检查并更新配置:mask{str(numberPosition[2])}.png")
|
||||||
return base
|
return base
|
||||||
@ -438,7 +438,7 @@ async def eat(context: NewMessage.Event):
|
|||||||
markImg = Image.open("plugins/eat/" + str(target_user_id) + ".jpg")
|
markImg = Image.open("plugins/eat/" + str(target_user_id) + ".jpg")
|
||||||
try:
|
try:
|
||||||
eatImg = Image.open("plugins/eat/eat" + str(number) + ".png")
|
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:
|
except:
|
||||||
await context.edit(f"图片模版加载出错,请检查并更新配置:{str(number)}")
|
await context.edit(f"图片模版加载出错,请检查并更新配置:{str(number)}")
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user