added sysinfo.py
This commit is contained in:
1 parent
d1327c95b0
commit
e02020cd25
2 files changed
+38
No files matched your search
@@ -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```')
|
||||
Reference in new issue
Block a user