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

Update info.py

Browse files
Files changed (1) hide show
  1. Powers/plugins/info.py +2 -4
Powers/plugins/info.py CHANGED
@@ -79,14 +79,14 @@ async def user_info(c: Gojo, user, already=False):
79
  photo_id = user.photo.big_file_id if user.photo else None
80
  is_support = True if user_id in SUPPORT_STAFF else False
81
  if user_id in SUPPORT_STAFF:
 
82
  if user_id in DEV_USERS:
83
  omp = "User is dev"
84
  elif user_id in SUDO_USERS:
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,8 +202,6 @@ async def info_func(c: Gojo, message: Message):
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:
 
79
  photo_id = user.photo.big_file_id if user.photo else None
80
  is_support = True if user_id in SUPPORT_STAFF else False
81
  if user_id in SUPPORT_STAFF:
82
+ omp = "Hmmm.......Who is that again?"
83
  if user_id in DEV_USERS:
84
  omp = "User is dev"
85
  elif user_id in SUDO_USERS:
86
  omp = "User is sudoer"
87
  elif user_id in WHITELIST_USERS:
88
  omp = "User is in whitelist"
89
+
 
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
  return await m.edit(str(e))
206
 
207
  if not photo_id: