You are tasked with creating a Slack Bot that returns a scrabble score when provided with a word
For example:
If a user of your ScrabbleScoreBot types in the following slash command into Slack:
Then a score of 12
should be returned by the Slack bot
1) Create a new Slack App called ScrabbleScoreBot (follow the same steps from the OpenWeatherBot tutorial)
2) Follow the same steps from the tutorial to set up your Node application
3) Create a slash command (see Step 10 from the tutorial) with the following specs:
Field | Value |
---|---|
Command | /scrabblescore |
Request URL | https://{Add your ngrok url}/scrabblescore |
Short Description | Get the scrabble score for any word |
Usage Hint | [word] |
4) Use the following API endpoint to fetch the scrabble score associated with a word
GET https://scrabble-scorer-api.herokuapp.com/api/v1/words/score?word={add_your_word_here}
Note: The request parameter: word
is required; this API does not require an API Key