Skip to content

Commit

Permalink
fix(event): late collect title
Browse files Browse the repository at this point in the history
  • Loading branch information
ZRunner committed Dec 2, 2024
1 parent 2c24f7d commit 35d0edb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/bot_events/subcogs/christmas_subcog.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,10 @@ async def generate_collect_message(self, interaction: discord.Interaction, items
today = await self.today()
total_points = sum(item["points"] for item in items)
text = "### "
if (today - last_collect_day).days <= 1 or last_collect_day.month != 12:
if today.day == last_collect_day.day or last_collect_day.month != 12:
text += await self.bot._(interaction, "bot_events.calendar.today-gifts", points=total_points)
else:
missed_days = min(today.day - last_collect_day.day - 1, 3)
missed_days = min(today.day - last_collect_day.day, 3)
text = await self.bot._(interaction, "bot_events.calendar.today-gifts-late", days=missed_days, points=total_points)
items_group: dict[int, int] = defaultdict(int)
for item in items:
Expand Down

0 comments on commit 35d0edb

Please sign in to comment.