Spaces:
Paused
Paused
Captain Ezio
commited on
Commit
·
242f01b
1
Parent(s):
d0e4f8c
Minor changes
Browse files- Powers/plugins/info.py +4 -2
Powers/plugins/info.py
CHANGED
|
@@ -85,8 +85,8 @@ async def user_info(c: Gojo, user, already=False):
|
|
| 85 |
omp = "User is sudoer"
|
| 86 |
elif user_id in WHITELIST_USERS:
|
| 87 |
omp = "User is in whitelist"
|
| 88 |
-
|
| 89 |
-
|
| 90 |
is_bot = user.is_bot
|
| 91 |
is_fake = user.is_fake
|
| 92 |
status = user.status
|
|
@@ -202,6 +202,8 @@ async def info_func(c: Gojo, message: Message):
|
|
| 202 |
except Exception as e:
|
| 203 |
LOGGER.error(e)
|
| 204 |
LOGGER.error(format_exc())
|
|
|
|
|
|
|
| 205 |
return await m.edit(str(e))
|
| 206 |
|
| 207 |
if not photo_id:
|
|
|
|
| 85 |
omp = "User is sudoer"
|
| 86 |
elif user_id in WHITELIST_USERS:
|
| 87 |
omp = "User is in whitelist"
|
| 88 |
+
else:
|
| 89 |
+
omp = "Hmmm.......Who is that again?"
|
| 90 |
is_bot = user.is_bot
|
| 91 |
is_fake = user.is_fake
|
| 92 |
status = user.status
|
|
|
|
| 202 |
except Exception as e:
|
| 203 |
LOGGER.error(e)
|
| 204 |
LOGGER.error(format_exc())
|
| 205 |
+
if e.startswith("User not found"):
|
| 206 |
+
return await m.edit("User is a ghost👻 be aware of him")
|
| 207 |
return await m.edit(str(e))
|
| 208 |
|
| 209 |
if not photo_id:
|