mirror of
https://github.com/TeamPGM/PagerMaid_Plugins_Pyro.git
synced 2024-11-22 09:41:54 +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()
|
user = await client_.get_me()
|
||||||
else:
|
else:
|
||||||
return await context.edit(f"{lang('error_prefix')}{lang('arg_error')}")
|
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):
|
if not isinstance(user, User):
|
||||||
try:
|
try:
|
||||||
user = await client_.get_users(user)
|
user = await client_.get_users(user)
|
||||||
|
Loading…
Reference in New Issue
Block a user