Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fng command fix 2 #60

Merged
merged 10 commits into from
Sep 25, 2024
5 changes: 5 additions & 0 deletions src/commands/faq.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down