diff --git a/eat.py b/eat.py index 1efe927..da8ba11 100644 --- a/eat.py +++ b/eat.py @@ -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 [".", "/", "-", "!"]: diff --git a/list.json b/list.json index 01d7c83..80c11c5 100644 --- a/list.json +++ b/list.json @@ -202,7 +202,7 @@ }, { "name": "eat", - "version": "1.036", + "version": "1.037", "section": "profile", "maintainer": "SF_PICK", "size": "6.4 kb",