Skip to content

Commit

Permalink
enhance fix/error-handling-monthly-booster
Browse files Browse the repository at this point in the history
  • Loading branch information
hilmoo committed Mar 1, 2024
1 parent a48d0c2 commit c88caf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot/cogs/booster.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ def __init__(self, bot: WarnetBot) -> None:
async def on_connect(self) -> None:
self._monthly_booster.start()

@tasks.loop(time=time(hour=4, minute=54, tzinfo=timezone(timedelta(hours=7))))
@tasks.loop(time=time(hour=0, minute=0, tzinfo=timezone(timedelta(hours=7))))
async def _monthly_booster(self) -> None:
date = datetime.now(pytz.timezone('Asia/Jakarta'))
if date.day == 2:
if date.day == 1:
logger.info(f'MONTHLY EXP BOOSTER IS TRIGGERED: {date.strftime("%B %Y")}')

admin_channel = self.bot.get_channel(ADMIN_CHANNEL_ID)
Expand Down

0 comments on commit c88caf2

Please sign in to comment.