-
Notifications
You must be signed in to change notification settings - Fork 509
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(slack): dedicated signal folder, break down commands by feat…
…ure, build reusable components
- Loading branch information
Showing
8 changed files
with
658 additions
and
265 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
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
Empty file.
Empty file.
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,13 @@ | ||
from dispatch.plugins.dispatch_slack.bolt import app | ||
from dispatch.plugins.dispatch_slack.config import SlackConversationConfiguration | ||
from dispatch.plugins.dispatch_slack.middleware import db_middleware | ||
|
||
from .list import handle_list_signals_command | ||
|
||
|
||
def configure(config: SlackConversationConfiguration): | ||
"""Maps commands/events to their functions.""" | ||
|
||
app.command(config.slack_command_list_signals, middleware=[db_middleware])( | ||
handle_list_signals_command | ||
) |
Oops, something went wrong.