Skip to content

Commit

Permalink
Merge pull request #11726 from PennyDreadfulMTG/ohno
Browse files Browse the repository at this point in the history
TimeTriggers are apparently bugged AF.  Don't use them for now.
  • Loading branch information
mergify[bot] authored Nov 7, 2023
2 parents 3071f30 + 921273d commit ee654be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions discordbot/background.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import os
import sys

from interactions import MISSING, Absent, Client, Extension, TimeTrigger, listen
from interactions import MISSING, Absent, Client, Extension, listen
from interactions.client.errors import Forbidden
from interactions.client.utils import timestamp_converter
from interactions.models.discord import Embed, GuildText, ScheduledEventType
Expand Down Expand Up @@ -256,7 +256,8 @@ async def prepare_mos(self) -> None:
self.mos_premodern_channel = channel
self.background_task_mos_premodern.start()

@Task.create(TimeTrigger(hour=12) | TimeTrigger(hour=0))
# @Task.create(TimeTrigger(hour=12) | TimeTrigger(hour=0))
@Task.create(IntervalTrigger(hours=12))
async def background_task_mos_premodern(self) -> None:
def message(begin: datetime.date, end: datetime.date, league_number: str) -> str:
msg = ('Hello CPL players!\nThe current Premodern League '
Expand Down

0 comments on commit ee654be

Please sign in to comment.