Go to file
mitsuha_s ae31be33b6
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
fix update method in UpdateManager
2022-07-13 22:32:47 +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 Update manager (#23) 2022-07-08 22:23:12 +03:00
README.md WIP: migrate to PostgreSQL 2022-07-11 00:25:44 +00:00
bot.py WIP: migrate to PostgreSQL 2022-07-11 00:25:44 +00:00
database.py fix __dictrow_to_dict_list 2022-07-13 22:09:04 +00:00
exceptions.py #2 #7 Telegram module (#10) 2022-05-30 23:54:26 +03:00
pylama.ini Update manager (#23) 2022-07-08 22:23:12 +03:00
requirements.txt WIP: migrate to PostgreSQL 2022-07-11 00:25:44 +00:00
rss.py Fix representation date in FeedItem (#38) 2022-07-10 17:40:19 +03:00
telegram.py WIP: migrate to PostgreSQL 2022-07-11 00:25:44 +00:00
update.py WIP: migrate to PostgreSQL 2022-07-11 00:25:44 +00:00
update_manager.py fix update method in UpdateManager 2022-07-13 22:32:47 +00:00

README.md

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 RSSBOT_TG_TOKEN=xxx
export RSSBOT_DSN=xxx
python bot.py

Running the update

export RSSBOT_TG_TOKEN=xxx
export RSSBOT_DSN=xxx
python update.py