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 a9a27d212bb1fb0e3e09664f9b6bd01420d3db76
parent a2661c25df0afb87e0017f313495d3d115bdde62
Author: AsherMorgan <59518073+AsherMorgan@users.noreply.github.com>
Date:   Wed,  3 Mar 2021 18:04:37 -0800

Stop bot from responding to @everyone

Diffstat:
Mbot.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bot.py b/bot.py @@ -515,7 +515,7 @@ async def on_ready(): @bot.event async def on_message(obj): - if bot.user.mentioned_in(obj): + if bot.user in obj.mentions: 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"):