/docbase-url-expander

Slack bot for unfurling DocBase URLs

Primary LanguageTypeScriptMIT LicenseMIT

DocBase Url Expander

Slack bot for unfurling DocBase URLs.

Latest Version Build

GitHub Container Registry

Usage

# copy and edit the .env file
cp .env.sample .env
docker run --env-file .env --init --rm ghcr.io/kei711/docbase-url-expander:latest

Environment variables

  • SLACK_BOT_TOKEN
    • Bot token strings begin with xoxb-
  • SLACK_APP_TOKEN
    • App token strings begin with xapp-
  • DOCBASE_TEAM_NAME
    • https://<DOCBASE_TEAM_NAME>.docbase.io
  • DOCBASE_ACCESS_TOKEN

For local development

Prerequisite

  • Node.js 16.x
  • Yarn 1.x
  • direnv

Setup

cp .env.sample .env
direnv allow
yarn

Execute

# Run
yarn run esbuild ./src/index.ts

Docker

docker build -t docbase-url-expander .
docker run --env-file .env --init --rm docbase-url-expander

License

MIT