Skip to content

Commit

Permalink
docs: update slack routes improvement (#759)
Browse files Browse the repository at this point in the history
* example: telegram game (#751)

* example: telegram game

* chore: add newline

* refactor: use getClient
docs: fix grammar mistakes

* example: telegram inline query (#752)

* example: telegram inline query

* fix: typo

* chore: add empty line

* fix: typo

* example: telegram reply keyboard (#753)

* example: telegram reply keyboard

* fix: grammar

* example: telegram inline keyboard (#754)

* example: telegram inline keyboard

* docs: remove -w <YOUR_WEBHOOK_URL>

* chore(README): use a router example instead of hello world

* convert slack interactive message event to camelcase (#755)

* test: add test to check the original behavior

* feat: convert slack interactive message event to camelcase

* 1.4.4 changelog

* v1.4.4

* chore: update package readme

* docs: add urlencoded body parser to custom-server-express (#756)

* docs: update slack routes improvement

Co-authored-by: C. T. Lin <[email protected]>
  • Loading branch information
etrex and chentsulin authored May 7, 2020
1 parent a8705d1 commit 052defe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/channel-slack-routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ function App() {
slack.message(HandleMessage),
slack.event('pin_added', HandlePinAdded),
slack.event('star_added', HandleStarAdded),
slack.event('*', HandleAnyEvent),
slack.command('/price', HandlePriceCommand),
slack.command('*', HandleAnySlashCommand),
slack.any(HandleSlack),
]);
}
Expand All @@ -21,6 +24,9 @@ function App() {
async function HandleMessage(context) {}
async function HandlePinAdded(context) {}
async function HandleStarAdded(context) {}
async function HandleAnyEvent(context) {}
async function HandlePriceCommand(context) {}
async function HandleAnySlashCommand(context) {}
async function HandleSlack(context) {}
```

Expand All @@ -29,3 +35,4 @@ All available routes in `slack` that recognize different kind of events:
- `slack.any` - triggers the action when receiving any Slack events.
- `slack.message` - triggers the action when receiving Slack message events.
- `slack.event` - triggers the action when receiving particular Slack events. See all event types in [Slack docs](https://api.slack.com/events).
- `slack.command` - triggers the action when receiving Slack slash command events.

0 comments on commit 052defe

Please sign in to comment.