Skip to content
This repository has been archived by the owner on Dec 2, 2023. It is now read-only.

Slack bot for unfurling DocBase URLs

License

Notifications You must be signed in to change notification settings

kei711/docbase-url-expander

Folders and files

NameName
Last commit message
Last commit date
May 5, 2022
May 24, 2022
Feb 19, 2022
Feb 23, 2022
Feb 17, 2022
Feb 17, 2022
Feb 18, 2022
Sep 13, 2022
Feb 19, 2022
Feb 19, 2022
Aug 22, 2023
May 24, 2022
Feb 17, 2022
Aug 22, 2023

Repository files navigation

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