eat fix a bug

This commit is contained in:
xtaodada 2021-11-10 20:49:24 +08:00
parent 9ebdc9a229
commit 2735681c24
No known key found for this signature in database
GPG Key ID: EE4DC37B55E24736
2 changed files with 2 additions and 2 deletions

2
eat.py
View File

@ -174,7 +174,7 @@ async def eat(context):
if isinstance(context.message.entities[0], MessageEntityMentionName):
target_user = await context.client(GetFullUserRequest(context.message.entities[0].user_id))
elif isinstance(context.message.entities[0], MessageEntityPhone):
target_user = int(context.parameter[0])
target_user = await context.client(GetFullUserRequest(user))
else:
return await context.edit("出错了呜呜呜 ~ 参数错误。")
elif user_raw[:1] in [".", "/", "-", "!"]:

View File

@ -202,7 +202,7 @@
},
{
"name": "eat",
"version": "1.036",
"version": "1.037",
"section": "profile",
"maintainer": "SF_PICK",
"size": "6.4 kb",