added requirements.txt

This commit is contained in:
2022-08-28 19:25:39 +03:00
parent a603898f2d
commit 78a477f21a
8 changed files with 175 additions and 125 deletions

View File

@@ -5,7 +5,7 @@ import disnake
import psutil
from disnake.ext import commands
from lib.Comands import determine_prefix
from lib.Comands import determine_prefix, determine_time
class Bot_info(commands.Cog, name='Bot Info'):
@@ -24,11 +24,13 @@ class Bot_info(commands.Cog, name='Bot Info'):
title=f"General information",
description=f"General information on about bot",
)
# emb.set_thumbnail(self.bot.display_avatar)
# emb.set_thumbnail(self.bot.user.avarat_url)
emb.add_field(name="System info:", value=f"Memory Usage: {round(_process.memory_info().rss / 2 ** 20, 2)} Mb\n"
f"CPU Usage: {_process.cpu_percent()}%\n"
f'Bot ping: {round(self.bot.latency * 1000)}\n'
f'Prefix: `{determine_prefix(self.bot, inter)}`')
f'Prefix: `{determine_prefix(self.bot, inter)}\n`'
f"Max audio duration: {determine_time(inter)} sec\n"
)
emb.add_field(name="Bot owner", value=f"<@{self.bot.owner_id}>")
emb.set_footer(text="Information requested by: {}".format(inter.author.display_name))