mirror of
https://github.com/TeamPGM/PagerMaid_Plugins_Pyro.git
synced 2024-11-22 10:16:57 +00:00
eat fix a bug
This commit is contained in:
parent
7142a76fbf
commit
86752c49b4
2
eat.py
2
eat.py
@ -226,6 +226,8 @@ async def eat(client_: Client, context: Message):
|
||||
user = await client_.get_me()
|
||||
else:
|
||||
return await context.edit(f"{lang('error_prefix')}{lang('arg_error')}")
|
||||
if user[:1] in [".", "/", "-", "!"]:
|
||||
user = await client_.get_me()
|
||||
if not isinstance(user, User):
|
||||
try:
|
||||
user = await client_.get_users(user)
|
||||
|
Loading…
Reference in New Issue
Block a user