mikelax / spacebot

spacebot - A Slack Bot for exploring NASA images
https://slashspacebot.netlify.app
Apache License 2.0
6 stars 2 forks source link

Handle 400 response from /rovers/name/photos API when no pictures returned #7

Closed mikelax closed 8 years ago

mikelax commented 8 years ago

As a user, I don't want to see an error response in slack when I send a slash command that results in no photos found for the given options.

example: /spacebot rovers photos opportunity mast 4332 There were no photos taken from the MAST camera for that given day and rover. Instead of returning an error response in slack, we should inform the user that no photos were found and they should adjust the parameters. It should also print the given command or parameters used.

In a future version it could try to suggest valid options to use.

mikelax commented 8 years ago

closed in #10