From 26450de49a70841e1efbc111ffab4e7dbafd7eb8 Mon Sep 17 00:00:00 2001 From: esefxdz Date: Sat, 6 Jun 2026 11:51:31 +0300 Subject: [PATCH] forgor. --- .vscode/PythonImportHelper-v2-Completion.json | 2 +- cogs/sysinfo.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.vscode/PythonImportHelper-v2-Completion.json b/.vscode/PythonImportHelper-v2-Completion.json index 82a8d03..5bcdca0 100644 --- a/.vscode/PythonImportHelper-v2-Completion.json +++ b/.vscode/PythonImportHelper-v2-Completion.json @@ -159,7 +159,7 @@ "kind": 6, "importPath": "cogs.sysinfo", "description": "cogs.sysinfo", - "peekOfCode": "class SysInfo(commands.Cog):\n def __init__(self,bot):\n self.bot = bot\n @commands.command()\n async def fetch(self, ctx):\n result = subprocess.run(['fastfetch'], capture_output=True, text=True)\n await ctx.reply(f'```\\n{result.stdout}\\n```')", + "peekOfCode": "class SysInfo(commands.Cog):\n def __init__(self,bot):\n self.bot = bot\n @commands.command()\n async def fetch(self, ctx):\n result = subprocess.run(['fastfetch'], capture_output=True, text=True)\n await ctx.reply(f'```\\n{result.stdout}\\n```')\n async def setup(bot):\n await bot.add_cog(SysInfo(bot))", "detail": "cogs.sysinfo", "documentation": {} }, diff --git a/cogs/sysinfo.py b/cogs/sysinfo.py index a5e5364..1f501fe 100644 --- a/cogs/sysinfo.py +++ b/cogs/sysinfo.py @@ -9,4 +9,7 @@ class SysInfo(commands.Cog): @commands.command() async def fetch(self, ctx): result = subprocess.run(['fastfetch'], capture_output=True, text=True) - await ctx.reply(f'```\n{result.stdout}\n```') \ No newline at end of file + await ctx.reply(f'```\n{result.stdout}\n```') + + async def setup(bot): + await bot.add_cog(SysInfo(bot)) \ No newline at end of file