exitflynn / DeGrasse

A discord bot written in python that uses Nasa's APOD API
2 stars 5 forks source link

Mars Photo API #1

Open exitflynn opened 1 year ago

exitflynn commented 1 year ago

incorporate the Mars photo API https://github.com/corincerami/mars-photo-api

rising-star2712 commented 1 year ago

Hi i wish to work on this issue for KWoC can u explain in detail what exactly is to be done and could you assign this issue to me

exitflynn commented 1 year ago

hey @rising-star2712, supersorry for the late response! but the issue basically involves using the Mars photo API (using it to send photos from Mars rovers) when a user asks the bot to. We'll have to decide on how to do the asking bit, it could be something as simple as an if "Mars" in messagecontent for now.

There are also ways to query/filter the images which we could implement at a later stage by asking the user to pass flags for say Earth date but for now, we can just have the bot send the latest image whenever the user does the "asking" by returning https://api.nasa.gov/mars-photos/api/v1/rovers/curiosity/latest_photos?api_key=DEMO_KEY