]> git.cworth.org Git - turbot/blobdiff - turbot/events.py
Add list of active hunts to the turbot Home tab
[turbot] / turbot / events.py
index dcb2d0d1532de359affe053e385d98faf10db354..e8ea0b8a3da64e3fb422acc9c00ba9767f73714e 100644 (file)
@@ -1,9 +1,10 @@
 import turbot.views
 
-def app_home_opened(slack_client, body):
+def app_home_opened(turb, body):
     user_id = body['event']['user']
-    view = turbot.views.home(user_id, body)
-    slack_client.views_publish(user_id=user_id, view=view)
+    print("In app_home_opened function")
+    view = turbot.views.home(turb, user_id, body)
+    turb.slack_client.views_publish(user_id=user_id, view=view)
     return "OK"
 
 events = {