We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56015c4 commit f40ae59Copy full SHA for f40ae59
bot/exts/summer_aoc.py
@@ -257,7 +257,7 @@ async def stop_event(self) -> bool:
257
async def post_puzzle(self) -> None:
258
"""Create a thread for the current day's puzzle."""
259
if self.current_day > LAST_DAY:
260
- log.info(f"Attempted to post puzzle after last day, stopping event")
+ log.error(f"Attempted to post puzzle after last day, stopping event")
261
await self.stop_event()
262
return
263
@@ -271,6 +271,8 @@ async def post_puzzle(self) -> None:
271
272
self.current_day += 1
273
await self.save_event_state()
274
+ if self.current_day > LAST_DAY:
275
+ await self.stop_event()
276
277
def get_info_embed(self) -> discord.Embed:
278
"""Generate an embed with info about the event state."""
0 commit comments