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 17aee92b472e867e4a875505cfddca486e007fd1
parent 5b0bef472f4e469a4b7359440ad9592c1068461b
Author: AsherMorgan <59518073+AsherMorgan@users.noreply.github.com>
Date:   Sat, 27 Feb 2021 08:40:07 -0800

Send help comand instructions when mentioned

Diffstat:
Mbot.py | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/bot.py b/bot.py @@ -515,6 +515,9 @@ async def on_ready(): @bot.event async def on_message(obj): + if bot.user.mentioned_in(obj): + embed=discord.Embed(title="countdown-bot", description=f"Use `{(await bot.get_prefix(obj))[0]}help` to view help information", color=COLORS["embed"]) + await obj.channel.send(embed=embed) if (str(obj.channel.id) in data["countdowns"] and obj.author.name != "countdown-bot"): await data["countdowns"][str(obj.channel.id)]["countdown"].parseMessage(obj) try: