from discord.ext import commands import discord import asyncio class Util(commands.Cog): def __init__(self, bot): self.bot = bot @commands.command(aliases=['ping']) async def _ping(self, ctx): await ctx.send(f'Pong! {round(self.bot.latency*1000)}ms') def setup(bot): bot.add_cog(Util(bot))