Skip to content

Commit 10ba64e

Browse files
committed
add a catch_all plugin function to see all messages from slack
1 parent 3bc9e3d commit 10ba64e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rtmbot.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ def do(self, function_name, data):
8080
eval("self.module."+function_name)(data)
8181
except:
8282
dbg("problem in module")
83+
if "catch_all" in dir(self.module):
84+
try:
85+
self.module.catch_all(data)
86+
except:
87+
dbg("problem in catch all")
8388
def do_jobs(self):
8489
for job in self.jobs:
8590
job.check()

0 commit comments

Comments
 (0)