test fix #2
This commit is contained in:
1 parent
81adf0f659
commit
1324fec8dd
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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', '--nocolor', '--no-logo'], 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))",
|
||||
"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', '--pipe'], 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",
|
||||
"documentation": {}
|
||||
},
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ class SysInfo(commands.Cog):
|
||||
|
||||
@commands.command()
|
||||
async def fetch(self, ctx):
|
||||
result = subprocess.run(['fastfetch', '--nocolor', '--no-logo'], capture_output=True, text=True)
|
||||
result = subprocess.run(['fastfetch', '--pipe'], capture_output=True, text=True)
|
||||
await ctx.reply(f'```\n{result.stdout}\n```')
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user