semaphore.JobQueue
- class semaphore.JobQueue(sender: MessageSender)[source]
Bases:
object
This object represents a bot job queue.
- async run_daily(timestamp: float, callback: Callable, context: ChatContext) Job [source]
Add a job to the queue that runs daily.
- async run_monthly(timestamp: float, callback: Callable, context: ChatContext) Job [source]
Add a job to the queue that runs monthly.
- async run_once(timestamp: float, callback: Callable, context: ChatContext) Job [source]
Add a job to the queue that runs once.
- async run_repeating(timestamp: float, callback: Callable, context: ChatContext, interval: int) Job [source]
Add a job to the queue that runs repeating.