The bot parses the Moscow planetarium
website every day and sends news. If there is no fresh news, then the bot sends a message No news today
.
If something happens, the bot will also send an error message.
Space telegram bot requires Docker and make to run. You also need a telegram bot.
Space telegram bot uses:
- Clone this repo.
git clone git@github.com:Darya-Kuzmich/space-telegram-bot.git
- Place an
.env
file in the root of the project. An example can be found in the env.example file. Specify yourTELEGRAM_TOKEN
andTELEGRAM_CHAT_ID
variables. - Change in the bot.py the desired time for receiving the news if you want. (for more information about the schedule see schedule library)
- Then from the root directory of the project run the next command in the terminal.
make build-up
After executing this command, two containers should be built and launched:
- space_bot
- redis_space_bot
- At the time specified in the schedule, astro news will come to your telegram bot. Enjoy! 😊
To see all available commands, run
make help
If you want, you can add other commands to the Makefile.
MIT
Darya Let'sRock Kuzmich