fix(commands:info|Utils): undo testings changes
This commit is contained in:
parent
561f56ca27
commit
9172331927
2 changed files with 96 additions and 94 deletions
|
@ -134,7 +134,7 @@ To update the whole bot after a :bash:`git pull`, just execute
|
||||||
|
|
||||||
$ make update
|
$ make update
|
||||||
|
|
||||||
.. |image0| image:: https://img.shields.io/badge/python-3.9%20%7C%203.10-%23007ec6
|
.. |image0| image:: https://img.shields.io/badge/python-3.10-%23007ec6
|
||||||
.. |image1| image:: https://img.shields.io/github/issues/Rom1-J/tuxbot-bot
|
.. |image1| image:: https://img.shields.io/github/issues/Rom1-J/tuxbot-bot
|
||||||
.. |image2| image:: https://img.shields.io/badge/code%20style-black-000000.svg
|
.. |image2| image:: https://img.shields.io/badge/code%20style-black-000000.svg
|
||||||
.. |image3| image:: https://wakatime.com/badge/github/Rom1-J/tuxbot-bot.svg
|
.. |image3| image:: https://wakatime.com/badge/github/Rom1-J/tuxbot-bot.svg
|
||||||
|
|
|
@ -29,10 +29,12 @@ class Utils(commands.Cog):
|
||||||
|
|
||||||
@command_extra(name="info", aliases=["about"])
|
@command_extra(name="info", aliases=["about"])
|
||||||
async def _info(self, ctx: ContextPlus):
|
async def _info(self, ctx: ContextPlus):
|
||||||
|
proc = psutil.Process()
|
||||||
infos = fetch_info()
|
infos = fetch_info()
|
||||||
|
|
||||||
mem = psutil.Process().memory_full_info()
|
with proc.oneshot():
|
||||||
cpu = psutil.cpu_percent()
|
mem = proc.memory_full_info()
|
||||||
|
cpu = proc.cpu_percent() / psutil.cpu_count()
|
||||||
|
|
||||||
e = discord.Embed(
|
e = discord.Embed(
|
||||||
title=_("Information about TuxBot", ctx, self.bot.config),
|
title=_("Information about TuxBot", ctx, self.bot.config),
|
||||||
|
|
Loading…
Reference in a new issue