CosmoQuestX/Rocket-Bot

Random image command

Closed this issue · 2 comments

I made a typo when issuing the !ping command and @starstryder commented "I now want png to be a random image".

After some discussion, it was decided that maybe the random image could be a random APOD.

NASA's APOD Open API Options/Ideas

  • save a list of all the APODs (if there is no size limit) using start_date & end_date then select a random query every call
  • generate a random date (formatted YYYY-MM-DD) using date

The NASA Open API APOD docs

image

NASA Open API Docs & Info from here

Easier: generate a random date since APOD a started and serve that. Means no need to retrieve and store all of the APODs since it's unlikely to be used at a high rate.