Fix a new error in scrapping explanation
Update python-telegram-bot library
This is a bot that will be able to handle different requests regarding Astronomy Picture Of the Day in https://apod.nasa.gov/. It's still work in progress, not even in an alpha stage.
This bot used to be only a Telegram bot. I have that version running on a server. You can find it in https://t.me/ApodNasaBot, and the code in deprecated-* branches. Besides, the bot cannot interact, it only sends the picture everyday to the ones already subscribed. If you are interested in subscribing, just let me know. Beware of bugs.
The aim of this new version is to make a new bot compatible with many platforms released under AGPL and with help of as many contributors as possible. I want to make real free software, with a community behind, even a little one. ;)
The bot should be able to:
Did you find a bug? Feel free to report it to the mailing list ~josealberto4444/apodnasabot@lists.sr.ht if it's not reported yet (take a look at the etiquette).
Do you want to contribute to the code? Glad to hear it, that's the purpose of putting it here! Simply send a patch to ~josealberto4444/apodnasabot@lists.sr.ht. Take a look at https://git-send-email.io/ if you need help. =)
For running this bot, you will need
pipenv
Execute the initialization script:
$ ./init.sh
This will do the following steps:
config.cfg
if it does not exist.data
.Then, you should get an API key from NASA and copy it in the corresponding section of config.cfg
.
First, you should copy your bot token to the config.cfg
file. Next, you can run the Telegram bot with
$ pipenv run python telegram_bot.py
The bot will reply to the apod
command sending the apod of today or, if followed by a date, sending the one of that date.