Dough Git

commit

this was probs easier

commit
9585fa02faeb0404b27d1890f2ac1b705ebbd8ca
author
Clove Twilight <[email protected]>
date
2026-09-17 08:16

diff --git a/commands/debug.py b/commands/debug.py
index 395b3e0..fdedf6e 100644
--- a/commands/debug.py
+++ b/commands/debug.py
@@ -8,6 +8,7 @@ import os
 import platform
 from sandrone import checks, config
 from utils import components, errors, jp_storage
+import psutil as psu
 
 # What the bot wants everywhere, on top of whatever individual commands
 # ask for.
@@ -118,6 +119,10 @@ class Debug(commands.Cog):
             ),
         ]
 
+        server = [
+            f"Memory `{psu.virtual_memory().percent}%`"
+        ]
+
         connection = [
             f"Latency `{round(bot.latency * 1000)}ms`",
             f"Up `{since(started)}`"
@@ -154,6 +159,7 @@ class Debug(commands.Cog):
                 title="Debug · info",
                 fields=[
                     ("Runtime", "\n".join(runtime)),
+                    ("Server", "\n".join(server))
                     ("Connection", "\n".join(connection)),
                     ("Loaded", "\n".join(cogs)),
                     (
diff --git a/commands/server.py b/commands/server.py
deleted file mode 100644
index d853e51..0000000
--- a/commands/server.py
+++ /dev/null
@@ -1,34 +0,0 @@
-import discord
-from discord import app_commands
-from discord.ext import commands
-import psutil
-from utils import components
-
-class System(commands.Cog):
-    def __init__(self, bot: commands.Bot) -> None:
-        self.bot = bot
-
-    @app_commands.command(
-        name="server", description="(owner-only) Get server status"
-    )
-    async def serverCommand(
-        self, interaction: discord.Interaction
-    ) -> None:
-        await interaction.response.defer()
-        panel = await self.getInfo()
-        await interaction.followup.send(view=panel)
-
-    async def getInfo(self) -> components.Panel:
-        memory = psutil.virtual_memory()
-        # CPU HERE
-        psutil.disk_usage("/")
-
-        info = components.panel(
-            fields=[
-                (
-                    "Memory",
-                    f"{memory.used}/{memory.available} ({memory.percent}%)"
-                )
-            ]
-        )
-        return info