Skip to content

Commit

Permalink
change ping to use bot and not bot_ref
Browse files Browse the repository at this point in the history
  • Loading branch information
Starlii10 committed Nov 3, 2024
1 parent 9486b83 commit 8401ab5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/viviabase/ping.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"""

from discord.ext import commands
from extras.viviatools import personalityMessage, bot_ref
from extras.viviatools import personalityMessage, bot

async def setup(bot: commands.Bot):
bot.add_command(ping)
Expand All @@ -21,4 +21,4 @@ async def setup(bot: commands.Bot):
description="Shows the bot's latency.",
)
async def ping(ctx: commands.Context):
await ctx.send(personalityMessage("ping").replace("{ping}", str(bot_ref.latency * 1000) + "ms"))
await ctx.send(personalityMessage("ping").replace("{ping}", str(bot.latency * 1000) + "ms"))

0 comments on commit 8401ab5

Please sign in to comment.