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 fa5454fc93a9c7ad5410c0da8a25964edbe09fae
parent f3c09b9899babfd7ea7d91462bbfc9b16918aabd
Author: AsherMorgan <59518073+AsherMorgan@users.noreply.github.com>
Date:   Sat, 13 Feb 2021 11:37:57 -0800

Pin messages every 2% instead of every 200

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

diff --git a/bot.py b/bot.py @@ -220,7 +220,7 @@ class Countdown: # Mark important messages if (message.number == 0): await rawMessage.add_reaction("🥳") - if (message.number % 200 == 0): + if (self.messages[0].number >= 500 and message.number % (self.messages[0].number // 50) == 0): await rawMessage.pin() except MessageNotAllowedError: await rawMessage.add_reaction("⛔") @@ -615,7 +615,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 divisible by 200\n" \ + "**-** Pins numbers every 2% if the countdown started at 500 or higher\n" \ "**-** Reacts with :partying_face: to the number 0\n", "activate": "**Name:** activate\n" \