eat fix a bug

This commit is contained in:
xtaodada 2022-03-17 19:16:06 +08:00
parent 8b4b0a713b
commit 9ce93a14d0
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
2 changed files with 1 additions and 3 deletions

2
eat.py
View File

@ -430,8 +430,6 @@ async def eat(client_: Client, context: Message):
safe_remove(f"plugins{sep}eat{sep}" + str(target_user_id) + ".png") safe_remove(f"plugins{sep}eat{sep}" + str(target_user_id) + ".png")
safe_remove(f"plugins{sep}eat{sep}" + str(from_user_id) + ".jpg") safe_remove(f"plugins{sep}eat{sep}" + str(from_user_id) + ".jpg")
safe_remove(f"plugins{sep}eat{sep}" + str(from_user_id) + ".png") safe_remove(f"plugins{sep}eat{sep}" + str(from_user_id) + ".png")
safe_remove(f"plugins{sep}eat{sep}eat.webp")
safe_remove(photo)
else: else:
return await context.edit("此用户未设置头像或头像对您不可见。") return await context.edit("此用户未设置头像或头像对您不可见。")
if reply_to: if reply_to:

View File

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