This repo demonstrates a simple slack
bot that listens for pingpong
and sends a response pong! pong!
.
- Clone this repo and run
npm i
- Create a file in the root called
.env
with the following:
SLACK_TOKEN=xxxx-your-slack-token-here-xxxx
(You can score a token here: https://api.slack.com/web)
- Run
npm start
(ornode index
) - Send a message in your Slack
pingpong