We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2404004 commit d89b6e6Copy full SHA for d89b6e6
rtmbot.py
@@ -40,6 +40,7 @@ def input(self, data):
40
function_name = "process_" + data["type"]
41
dbg("got {}".format(function_name))
42
for plugin in self.bot_plugins:
43
+ plugin.register_jobs()
44
plugin.do(function_name, data)
45
def output(self):
46
@@ -84,6 +85,7 @@ def register_jobs(self):
84
85
for interval, function in self.module.crontable:
86
self.jobs.append(Job(interval, eval("self.module."+function)))
87
logging.info(self.module.crontable)
88
+ self.module.crontable = []
89
else:
90
self.module.crontable = []
91
def do(self, function_name, data):
0 commit comments