- node: 14.x.x
- yarn: 1.x.x
To clone the repo:
git clone https://github.com/charlesdobson/slackbot-starter.git
To install all dependencies:
cd slackbot-starter
yarn
- Create a
.env
file at the root - Copy the contents of the .env.example to the new
.env
file - Generate a Slack webhook string from https://api.slack.com/messaging/webhooks and add it as the
SLACK_WEBHOOK
environment variable - Determine the Slack token type using https://api.slack.com/authentication/token-types and add it as the
SLACK_TOKEN_TYPE
environment variable
To run the script and watch for changes:
yarn serve
To run the script only once:
yarn start