From 3e0f9be4202a7998072e969dc5d08da0a64c8e8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D0=BC=D0=B8=D1=80=20=D0=A4?= =?UTF-8?q?=D0=B5=D0=B4=D0=BE=D1=80=D0=BE=D0=B2?= Date: Sun, 3 Apr 2022 18:33:09 +0700 Subject: [PATCH] rm pkill from drone --- .drone.yml | 5 ++++- main.go | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index d0b92b2..e082afc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -29,6 +29,8 @@ steps: environment: TOKEN: from_secret: bot_token + PASSWORD: + from_secret: ssh_pass settings: host: from_secret: ssh_ip @@ -38,11 +40,12 @@ steps: from_secret: ssh_pass port: from_secret: ssh_port - envs: [ TOKEN ] + envs: [ TOKEN,PASSWORD ] command_timeout: 10s script: - cd bots - echo $${TOKEN} > token.txt + - echo $${PASSWORD} | sudo -S systemctl restart butler_tg_bot trigger: event: diff --git a/main.go b/main.go index 01ca1b4..656ae44 100644 --- a/main.go +++ b/main.go @@ -91,7 +91,7 @@ func run() { case commands.Help: _, _ = bot.Send(tgbot.NewMessage(chatID, "Вот что я умею:\n\n1) Позвать всех")) case commands.Ping: - _, _ = bot.Send(tgbot.NewMessage(chatID, "pong v3")) + _, _ = bot.Send(tgbot.NewMessage(chatID, "pong v4")) } } }