From f3dca91a27b77c7d40dc67252439cb7d73538a99 Mon Sep 17 00:00:00 2001 From: hogweed1 Date: Sat, 29 Oct 2022 00:36:56 -0400 Subject: [PATCH 1/4] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB(?= =?UTF-8?q?=D0=B0)=20=D0=BD=D0=B0=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index b00f986..3e29117 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,11 +7,14 @@ platform: os: linux arch: amd64 -clone: +#clone: # убрано так как сейчас не тестим ничего предварительно а сразу тянем в директорию - disable: true + #disable: true steps: +- name: test it first + commands: + - /usr/bin/python3 -m py_compile /usr/share/python_bot/bot.py - name: pull into the folduh commands: - cd /usr/share/$DRONE_REPO_NAME From 5257c2eec71645eb386f1adcbcf17c005b4844ea Mon Sep 17 00:00:00 2001 From: hogweed1 Date: Sat, 29 Oct 2022 00:37:11 -0400 Subject: [PATCH 2/4] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB(?= =?UTF-8?q?=D0=B0)=20=D0=BD=D0=B0=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 3e29117..8dd642e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,7 +14,7 @@ platform: steps: - name: test it first commands: - - /usr/bin/python3 -m py_compile /usr/share/python_bot/bot.py + - /usr/bin/python3 -m py_compile bot.py - name: pull into the folduh commands: - cd /usr/share/$DRONE_REPO_NAME From b03c7d54d0b198e67dd8e79d4473806bb431f68e Mon Sep 17 00:00:00 2001 From: hogweed1 Date: Sat, 29 Oct 2022 00:38:07 -0400 Subject: [PATCH 3/4] =?UTF-8?q?=D0=BB=D0=BE=D0=BC=D0=B0=D0=B5=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 2e131aa..7d1b0b8 100644 --- a/bot.py +++ b/bot.py @@ -11,7 +11,7 @@ bot = Bot(token=API_TOKEN) dp = Dispatcher(bot) @dp.message_handler(commands=['start']) -async def start_func(message: types.Message): +async def start_func(message: types.Message) user_id = message.from_user.id user_full_name = message.from_user.full_name logging.INFO(f'{user_id=} {user_full_name=}', {time.asctime()}) From 10c3a3a3a9c78f0324488adde1a3193c32435101 Mon Sep 17 00:00:00 2001 From: hogweed1 Date: Sat, 29 Oct 2022 00:38:45 -0400 Subject: [PATCH 4/4] =?UTF-8?q?=D1=87=D0=B8=D0=BD=D0=B8=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 7d1b0b8..2e131aa 100644 --- a/bot.py +++ b/bot.py @@ -11,7 +11,7 @@ bot = Bot(token=API_TOKEN) dp = Dispatcher(bot) @dp.message_handler(commands=['start']) -async def start_func(message: types.Message) +async def start_func(message: types.Message): user_id = message.from_user.id user_full_name = message.from_user.full_name logging.INFO(f'{user_id=} {user_full_name=}', {time.asctime()})