Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
·
0364f1a
1
Parent(s):
ef4e395
Looks good
Browse files- Powers/plugins/info.py +7 -2
Powers/plugins/info.py
CHANGED
@@ -33,7 +33,9 @@ async def count(c: Gojo, chat):
|
|
33 |
total_bot = bot
|
34 |
bot_admin = 0
|
35 |
ban = []
|
36 |
-
async for banned in c.get_chat_members(
|
|
|
|
|
37 |
ban.append(banned)
|
38 |
|
39 |
total_banned = ban
|
@@ -46,9 +48,12 @@ async def count(c: Gojo, chat):
|
|
46 |
total_banned = len(total_banned)
|
47 |
return total_bot, total_admin, bot_admin, total_banned
|
48 |
except Exception as e:
|
49 |
-
total_bot =
|
|
|
|
|
50 |
return total_bot, total_admin, bot_admin, total_banned
|
51 |
|
|
|
52 |
async def user_info(c: Gojo, user, already=False):
|
53 |
if not already:
|
54 |
user = await c.get_users(user_ids=user)
|
|
|
33 |
total_bot = bot
|
34 |
bot_admin = 0
|
35 |
ban = []
|
36 |
+
async for banned in c.get_chat_members(
|
37 |
+
chat, filter=enums.ChatMembersFilter.BANNED
|
38 |
+
):
|
39 |
ban.append(banned)
|
40 |
|
41 |
total_banned = ban
|
|
|
48 |
total_banned = len(total_banned)
|
49 |
return total_bot, total_admin, bot_admin, total_banned
|
50 |
except Exception as e:
|
51 |
+
total_bot = (
|
52 |
+
total_admin
|
53 |
+
) = bot_admin = total_banned = "Can't fetch due to some error."
|
54 |
return total_bot, total_admin, bot_admin, total_banned
|
55 |
|
56 |
+
|
57 |
async def user_info(c: Gojo, user, already=False):
|
58 |
if not already:
|
59 |
user = await c.get_users(user_ids=user)
|