From ac4601a2424c18153df1d8279db00f5714ab3266 Mon Sep 17 00:00:00 2001 From: Christian Dianos <113406147+ChristianDianos@users.noreply.github.com> Date: Wed, 25 Sep 2024 10:41:36 +0930 Subject: [PATCH] Fng command fix 2 (#60) --- src/commands/faq.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/commands/faq.py b/src/commands/faq.py index 4bfaa34..7164e8c 100644 --- a/src/commands/faq.py +++ b/src/commands/faq.py @@ -105,6 +105,11 @@ async def food(self, interaction: Interaction): # Determining whether date needs a st, nd, rd or rth date_num = date_stack[-1].strftime("%d") date_day = date_stack[-1].strftime("%B") + time_difference_days = time_difference.days + if curr_date.time().hour >= 17: + time_difference_days += ( + 1 # This allows for a more intuitive display of the difference in days + ) message = f"The next Friday Night Games with food will be held in {time_difference.days} days on the {date_num}" if date_num in {1, 21, 31}: message += "st "