Slack App template to be created with slack bolt. This sample uses Socket Mode to retrieve messages.
Install
pnpm install
Watch
pnpm watch
Build
pnpm build
Build Docker Image
docker build . -t ghcr.io/himenon/template-slack-bolt:local
Docker Run
docker run --rm --env-file=.env.production ghcr.io/himenon/template-slack-bolt:local
docker compose up
# Deamon
docker run --rm --env-file=.env.production -d ghcr.io/himenon/template-slack-bolt:local
docker compose up -d
.env
VERSION=1.0.1
.env.production
SLACK_APP_TOKEN=xapp-****
SLACK_BOT_TOKEN=xoxb-****
Basic
sequenceDiagram
slack.com->>Slack App : Message vis Socket Mode
Slack App-->>Subscriber : Send Parsed Message
Subscriber-->>Function : Run Function
Function-->>Subscriber : Response
Subscriber-->>slack.com : Send Message
Name | FileName |
---|---|
slack.com | - |
Slack App | src/slack/server.ts |
Subscriber | src/subscriber/index.ts |
Function | src/subscriber/index.ts (Method) |
- Automatic version updates are performed when merged into the
main
branch.