Skip to content

Commit

Permalink
Added random whatweekisit flavour text
Browse files Browse the repository at this point in the history
  • Loading branch information
49Indium committed Sep 21, 2023
1 parent 8de4344 commit 2edc922
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions uqcsbot/whatweekisit.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from zoneinfo import ZoneInfo
from datetime import datetime, timedelta
from math import ceil
from random import choice

from bs4 import BeautifulSoup
from discord.ext import commands
Expand Down Expand Up @@ -158,11 +159,27 @@ async def whatweekisit(self, interaction: discord.Interaction, date: Optional[st
else:
semester_name, week_name, weekday = semester_tuple

message = (
"The week we're in is:"
if date == None
else f"The week of {date} is in:"
)
if date != None:
message = f"The week of {date} is in:"
else:
message = choice([
"The week we're in is:",
"The current week is:",
f"It's currently {week_name}:",
f"We're currently in {week_name}:",
"Currently, the week is:",
"Hey, look at the time:",
f"Can you believe that it's already {week_name}:",
"Time flies when you're having fun:",
"Maybe time's just a construct of human perception:",
"Time waits for noone:",
"This week is:",
"It is currently:",
"The week is",
"The week we're currently in is:",
f"Right now we are in {week_name}:",
])

message += f"\n> {weekday}, {week_name} of {semester_name}"

await interaction.edit_original_response(content=message)
Expand Down

0 comments on commit 2edc922

Please sign in to comment.