some minor changes

This commit is contained in:
bacon
2024-03-07 21:37:50 +03:00
parent 9934c5272c
commit 73cf9f3c6e
6 changed files with 10 additions and 90 deletions

View File

@@ -23,8 +23,8 @@ class BotInfo(commands.Cog, name='Bot Info'):
_pid = os.getpid()
_process = psutil.Process(_pid)
emb = disnake.Embed(
title=f"General information",
description=f"General information on about bot",
title="General information",
description="General information on about bot",
)
emb.set_thumbnail(self.bot.user.avatar.url)
emb.add_field(name="System info:", value=f"Memory Usage: {round(_process.memory_info().rss / 2 ** 20, 2)} Mb\n"
@@ -33,7 +33,7 @@ class BotInfo(commands.Cog, name='Bot Info'):
f'Prefix: `{determine_prefix(self.bot, inter)}\n`'
f"Max audio duration: {determine_time(inter)} sec\n"
)
emb.add_field(name="Bot info:", value=f"Bot owner: <@386629192743256065>\n"
emb.add_field(name="Bot info:", value="Bot owner: <@386629192743256065>\n"
f"Bot version: {ver.major}.{ver.minor}.{ver.micro}-{ver.releaselevel}")
emb.set_footer(text="Information requested by: {}".format(inter.author.display_name))