aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Karlis. S <[email protected]>2020-02-29 11:29:58 +0200
committerGravatar Karlis. S <[email protected]>2020-02-29 11:29:58 +0200
commit1fc0b1cdb3766434cb72b7b2c5f24ba7f7c5e1fa (patch)
treea268406fbcfe2c9f412e4dd08842bcd851a6e967
parent(Space Cog): Added NASA API key check on load, added logger (diff)
(Space Cog): Added NASA API base URL and .apod command HTTP request default parameters
-rw-r--r--bot/seasons/evergreen/space.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/bot/seasons/evergreen/space.py b/bot/seasons/evergreen/space.py
index c573e995..a4f60041 100644
--- a/bot/seasons/evergreen/space.py
+++ b/bot/seasons/evergreen/space.py
@@ -7,6 +7,16 @@ from bot.constants import Tokens
logger = logging.getLogger(__name__)
+# NASA API base URL
+BASE_URL = "https://api.nasa.gov/"
+
+# Default Parameters:
+# .apod command default request parameters
+APOD_PARAMS = {
+ "api_key": Tokens.nasa,
+ "hd": True
+}
+
class Space(Cog):
"""Space Cog contains commands, that show images, facts or other information about space."""