From 8ce8da04e006a3b54e09c18e30952ee31cfd1a2e Mon Sep 17 00:00:00 2001 From: Farzin Kazemzadeh Date: Wed, 8 Jul 2026 17:19:24 +0330 Subject: [PATCH] refactor(status): add plugin count Signed-off-by: Farzin Kazemzadeh --- bot/plugins/status.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bot/plugins/status.py b/bot/plugins/status.py index 0bf57df..f21038a 100644 --- a/bot/plugins/status.py +++ b/bot/plugins/status.py @@ -49,6 +49,7 @@ async def status(app: Bot, message: Message) -> None: disk = shutil.disk_usage("/") uname = platform.uname() battery = psutil.sensors_battery() + plugins = app.get_plugins() data = { "Bot Uptime": bot_uptime, @@ -61,9 +62,10 @@ async def status(app: Bot, message: Message) -> None: ), "Python": platform.python_version(), "OS": f"{uname.system} {uname.release}", + "Plugin Count": len(list(plugins)), } - filtered_data = {k: v for k, v in data.items() if v is not None} + filtered_data = {k: str(v) for k, v in data.items() if v is not None} if app.is_bot: keyboard = InlineKeyboardMarkup(