@commands.command(hidden=True)
async def socketstats(self, ctx):
    delta = (datetime.datetime.utcnow() - self.bot.uptime)
    minutes = (delta.total_seconds() / 60)
    total = sum(self.bot.socket_stats.values())
    cpm = (total / minutes)
    (await ctx.send(f'''{total} socket events observed ({cpm:.2f}/minute):
{self.bot.socket_stats}'''))
@commands.command(hidden=True)
async def socketstats(self, ctx):
    delta = (datetime.datetime.utcnow() - self.bot.uptime)
    minutes = (delta.total_seconds() / 60)
    total = sum(self.bot.socket_stats.values())
    cpm = (total / minutes)
    (await ctx.send(f'{total} socket events observed ({cpm:.2f}/minute):
{self.bot.socket_stats}'))