O Slack Certo is a Slackbot that simulates the widely-known Portuguese late-afternoon show Preço Certo.
The bot allows users to play a small and exciting game of price guessing using random technological products! The winner is the user with the guest that is closest to the actual price, without actually surpassing it.
To start the game, mention the bot in a channel using @
and append the famous word espetáculo
.
You can also analyse your performance by mentioning the bot and appending stats
!
- Get the code
- Either clone this repo and run
npm install
- Or visit https://glitch.com
- Either clone this repo and run
- Set the following environment variables to
.env
(see.env.sample
):SLACK_ACCESS_TOKEN
: Your app'sxoxp-
token (available on the Install App page)SLACK_BOT_TOKEN
: Your app'sxoxb-
token (available on the Install App page)SLACK_VERIFICATION_TOKEN
: Your app's Verification Token (available on the Basic Information page)PORT
: The port that you want to run the web server on
- If you're running the app locally:
- Start the app (
npm start
) - In another window, start ngrok on the same port as your webserver (
ngrok http $PORT
)
- Start the app (