Random image command
Closed this issue · 2 comments
KeeperOfMaps commented
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.
TheRealFakeAdmin commented
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
) usingdate
The NASA Open API APOD docs
NASA Open API Docs & Info from here
KeeperOfMaps commented
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.