File tree Expand file tree Collapse file tree 4 files changed +13
-9
lines changed
src/ghutils/cogs/app_commands Expand file tree Collapse file tree 4 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ name = "ghutils-bot"
88requires-python = " >=3.12"
99dependencies = [
1010 " ghutils-common" ,
11- " discord-py>=2.4.0 " ,
11+ " discord-py @ git+https://github.com/Rapptz/discord.py@db7b2d9058e4 " ,
1212 " pydantic>=2.7.4" ,
1313 " pydantic-settings>=2.3.4" ,
1414 " fastapi>=0.111.0" ,
Original file line number Diff line number Diff line change @@ -278,6 +278,8 @@ async def status(
278278 commit_info = "Unknown"
279279 deployment_time_info = "Unknown"
280280
281+ app_info = await self .bot .application_info ()
282+
281283 embed = (
282284 Embed (
283285 title = "Bot Status" ,
@@ -300,12 +302,10 @@ async def status(
300302 inline = False ,
301303 )
302304 .add_field (
303- name = "Servers" ,
304- value = f"{ len (self .bot .guilds )} " ,
305- )
306- .add_field (
307- name = "Cogs" ,
308- value = f"{ len (self .bot .cogs )} " ,
305+ name = "Install count" ,
306+ value = textwrap .dedent (f"""\
307+ { app_info .approximate_guild_count } server{ "s" if app_info .approximate_guild_count != 1 else "" }
308+ { app_info .approximate_user_install_count } individual user{ "s" if app_info .approximate_user_install_count != 1 else "" } """ ),
309309 )
310310 .add_field (
311311 name = "Commands" ,
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ attrs==23.2.0
2929 # via cattrs
3030 # via fluent-runtime
3131 # via jsii
32+ audioop-lts==0.2.1 ; python_full_version >= '3.13'
33+ # via discord-py
3234aws-cdk-asset-awscli-v1==2.2.202
3335 # via aws-cdk-lib
3436aws-cdk-asset-kubectl-v20==2.1.2
@@ -69,7 +71,7 @@ constructs==10.3.0
6971 # via aws-cdk-lib
7072cryptography==43.0.0
7173 # via pyjwt
72- discord-py==2.4.0
74+ discord-py @ git+https://github.com/Rapptz/discord.py@db7b2d9058e4e7f357a6a9f02aad41e8b053a1bd
7375 # via ghutils-bot
7476distlib==0.3.8
7577 # via virtualenv
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ attrs==23.2.0
2929 # via cattrs
3030 # via fluent-runtime
3131 # via jsii
32+ audioop-lts==0.2.1 ; python_full_version >= '3.13'
33+ # via discord-py
3234aws-cdk-asset-awscli-v1==2.2.202
3335 # via aws-cdk-lib
3436aws-cdk-asset-kubectl-v20==2.1.2
@@ -67,7 +69,7 @@ constructs==10.3.0
6769 # via aws-cdk-lib
6870cryptography==43.0.0
6971 # via pyjwt
70- discord-py==2.4.0
72+ discord-py @ git+https://github.com/Rapptz/discord.py@db7b2d9058e4e7f357a6a9f02aad41e8b053a1bd
7173 # via ghutils-bot
7274dnspython==2.6.1
7375 # via email-validator
You can’t perform that action at this time.
0 commit comments