]> git.cworth.org Git - turbot/blob - turbot/events.py
Add list of active hunts to the turbot Home tab
[turbot] / turbot / events.py
1 import turbot.views
2
3 def app_home_opened(turb, body):
4     user_id = body['event']['user']
5     print("In app_home_opened function")
6     view = turbot.views.home(turb, user_id, body)
7     turb.slack_client.views_publish(user_id=user_id, view=view)
8     return "OK"
9
10 events = {
11     "app_home_opened": app_home_opened
12 }