From aa7a2eb8550a0afecd4c1143e8a7f1c06b3c69ff Mon Sep 17 00:00:00 2001 From: esefxdz Date: Sat, 6 Jun 2026 12:01:53 +0300 Subject: [PATCH] fix #4 --- .vscode/PythonImportHelper-v2-Completion.json | 2 +- cogs/sysinfo.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.vscode/PythonImportHelper-v2-Completion.json b/.vscode/PythonImportHelper-v2-Completion.json index c0773f1..272691e 100644 --- a/.vscode/PythonImportHelper-v2-Completion.json +++ b/.vscode/PythonImportHelper-v2-Completion.json @@ -168,7 +168,7 @@ "kind": 6, "importPath": "cogs.sysinfo", "description": "cogs.sysinfo", - "peekOfCode": "class SysInfo(commands.Cog):\n def __init__(self, bot):\n self.bot = bot\n def strip_ansi(self, text):\n return re.sub(r'\\x1b\\[[0-9;]*[a-zA-Z]|\\[[0-9]+[A-Z]', '', text)\n @commands.command()\n async def fetch(self, ctx):\n result = subprocess.run(['fastfetch', '--pipe'], capture_output=True, text=True)\n clean = self.strip_ansi(result.stdout)\n await ctx.reply(f'```\\n{clean}\\n```')", + "peekOfCode": "class SysInfo(commands.Cog):\n def __init__(self, bot):\n self.bot = bot\n def strip_ansi(self, text):\n return re.sub(r'\\x1b\\[[0-9;]*[a-zA-Z]|\\[[0-9]+[A-Z]', '', text)\n @commands.command()\n async def fetch(self, ctx):\n result = subprocess.run(['fastfetch', '--pipe', '--logo', 'none'], capture_output=True, text=True)\n clean = self.strip_ansi(result.stdout)\n await ctx.reply(f'```\\n{clean}\\n```')", "detail": "cogs.sysinfo", "documentation": {} }, diff --git a/cogs/sysinfo.py b/cogs/sysinfo.py index b237f7b..78e103d 100644 --- a/cogs/sysinfo.py +++ b/cogs/sysinfo.py @@ -12,7 +12,7 @@ class SysInfo(commands.Cog): @commands.command() async def fetch(self, ctx): - result = subprocess.run(['fastfetch', '--pipe'], capture_output=True, text=True) + result = subprocess.run(['fastfetch', '--pipe', '--logo', 'none'], capture_output=True, text=True) clean = self.strip_ansi(result.stdout) await ctx.reply(f'```\n{clean}\n```')