aboutsummaryrefslogtreecommitdiff
path: root/apod-bot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'apod-bot.sh')
-rwxr-xr-xapod-bot.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/apod-bot.sh b/apod-bot.sh
index f05b8fb..5bd3952 100755
--- a/apod-bot.sh
+++ b/apod-bot.sh
@@ -19,6 +19,9 @@ bot_password=secret-password-here
apod_base_url=https://apod.nasa.gov/apod
+# Check if the bot username/password are correct
+curl -sSfu "$bot_username:$bot_password" -o /dev/null $social_api_url/statuses/home_timeline.json
+
# Download HTML page, and scrape required information
apod_html=$(curl -sS $apod_base_url/astropix.html)