From a11cbcbc3a0f2cf1581175444c733976a6e7aab2 Mon Sep 17 00:00:00 2001 From: Dmitry Afanasyev Date: Mon, 8 Aug 2022 21:15:28 +0300 Subject: [PATCH] update README.md --- README.md | 18 ++++++++++++++---- main.py | 3 +-- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 48c1f57..9e981c2 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,19 @@ # MosGotTrans bot -## Install +## Install & Update ```bash -export API_TOKEN=secret-token -cd ~/mosru -poetry shell & python mos_gor.py +cd ~/PycharmProjects/mosgortrans +sudo systemctl stop mosgortrans.service +git pull balshgit master +sudo cp ~/Pycharmprojects/mosgortrans/* /opt/mosgortrans/ -r +sudo systemctl start mosgortrans.service +``` + +## Clean + +```bash +killall geckodriver +killall firefox +killall python ``` diff --git a/main.py b/main.py index 5eb32b5..bcbf0b4 100644 --- a/main.py +++ b/main.py @@ -23,8 +23,7 @@ cron_jobs = [ user_chat_ids = {'chat_ids': [417070387, 431571617, - ] - } + ]} stations_cb = CallbackData('station', 'direction')