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 47a8d0e54879f84f6050477030e6e30a2abb6b4e
parent c357a21624c3a8399dde5df0aa91a885c095e9e1
Author: AsherMorgan <59518073+AsherMorgan@users.noreply.github.com>
Date:   Wed, 24 Feb 2021 14:46:47 -0800

Remove :partying_face: default reaction

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

diff --git a/bot.py b/bot.py @@ -264,16 +264,14 @@ class Countdown: self.addMessage(message) # Mark important messages - if (message.number == 0): - await rawMessage.add_reaction("🥳") - if (self.messages[0].number >= 500 and message.number % (self.messages[0].number // 50) == 0): - await rawMessage.pin() if (str(message.number) in self.reactions): for reaction in self.reactions[str(message.number)]: try: await rawMessage.add_reaction(reaction) except: pass + if (self.messages[0].number >= 500 and message.number % (self.messages[0].number // 50) == 0): + await rawMessage.pin() except MessageNotAllowedError: await rawMessage.add_reaction("⛔") except MessageIncorrectError: @@ -817,8 +815,7 @@ async def help(ctx, command=None): "behavior": "**-** Reacts with :no_entry: when a user counts out of turn\n" \ "**-** Reacts with :x: when a user counts incorrectly\n" \ - "**-** Pins numbers every 2% if the countdown started at 500 or higher\n" \ - "**-** Reacts with :partying_face: to the number 0\n", + "**-** Pins numbers every 2% if the countdown started at 500 or higher\n", "activate": "**Name:** activate\n" \ "**Description:** Turns a channel into a countdown\n" \