Upgrading stats command

pull/8/head
sgoudham 4 years ago
parent a942363295
commit 66f0c08494

@ -54,7 +54,6 @@ def DetectPermissions(message, fset):
class info(commands.Cog): class info(commands.Cog):
def __init__(self, bot): def __init__(self, bot):
self.bot = bot self.bot = bot
self.bot.VERSION = "1.4.1"
@command(name="userinfo", aliases=["ui"]) @command(name="userinfo", aliases=["ui"])
@cooldown(1, 5, BucketType.user) @cooldown(1, 5, BucketType.user)
@ -203,7 +202,7 @@ class info(commands.Cog):
await ctx.send(embed=embed) await ctx.send(embed=embed)
@command(name="stats") @command(name="stats")
async def checking_bot_status(self, ctx): async def checking_bot_stats(self, ctx):
"""Bot Statistics (CPU/Mem Usage etc)""" """Bot Statistics (CPU/Mem Usage etc)"""
stats = Embed(title="Bot Stats", stats = Embed(title="Bot Stats",
@ -221,7 +220,7 @@ class info(commands.Cog):
mem_usage = mem_total * (mem_of_total / 100) mem_usage = mem_total * (mem_of_total / 100)
fields = [ fields = [
("Bot Version", self.bot.VERSION, True), ("Bot Version", "1.7.2", True),
("Python Version", python_version(), True), ("Python Version", python_version(), True),
("Discord.py Version", discord_version, True), ("Discord.py Version", discord_version, True),
("Uptime", uptime, True), ("Uptime", uptime, True),

Loading…
Cancel
Save