diff options
| -rw-r--r-- | bot/utils/scheduling.py | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/bot/utils/scheduling.py b/bot/utils/scheduling.py index 7b4c8e2de..23acacf74 100644 --- a/bot/utils/scheduling.py +++ b/bot/utils/scheduling.py @@ -5,6 +5,8 @@ import typing as t  from datetime import datetime  from functools import partial +from arrow import Arrow +  from bot.log import get_logger @@ -58,7 +60,7 @@ class Scheduler:          self._scheduled_tasks[task_id] = task          self._log.debug(f"Scheduled task #{task_id} {id(task)}.") -    def schedule_at(self, time: datetime, task_id: t.Hashable, coroutine: t.Coroutine) -> None: +    def schedule_at(self, time: t.Union[datetime, Arrow], task_id: t.Hashable, coroutine: t.Coroutine) -> None:          """          Schedule `coroutine` to be executed at the given `time`. | 
