add a catch_all plugin function to see all messages from slack
This commit is contained in:
parent
3bc9e3d6f7
commit
10ba64e7cc
1 changed files with 5 additions and 0 deletions
|
@ -80,6 +80,11 @@ class Plugin(object):
|
|||
eval("self.module."+function_name)(data)
|
||||
except:
|
||||
dbg("problem in module")
|
||||
if "catch_all" in dir(self.module):
|
||||
try:
|
||||
self.module.catch_all(data)
|
||||
except:
|
||||
dbg("problem in catch all")
|
||||
def do_jobs(self):
|
||||
for job in self.jobs:
|
||||
job.check()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue