Skip to content
/ template-slack-bolt Public template

Slack App template to be created with slack bolt. This sample uses Socket Mode to retrieve messages.

License

Notifications You must be signed in to change notification settings

Himenon/template-slack-bolt

Repository files navigation

@himenon/template-slack-bolt

Slack App template to be created with slack bolt. This sample uses Socket Mode to retrieve messages.

Development

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

Environment File

.env

VERSION=1.0.1

.env.production

SLACK_APP_TOKEN=xapp-****
SLACK_BOT_TOKEN=xoxb-****

Architecture

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
Loading
Name FileName
slack.com -
Slack App src/slack/server.ts
Subscriber src/subscriber/index.ts
Function src/subscriber/index.ts (Method)

Release

  • Automatic version updates are performed when merged into the main branch.

License

@himenon/template-slack-bolt・MIT

About

Slack App template to be created with slack bolt. This sample uses Socket Mode to retrieve messages.

Topics

Resources

License

Stars

Watchers

Forks

Packages