Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions cogs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,18 @@ async def echo(self, ctx: ApplicationContext, text: str):
await ctx.respond("Echoed!", ephemeral=True)
await ctx.channel.send(text)

@commands.slash_command(
name="ping",
description="Get the server latency."
)
async def ping(self, ctx: ApplicationContext):
localembed = discord.Embed(
title=":ping_pong: Pong!",
description=f"Current server latency is **{round(self.bot.latency * 1000, 2)} ms**.",
color=discord.Color.random()
)
await ctx.respond(embed=localembed)

@commands.slash_command(
name="repo",
description="Shows the open-source code links for isobot."
Expand Down