From 7c08a5de0c3431dab632de2772906b975b49f256 Mon Sep 17 00:00:00 2001 From: Alexander Soloviev <5732380+ScaredDonut@users.noreply.github.com> Date: Wed, 26 May 2021 04:39:24 -0500 Subject: [PATCH 1/3] Update infochannel.py added booster counter as requested on https://github.com/bobloy/Fox-V3/issues/185 --- infochannel/infochannel.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/infochannel/infochannel.py b/infochannel/infochannel.py index c196e20..b9a0d9e 100644 --- a/infochannel/infochannel.py +++ b/infochannel/infochannel.py @@ -28,9 +28,12 @@ async def get_channel_counts(category, guild): online_num = members - offline_num # Gets count of actual users human_num = members - bot_num + # count amount of premium subs/nitro subs. + boosters = guild.premium_subscription_count return { "members": members, "humans": human_num, + "boosters": boosters, "bots": bot_num, "roles": roles_num, "channels": channels_num, @@ -58,6 +61,7 @@ class InfoChannel(Cog): self.default_channel_names = { "members": "Members: {count}", "humans": "Humans: {count}", + "boosters": "Boosters: {count}", "bots": "Bots: {count}", "roles": "Roles: {count}", "channels": "Channels: {count}", @@ -170,6 +174,7 @@ class InfoChannel(Cog): Valid Types are: - `members`: Total members on the server - `humans`: Total members that aren't bots + - `boosters`: Total amount of boosters - `bots`: Total bots - `roles`: Total number of roles - `channels`: Total number of channels excluding infochannels, @@ -224,6 +229,7 @@ class InfoChannel(Cog): Valid Types are: - `members`: Total members on the server - `humans`: Total members that aren't bots + - `boosters`: Total amount of boosters - `bots`: Total bots - `roles`: Total number of roles - `channels`: Total number of channels excluding infochannels @@ -441,6 +447,7 @@ class InfoChannel(Cog): guild, members=True, humans=True, + boosters=True, bots=True, roles=True, channels=True, From 5b75002c88568af9ceb96be459270c79f1dac5a6 Mon Sep 17 00:00:00 2001 From: Alexander Soloviev <5732380+ScaredDonut@users.noreply.github.com> Date: Wed, 26 May 2021 04:44:22 -0500 Subject: [PATCH 2/3] Update infochannel.py fixed formatting I think? too many spaces/indents on github for some reason --- infochannel/infochannel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infochannel/infochannel.py b/infochannel/infochannel.py index b9a0d9e..017d9ab 100644 --- a/infochannel/infochannel.py +++ b/infochannel/infochannel.py @@ -28,7 +28,7 @@ async def get_channel_counts(category, guild): online_num = members - offline_num # Gets count of actual users human_num = members - bot_num - # count amount of premium subs/nitro subs. + # count amount of premium subs/nitro subs. boosters = guild.premium_subscription_count return { "members": members, From 1ffac638edaf11694b359f824ec96eae16734b14 Mon Sep 17 00:00:00 2001 From: Alexander Soloviev <5732380+ScaredDonut@users.noreply.github.com> Date: Wed, 26 May 2021 04:46:12 -0500 Subject: [PATCH 3/3] Update infochannel.py more formatting fix, too much indentation on github for whatever reason but not on notepad --- infochannel/infochannel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infochannel/infochannel.py b/infochannel/infochannel.py index 017d9ab..9b98960 100644 --- a/infochannel/infochannel.py +++ b/infochannel/infochannel.py @@ -447,7 +447,7 @@ class InfoChannel(Cog): guild, members=True, humans=True, - boosters=True, + boosters=True, bots=True, roles=True, channels=True,