diff options
author | 2021-05-04 15:04:18 -0400 | |
---|---|---|
committer | 2021-05-04 15:04:18 -0400 | |
commit | dd20f59b9fb12288f286d479b5719697ab1a30f4 (patch) | |
tree | a7b4492cccdf9104d43fcea93a0d8fd90df71f7e | |
parent | chore: Apply suggested changes (diff) |
Apply suggested changes to hanukkah_embed.py
-rw-r--r-- | bot/exts/christmas/hanukkah_embed.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bot/exts/christmas/hanukkah_embed.py b/bot/exts/christmas/hanukkah_embed.py index 32002f76..214044b8 100644 --- a/bot/exts/christmas/hanukkah_embed.py +++ b/bot/exts/christmas/hanukkah_embed.py @@ -65,24 +65,24 @@ class HanukkahEmbed(commands.Cog): hanukkah_start_hour = 18 if hours < hanukkah_start_hour: embed.description = (f"Hanukkah hasnt started yet, " - f"it will start in about {hanukkah_start_hour-hours} hour/s.") + f"it will start in about {hanukkah_start_hour - hours} hour/s.") await ctx.send(embed=embed) return elif hours > hanukkah_start_hour: embed.description = (f"It is the starting day of Hanukkah ! " - f"Its been {hours-hanukkah_start_hour} hours hanukkah started !") + f"Its been {hours - hanukkah_start_hour} hours hanukkah started !") await ctx.send(embed=embed) return festival_day = self.hanukkah_days.index(day) number_suffixes = ["st", "nd", "rd", "th"] suffix = "" - if int(festival_day) == 1: + if festival_day == 1: suffix = number_suffixes[0] - if int(festival_day) == 2: + if festival_day == 2: suffix = number_suffixes[1] - if int(festival_day) == 3: + if festival_day == 3: suffix = number_suffixes[2] - if int(festival_day) > 3: + if festival_day > 3: suffix = number_suffixes[3] message = "" for _ in range(1, festival_day + 1): |