Skip to content

Commit

Permalink
fix(event): embed title for collect cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
ZRunner committed Dec 20, 2024
1 parent adfedd4 commit df7fd38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/bot_events/subcogs/christmas_subcog.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ 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 == 1 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)
Expand Down

0 comments on commit df7fd38

Please sign in to comment.