from discord.ext import commands


class Ping(commands.Cog):
    
    def __init__(self, bot):
        self.bot = bot

    @commands.command(
        name='ping',
        aliases=[
            'pong'
        ]
    )
    async def ping(self, ctx):
        await ctx.send(f':ping_pong: Pong! The bot\'s latency is **{round(self.bot.latency, 3) * 1000}** ms')

from discord.ext import commands


class Ping(commands.Cog):
    
    def __init__(self, bot):
        self.bot = bot

    @commands.command(
        name='ping',
        aliases=[
            'pong'
        ]
    )
    async def ping(self, ctx):
        await ctx.send(f':ping_pong: Pong! The bot\'s latency is **{round(self.bot.latency, 3) * 1000}** ms')
