Skip to content

Telegram bot that parses the Moscow planetarium website and sends fresh astro news every day

License

Notifications You must be signed in to change notification settings

Darya-Kuzmich/space-telegram-bot

Repository files navigation

workflow

Space Telegram Bot

Description

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.

Requirements

Space telegram bot requires Docker and make to run. You also need a telegram bot.

Tech

Space telegram bot uses:

Quick start

  1. Clone this repo.

git clone git@github.com:Darya-Kuzmich/space-telegram-bot.git

  1. Place an .env file in the root of the project. An example can be found in the env.example file. Specify your TELEGRAM_TOKEN and TELEGRAM_CHAT_ID variables.
  2. Change in the bot.py the desired time for receiving the news if you want. (for more information about the schedule see schedule library)
  3. 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
  1. At the time specified in the schedule, astro news will come to your telegram bot. Enjoy! 😊

Features

To see all available commands, run

make help

If you want, you can add other commands to the Makefile.

License

MIT

Author

Darya Let'sRock Kuzmich