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")) } } }