mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 07:08:18 +00:00
eat fix a bug
This commit is contained in:
parent
9ebdc9a229
commit
2735681c24
2
eat.py
2
eat.py
@ -174,7 +174,7 @@ async def eat(context):
|
|||||||
if isinstance(context.message.entities[0], MessageEntityMentionName):
|
if isinstance(context.message.entities[0], MessageEntityMentionName):
|
||||||
target_user = await context.client(GetFullUserRequest(context.message.entities[0].user_id))
|
target_user = await context.client(GetFullUserRequest(context.message.entities[0].user_id))
|
||||||
elif isinstance(context.message.entities[0], MessageEntityPhone):
|
elif isinstance(context.message.entities[0], MessageEntityPhone):
|
||||||
target_user = int(context.parameter[0])
|
target_user = await context.client(GetFullUserRequest(user))
|
||||||
else:
|
else:
|
||||||
return await context.edit("出错了呜呜呜 ~ 参数错误。")
|
return await context.edit("出错了呜呜呜 ~ 参数错误。")
|
||||||
elif user_raw[:1] in [".", "/", "-", "!"]:
|
elif user_raw[:1] in [".", "/", "-", "!"]:
|
||||||
|
Loading…
Reference in New Issue
Block a user