Lynxie/lynxie/commands/ping.py
2023-09-07 18:20:00 +01:00

10 lines
237 B
Python

from discord.ext import commands
class Ping(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command()
async def ping(self, ctx):
await ctx.send(f"Pong! {round(self.bot.latency * 1000)}ms")