This commit is contained in:
deathbybandaid 2022-02-10 11:07:46 -05:00
parent 70de6f2d8b
commit 51b2b11d62

View File

@ -8,6 +8,18 @@ class Scheduler():
self.scheduler = jobs.Scheduler(self) self.scheduler = jobs.Scheduler(self)
self.scheduler.start() self.scheduler.start()
job = jobs.Job(
intervals=[5],
handler=self.fart,
threaded=False,
doc=None,
)
self.scheduler.register(job)
def fart(self):
print("toots mcgoots")
def __getattr__(self, name): def __getattr__(self, name):
""" """
Quick and dirty shortcuts. Will only get called for undefined attributes. Quick and dirty shortcuts. Will only get called for undefined attributes.