From e21015841edb39c9bd3e6efb3d4dbb1c8915ce00 Mon Sep 17 00:00:00 2001 From: mr-exz Date: Mon, 23 Dec 2024 14:00:34 +0300 Subject: [PATCH] fix version --- CHANGELOG.md | 4 ++++ bot/commands/answer_set_custom_text.rb | 4 ++-- bot/commands/help.rb | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f481fc4..67f8d24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ # Changelog +## 0.18.2 +### Bugfixes +- Fixing version display in help + ## 0.18.1 ### Bugfixes - DB migration fixes diff --git a/bot/commands/answer_set_custom_text.rb b/bot/commands/answer_set_custom_text.rb index c763786..25f19a1 100644 --- a/bot/commands/answer_set_custom_text.rb +++ b/bot/commands/answer_set_custom_text.rb @@ -1,8 +1,8 @@ module WhoIsOnDutyTodaySlackBotModule module Commands class AnswerSetCustomText - DESCRIPTION = 'Will configure custom text in answers from the bot.'.freeze - EXAMPLE = 'Usage: `answer set custom text nobody will help you, wait for next day`'.freeze + DESCRIPTION = 'Will configure custom text in answers from the bot. type:non_working_time/working_time'.freeze + EXAMPLE = 'Usage: `cibot answer set custom text type:non_working_time text:This is the custom text for non working hours.`'.freeze def self.call(client:, data:, match:) expression = match['expression'] diff --git a/bot/commands/help.rb b/bot/commands/help.rb index afea85b..2eb7c97 100644 --- a/bot/commands/help.rb +++ b/bot/commands/help.rb @@ -6,7 +6,7 @@ class Help def self.call(client:, data:) help_text = generate_help_text - version_info = "Running version: #{ENV['VERSION']} | | " + version_info = "Running version: #{Whoisondutytoday::Application::VERSION} | | " client.web_client.chat_postMessage( channel: data.channel,