Skip to content

Commit

Permalink
Fng command fix 2 (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianDianos authored Sep 25, 2024
1 parent 8ad8ee9 commit ac4601a
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit ac4601a

Please sign in to comment.