Skip to content

Commit

Permalink
fix faulty ping command.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hadock-is-ok committed Aug 11, 2024
1 parent 806aa2e commit 8d48c62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ async def ping(self, ctx: AloneContext) -> None:
start: float = perf_counter()
message: discord.Message = await ctx.reply("Pong!")
end: float = perf_counter()
typing_ping: float = end - start
typing_ping: float = (end - start) * 1000

start = perf_counter()
await self.bot.db.execute("SELECT 1")
end = perf_counter()
database_ping: float = end - start
database_ping: float = (end - start) * 1000

embed: discord.Embed = discord.Embed(title="Ping")
embed.add_field(
Expand Down

0 comments on commit 8d48c62

Please sign in to comment.