Captain Ezio commited on
Commit
4c831f7
·
1 Parent(s): 4c5a88f

Minor changes

Browse files
Files changed (1) hide show
  1. 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
- omp = "Hmmm.......Who is that again?"
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: