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:
parent
964e546e12
commit
c102be29fb
1 changed files with 3 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue