-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from webscopeio/feature/events-api-and-home
Events API support fixes #2
- Loading branch information
Showing
5 changed files
with
94 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from setuptools import setup | ||
|
||
setup( | ||
version="1.0.34", | ||
version="1.0.35", | ||
install_requires=["slackclient"] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import django.dispatch | ||
|
||
""" | ||
Slack want us to implement a queue to react to events. | ||
https://api.slack.com/events-api#responding_to_events | ||
That's why, we've chosen to implement this using Django's signals. | ||
""" | ||
slack_event_received = django.dispatch.Signal(providing_args=["event_type", "event_data"]) | ||
refresh_home = django.dispatch.Signal(providing_args=["slack_user_mapping", "slack_workspace"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
from django.urls import path | ||
|
||
from .views import slack_oauthcallback, slack_login_callback, slack_interactivity, slack_command, connect_account | ||
from .views import slack_oauthcallback, slack_login_callback, slack_interactivity, slack_command, connect_account, \ | ||
slack_events | ||
|
||
app_name = "slack_app" | ||
|
||
urlpatterns = [ | ||
path('install/', slack_oauthcallback, name='install'), | ||
path('login/', slack_login_callback, name='login'), | ||
path('interactivity/', slack_interactivity, name='interactivity'), | ||
path('events/', slack_events, name='events'), | ||
path('commands/<str:name>/', slack_command, name='command'), | ||
path('connect/<str:nonce>/', connect_account, name='connect_account'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters