countdown-bot

A Discord bot that runs countdown games and generates analytics
git clone https://git.ashermorgan.net/countdown-bot/
Log | Files | Refs | README

commit 0859886a774fa7cb7de8868d16f5869c9cb9f675
parent b4e273863ca23b1408b72f59c4f0a199e03c7d2e
Author: AsherMorgan <59518073+AsherMorgan@users.noreply.github.com>
Date:   Fri,  5 Feb 2021 15:11:09 -0800

Implement ping command.

Diffstat:
MREADME.md | 6++++++
Mbot.py | 13+++++++++++++
2 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md @@ -58,6 +58,12 @@ If a command is not run in a countdown channel, the bot will run it for the 1st **Usage:** `!countdown leaderboard|l [user]` +### ping +**Description:** Pings the countdown bot + +**Usage:** `!c-dev ping` + + ### progress **Description:** Shows information about countdown progress diff --git a/bot.py b/bot.py @@ -567,6 +567,19 @@ async def leaderboard(ctx, user=None): +@bot.command() +async def ping(ctx): + """ + Pings the countdown bot + """ + + embed=discord.Embed(title=":ping_pong: Pong!") + embed.description = f"**Latency:** {round(bot.latency * 1000)} ms\n" + embed.description += f"**Countdowns:** {len(countdowns)}" + await ctx.send(embed=embed) + + + @bot.command(aliases=["p"]) async def progress(ctx): """