modules/informational.py
async def stats(self, ctx):
        """Gives you stats on the bot."""
        memory = psutil.virtual_memory().total >> 20
        mem_usage = psutil.virtual_memory().used >> 20

        embed = discord.Embed(colour=3553599)
        embed.set_author(name=f"{self.bot.user.name}'s Statistics", icon_url=self.bot.user.avatar_url)
        embed.add_field(
            name="Server Count",
            value=f"{self.millify(len(self.bot.guilds))} ({str(len(self.bot.guilds))})"
        )
        embed.add_field(
            name="User Count",
            value=f"{self.millify(len(self.bot.users))} ({str(len(self.bot.users))})"
        )
        embed.add_field(
            name="Shard Count",
            value=self.bot.shard_count
        )
        try:
            embed.add_field(
                name="Most Used Command",
                value=self.bot.command_usage.most_common(1)[0][0],
                inline=False
            )
        except:
            embed.add_field(
                name="Most Used Command",
                value="stats",
                inline=False
            )
        embed.add_field(
            name="RAM Usage",
            value=f"{mem_usage}/{memory} MB ({int(memory - mem_usage)} MB free)",
            inline=False
        )
        embed.add_field(
            name="Uptime",
            value=self.bot.bot_uptime(),
            inline=False
        )

        await ctx.send(embed=embed)
Gives you stats on the bot.
Gives you stats on the bot.
Gives you stats on the bot .
async def stats(self, ctx):
        memory = psutil.virtual_memory().total >> 20
        mem_usage = psutil.virtual_memory().used >> 20
        embed = discord.Embed(colour=3553599)
        embed.set_author(name=f"{self.bot.user.name}'s Statistics", icon_url=self.bot.user.avatar_url)
        embed.add_field(
            name="Server Count",
            value=f"{self.millify(len(self.bot.guilds))} ({str(len(self.bot.guilds))})"
        )
        embed.add_field(
            name="User Count",
            value=f"{self.millify(len(self.bot.users))} ({str(len(self.bot.users))})"
        )
        embed.add_field(
            name="Shard Count",
            value=self.bot.shard_count
        )
        try:
            embed.add_field(
                name="Most Used Command",
                value=self.bot.command_usage.most_common(1)[0][0],
                inline=False
            )
        except:
            embed.add_field(
                name="Most Used Command",
                value="stats",
                inline=False
            )
        embed.add_field(
            name="RAM Usage",
            value=f"{mem_usage}/{memory} MB ({int(memory - mem_usage)} MB free)",
            inline=False
        )
        embed.add_field(
            name="Uptime",
            value=self.bot.bot_uptime(),
            inline=False
        )
        await ctx.send(embed=embed)
async def stats ( self , ctx ) : memory = psutil . virtual_memory ( ) . total >> 20 mem_usage = psutil . virtual_memory ( ) . used >> 20 embed = discord . Embed ( colour = 3553599 ) embed . set_author ( name = f"{self.bot.user.name}'s Statistics" , icon_url = self . bot . user . avatar_url ) embed . add_field ( name = "Server Count" , value = f"{self.millify(len(self.bot.guilds))} ({str(len(self.bot.guilds))})" ) embed . add_field ( name = "User Count" , value = f"{self.millify(len(self.bot.users))} ({str(len(self.bot.users))})" ) embed . add_field ( name = "Shard Count" , value = self . bot . shard_count ) try : embed . add_field ( name = "Most Used Command" , value = self . bot . command_usage . most_common ( 1 ) [ 0 ] [ 0 ] , inline = False ) except : embed . add_field ( name = "Most Used Command" , value = "stats" , inline = False ) embed . add_field ( name = "RAM Usage" , value = f"{mem_usage}/{memory} MB ({int(memory - mem_usage)} MB free)" , inline = False ) embed . add_field ( name = "Uptime" , value = self . bot . bot_uptime ( ) , inline = False ) await ctx . send ( embed = embed )
Gives you stats on the bot.
Gives you stats on the bot .
"""Gives you stats on the bot."""
self
ctx