added sysinfo.py

This commit is contained in:
esef committed 2026-06-06 11:41:28 +03:00
1 parent d1327c95b0
commit e02020cd25
2 files changed
+38

No files matched your search

+26
View File
@@ -39,6 +39,14 @@
"detail": "discord.ext",
"documentation": {}
},
{
"label": "commands",
"importPath": "discord.ext",
"description": "discord.ext",
"isExtraImport": true,
"detail": "discord.ext",
"documentation": {}
},
{
"label": "random",
"kind": 6,
@@ -66,6 +74,15 @@
"detail": "io",
"documentation": {}
},
{
"label": "subprocess",
"kind": 6,
"isExtraImport": true,
"importPath": "subprocess",
"description": "subprocess",
"detail": "subprocess",
"documentation": {}
},
{
"label": "load_dotenv",
"importPath": "dotenv",
@@ -137,6 +154,15 @@
"detail": "cogs.gifs",
"documentation": {}
},
{
"label": "SysInfo",
"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```')",
"detail": "cogs.sysinfo",
"documentation": {}
},
{
"label": "intents",
"kind": 5,