forgor.
This commit is contained in:
1 parent
2ecd6bc4cb
commit
26450de49a
2 files changed
+4
-1
No files matched your search
+1
-1
@@ -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```')",
|
"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",
|
"detail": "cogs.sysinfo",
|
||||||
"documentation": {}
|
"documentation": {}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -10,3 +10,6 @@ class SysInfo(commands.Cog):
|
|||||||
async def fetch(self, ctx):
|
async def fetch(self, ctx):
|
||||||
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):
|
||||||
|
await bot.add_cog(SysInfo(bot))
|
||||||
Reference in new issue
Block a user