A simple command to generate a random number and send to slack.
/roll The command will generate a random number (0 to 100 by default).
/roll 200 You can update the upper bound value by passing one parameter. It will generate a random number between 0 to 200
/roll 1 10 By passing two paraneters you can control the lower bound and upper bound. So it will generate a number between 1 to 10
- Install node js (brew install node)
- Run npm install
- Use your favourite IDE to open the project
- Run npm run start to launch the app. Use npm run dev for local development. Use npm run test to run the test case.
Please add your yahoo weather app id, client and secret to config .env file
YAHOO_WEATHER_APP_ID=
YAHOO_WEATHER_CLIENT_ID=
YAHOO_WEATHER_CLIENT_SECRET=
- Please install ngrok (https://ngrok.com/)
- Then run the command ngrok http 5000
- ngrok will generate a URL and you can test the service through Postman or paste the URL in the slack command config
npm test -- --grep "weather code";