How to use the tempora.schedule.PeriodicCommand function in tempora

To help you get started, we’ve selected a few tempora examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pajbot / pajbot / pajbot / eventloop.py View on Github external
def execute_every(self, period, func):
        self.add(schedule.PeriodicCommand.after(period, func))
github yougov / pmxbot / pmxbot / core.py View on Github external
def as_cmd(self):
        cls = schedule.PeriodicCommand if self.repeat else schedule.DelayedCommand
        return cls.after(self.duration, self)
github jaraco / irc / irc / schedule.py View on Github external
def execute_every(self, period, func):
        self.add(schedule.PeriodicCommand.after(period, func))