Timer#
Client
#
Client(database: DatabaseBuilder, delay: int = 60)
Timer Client
The base class, for creating everything related to database timers.
| PARAMETER | DESCRIPTION |
|---|---|
database |
The database you will use for the Timer class.
TYPE:
|
delay |
The delay of when timers have a task created for them. About delayThe
TYPE:
|
load
async
#
Load Timer
Load the timer instance, connect to the database, and check the timers.
unload
async
#
Unload Timer
Unload the timer instance, disconnect from the database, and clean up.
create
async
#
start
async
#
Start Timer
Start a timer, for your event.
| PARAMETER | DESCRIPTION |
|---|---|
timer |
The timer you wish to start
TYPE:
|
| RAISES | DESCRIPTION |
|---|---|
TimerException
|
The timer has already ended. |
cancel
async
#
cancel(timer: Timer) -> None
Cancel a timer
Cancel the requested timer.
| PARAMETER | DESCRIPTION |
|---|---|
timer |
The timer you wish to cancel.
TYPE:
|