Captain Ezio commited on
Commit
972c5d6
·
1 Parent(s): cc6bb3b

Update info.py

Browse files
Files changed (1) hide show
  1. Powers/plugins/info.py +8 -3
Powers/plugins/info.py CHANGED
@@ -21,16 +21,21 @@ async def count(c: Gojo, chat):
21
  async for admin in c.get_chat_members(
22
  chat_id=chat, filter=enums.ChatMembersFilter.ADMINISTRATORS
23
  ):
24
- total_admin = administrator.append(admin)
 
25
  bot = []
26
  async for tbot in c.get_chat_members(
27
  chat_id=chat, filter=enums.ChatMembersFilter.BOTS
28
  ):
29
- total_bot = bot.append(tbot)
 
 
30
  bot_admin = 0
31
  ban = []
32
  async for banned in c.get_chat_members(chat, filter=enums.ChatMembersFilter.BANNED):
33
- total_banned = ban.append(banned)
 
 
34
  for x in total_admin:
35
  for y in total_bot:
36
  if x == y:
 
21
  async for admin in c.get_chat_members(
22
  chat_id=chat, filter=enums.ChatMembersFilter.ADMINISTRATORS
23
  ):
24
+ administrator.append(admin)
25
+ total_admin = administrator
26
  bot = []
27
  async for tbot in c.get_chat_members(
28
  chat_id=chat, filter=enums.ChatMembersFilter.BOTS
29
  ):
30
+ bot.append(tbot)
31
+
32
+ total_bot = bot
33
  bot_admin = 0
34
  ban = []
35
  async for banned in c.get_chat_members(chat, filter=enums.ChatMembersFilter.BANNED):
36
+ ban.append(banned)
37
+
38
+ total_banned = ban
39
  for x in total_admin:
40
  for y in total_bot:
41
  if x == y: