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

+12
View File
@@ -0,0 +1,12 @@
import subprocess
import discord
from discord.ext import commands
class SysInfo(commands.Cog):
def __init__(self,bot):
self.bot = bot
@commands.command()
async def fetch(self, ctx):
result = subprocess.run(['fastfetch'], capture_output=True, text=True)
await ctx.reply(f'```\n{result.stdout}\n```')