eat fix a bug

This commit is contained in:
xtaodada 2022-03-16 21:32:32 +08:00
parent 7142a76fbf
commit 86752c49b4
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

2
eat.py
View File

@ -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)