From 86752c49b468c126d9a4f5c50c6707b4c329bdd0 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Wed, 16 Mar 2022 21:32:32 +0800 Subject: [PATCH] eat fix a bug --- eat.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eat.py b/eat.py index d4842f3..ee61826 100644 --- a/eat.py +++ b/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)