accidentally intended inside class while being function

This commit is contained in:
esef committed 2026-06-06 11:53:55 +03:00
1 parent 7a77ab882a
commit b9ac1f3210
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -159,7 +159,7 @@
"kind": 6, "kind": 6,
"importPath": "cogs.sysinfo", "importPath": "cogs.sysinfo",
"description": "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```')\n async def setup(bot):\n await bot.add_cog(SysInfo(bot))", "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```')\nasync def setup(bot):\n await bot.add_cog(SysInfo(bot))",
"detail": "cogs.sysinfo", "detail": "cogs.sysinfo",
"documentation": {} "documentation": {}
}, },
+2 -1
View File
@@ -11,5 +11,6 @@ class SysInfo(commands.Cog):
result = subprocess.run(['fastfetch'], capture_output=True, text=True) result = subprocess.run(['fastfetch'], capture_output=True, text=True)
await ctx.reply(f'```\n{result.stdout}\n```') await ctx.reply(f'```\n{result.stdout}\n```')
async def setup(bot):
async def setup(bot):
await bot.add_cog(SysInfo(bot)) await bot.add_cog(SysInfo(bot))