-
Copy this directory
-
Create a
.env
file in the root directory, with aSLACK_BOT_TOKEN
for the slack bot to connect to your slack workspace
Use docker-compose
to build the environment and run the bot.
docker-compose build service
docker-compose run service
Make sure you have Node.js and npm available. Install dependencies and run the bot:
npm install
npm start
The details noted here.
Checks that the bot's alive. If it replies PONG
, you're good to go.
Says hello!
Pull requests on this repository are very welcome. There is test and linting tooling in place. Formatting is provided by prettier. This project uses the same linting and testing tooling as provided to any bots which use these scripts.
Use docker-compose
to build the environment, and run tests and lint.
docker-compose build test
docker-compose run test # Test and lint
Make sure you have Node.js and npm available locally. Install dependencies and run the test and linting tasks.
npm install
npm test # Run all tests with jest
npm run lint # Lint the codebase with eslint