1
Fork 0
mirror of https://github.com/allthingslinux/tux.git synced 2024-10-03 00:53:12 +00:00

[Fix] Ping command

This commit is contained in:
kaizen 2024-01-11 13:07:19 -05:00
parent 964e546e12
commit c102be29fb

View file

@ -13,7 +13,7 @@ class Ping(commands.Cog):
def __init__(self, bot: commands.Bot):
self.bot = bot
@commands.command(name="ping")
@commands.hybrid_command(name="ping")
async def ping(self, ctx: commands.Context):
"""
Checks the bot's latency.
@ -36,6 +36,8 @@ class Ping(commands.Cog):
content=f"Pong! 🏓\nDiscord API latency: {discord_ping}ms\nMessage latency: {message_ping}ms"
)
logger.info(f"{ctx.author} used {ctx.command} in {ctx.channel}.")
async def setup(bot: commands.Bot):
await bot.add_cog(Ping(bot))