Find a file
2022-06-12 22:13:30 +00:00
.drone.yml #20 Pipelines merged. Deploy pipeline removed for now. Pylama now checks only changed files. 2022-05-31 02:20:19 +03:00
.gitignore implement update manager 2022-06-11 22:51:39 +00:00
bot.py #2 #7 Telegram module (#10) 2022-05-30 23:54:26 +03:00
database.py add a row factory to the database module 2022-06-12 20:08:11 +00:00
exceptions.py #2 #7 Telegram module (#10) 2022-05-30 23:54:26 +03:00
pylama.ini #2 #7 Telegram module (#10) 2022-05-30 23:54:26 +03:00
README.md Update bot running instructions in README.md 2022-05-31 12:15:47 +03:00
requirements.txt #2 #7 Telegram module (#10) 2022-05-30 23:54:26 +03:00
rss.py add feed title to Feed class 2022-06-12 20:48:05 +00:00
telegram.py add sending the feed title to the user 2022-06-12 22:13:30 +00:00
update_manager.py add sending the feed title to the user 2022-06-12 22:13:30 +00:00

Telegram RSS Bot

Build Status

Setting up virtual environment

To be able to isolate project environment we'll use Python's venv.

Setting up new environment and installing dependencies

# Create VirtualEnv directory
python -m venv ./.venv
# Loading environment
source .venv/bin/activate
# Installing dependencies
pip install -r requirements.txt

Adding dependencies

# Installing new dependency
pip install somedependency
# Rewriting dependency file
pip freeze > requirements.txt

Do not forget to install the latest dependencies before adding new dependencies and rewriting the requirements.txt file. Otherwise old dependencies could be lost.

Running the bot

export TELEGRAM_TOKEN=xxx
export DATABASE_PATH=./database.db
python bot.py