A sample (and very simple) Slack App, built by slack-edge and Typescript.
Configure following env values:
SLACK_SIGNING_SECRETSLACK_BOT_TOKENSLACK_APP_TOKEN(it's unnecessary if you use Socket Mode)
You can obtain these values on your own Slack App config pages. Please refer the guide to create a Slack App
Run the command:
node src/run-socket-mode.ts
Run the command:
node src/start-hono-server.ts
To test HTTP Mode on local, publish your web app (you can use Cloudflare Tunnel, Ngrok, etc) and configure Slack App to use the URL.
On Slack App page (visit https://api.slack.com/apps and select app), you need to configure the followings:
- Event Subscriptions - Request URL
- Slach Command - click the penceil icon that is located on each Slach Commands and you can see "Request URL" field
- Interactive & Shortcuts - Interactivity - Request URL
- Interactive & Shortcuts - Select Menus - Options Load URL
HTTP Mode only.
- Fork the repo
- Mainte
nameandcompatibility_datefields on wrangler.jsonc - Create Cloudflare Worker app
- Connect your repo
Socket Mode and HTTP Mode are available.
- Fork the repo
- Create a Heroku app
- Connect your repo and deploy
Please run following commands:
heroku ps:scale socket=1 -a [your heroku app name]