mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
Offer a reset method.
This commit is contained in:
parent
b5f48db29e
commit
d3dcc62d1b
@ -66,6 +66,11 @@ class Schedule(drivers.IrcDriver):
|
||||
self.events = {}
|
||||
self.counter = 0
|
||||
|
||||
def reset(self):
|
||||
self.events.clear()
|
||||
self.schedule[:] = []
|
||||
self.counter = 0
|
||||
|
||||
def addEvent(self, f, t, name=None):
|
||||
"""Schedules an event f to run at time t.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user