Checkout this repository and run
npm install
node src/index.js
Create a file core-token
containing an API token in the project directory. It will be consumed by the slack-events-catcher to be used in API calls.
Use ngrok to start a tunnel and keep the window open
ngrok http 3000
In the Slack App, navigate to :
Interactivity & Shortcuts
: set the Request URL as<Ngrok URL>/slack/interactive
Event Subscriptions
: set the Request URL as<Ngrok URL>/slack/events
Slash Commands
:/projet-cagnotte
|<Ngrok URL>/slack/events
|Hello, world !
|[hello]