88from util .gifs import perform_gif_overlay
99from random import shuffle
1010from datetime import date , timedelta
11+ from zoneinfo import ZoneInfo
1112
1213
1314class Commands (commands .Cog ):
@@ -29,8 +30,9 @@ def get_judge(self) -> list[str, str]:
2930 "161921661346643968" ,
3031 "196069761082327041" ,
3132 ]
33+ tz = ZoneInfo ("America/New_York" )
3234 start_monday : date = date (2025 , 6 , 9 )
33- nearest_monday = date .today () + timedelta ((7 - date .today ().weekday ()) % 7 )
35+ nearest_monday = date .today (tz ) + timedelta ((7 - date .today ().weekday ()) % 7 )
3436 day_delta = nearest_monday - start_monday
3537 week_delta = day_delta .days // 7
3638 return [NAMES [week_delta % len (NAMES )], IDS [week_delta % len (IDS )]]
@@ -119,11 +121,11 @@ async def whojudge_debug(self, interaction: discord.Interaction):
119121 @app_commands .command (name = "screen" , description = "ragebait" )
120122 @app_commands .describe (gif = "GIF URL" )
121123 async def screen (self , interaction : discord .Interaction , gif : str ):
122- await interaction .response .send_message (
123- content = "Generating..."
124- )
124+ await interaction .response .send_message (content = "Generating..." )
125125 res = perform_gif_overlay (gif )
126- return await interaction .channel .send (file = discord .File (io .BytesIO (res ), filename = "output.gif" ))
126+ return await interaction .channel .send (
127+ file = discord .File (io .BytesIO (res ), filename = "output.gif" )
128+ )
127129
128130
129131async def setup (bot ):
0 commit comments