From 194e0782fe46e564e8a5e39ddbf90aa05ab0a2c9 Mon Sep 17 00:00:00 2001 From: mr-exz Date: Mon, 23 Dec 2024 14:41:38 +0300 Subject: [PATCH] help fixes --- bot/commands/call_duty_person.rb | 2 +- bot/commands/channel_auto_answer_disable.rb | 2 +- bot/commands/channel_auto_answer_enable.rb | 2 +- bot/commands/channel_labels_list.rb | 2 +- bot/commands/channel_labels_merge.rb | 2 +- bot/commands/channel_labels_statistic.rb | 2 +- bot/commands/channel_reminder_disabled.rb | 2 +- bot/commands/channel_reminder_enabled.rb | 4 ++-- bot/commands/channel_tag_reporter_in_thread_disable.rb | 2 +- bot/commands/channel_tag_reporter_in_thread_enable.rb | 2 +- bot/commands/checked.rb | 2 +- bot/commands/create_duty_for_user.rb | 2 +- bot/commands/help.rb | 2 +- bot/commands/i_am_on_duty.rb | 2 +- bot/commands/my_status.rb | 2 +- bot/commands/who_is_on_duty.rb | 2 +- 16 files changed, 17 insertions(+), 17 deletions(-) diff --git a/bot/commands/call_duty_person.rb b/bot/commands/call_duty_person.rb index 4208b08..a1c7dd3 100644 --- a/bot/commands/call_duty_person.rb +++ b/bot/commands/call_duty_person.rb @@ -3,7 +3,7 @@ module Commands class CallDutyPerson DESCRIPTION = 'Will send an alert message to the duty person.'.freeze - EXAMPLE = 'Usage: `call duty person`'.freeze + EXAMPLE = '`call duty person`'.freeze def self.call(client:, data:) duty = Duty.where(channel_id: data.channel).where(enabled: true).take! slack_web_client = Slack::Web::Client.new diff --git a/bot/commands/channel_auto_answer_disable.rb b/bot/commands/channel_auto_answer_disable.rb index c82e66c..0aa2fc2 100644 --- a/bot/commands/channel_auto_answer_disable.rb +++ b/bot/commands/channel_auto_answer_disable.rb @@ -3,7 +3,7 @@ module Commands class ChannelAutoAnswerDisable < SlackRubyBot::Commands::Base DESCRIPTION = 'Bot stop answer on any message in channel at working time'.freeze - EXAMPLE = "Usage: `channel auto answer disable`".freeze + EXAMPLE = '`channel auto answer disable`'.freeze def self.call(client:, data:) channel = Channel.find_or_initialize_by(slack_channel_id: data.channel) channel.update(auto_answer_enabled: false) diff --git a/bot/commands/channel_auto_answer_enable.rb b/bot/commands/channel_auto_answer_enable.rb index eda6322..0c02f90 100644 --- a/bot/commands/channel_auto_answer_enable.rb +++ b/bot/commands/channel_auto_answer_enable.rb @@ -3,7 +3,7 @@ module Commands class ChannelAutoAnswerEnable < SlackRubyBot::Commands::Base DESCRIPTION = 'Bot will answer on any message in channel at working time'.freeze - EXAMPLE = 'Usage: `channel auto answer enable`'.freeze + EXAMPLE = '`channel auto answer enable`'.freeze def self.call(client:, data:) channel = Channel.find_or_initialize_by(slack_channel_id: data.channel) channel.update(auto_answer_enabled: true) diff --git a/bot/commands/channel_labels_list.rb b/bot/commands/channel_labels_list.rb index d66e157..b17af37 100644 --- a/bot/commands/channel_labels_list.rb +++ b/bot/commands/channel_labels_list.rb @@ -2,7 +2,7 @@ module WhoIsOnDutyTodaySlackBotModule module Commands class ChannelLabelsList DESCRIPTION = 'Will display all labels in this channel.'.freeze - EXAMPLE = 'Usage: `channel labels list`'.freeze + EXAMPLE = '`channel labels list`'.freeze def self.call(client:, data:, match:) m = SlackThread.joins(:labels).where(channel_id: data.channel).group(:label).count.keys client.web_client.chat_postMessage( diff --git a/bot/commands/channel_labels_merge.rb b/bot/commands/channel_labels_merge.rb index dd3551d..b3c758c 100644 --- a/bot/commands/channel_labels_merge.rb +++ b/bot/commands/channel_labels_merge.rb @@ -2,7 +2,7 @@ module WhoIsOnDutyTodaySlackBotModule module Commands class ChannelLabelsMerge DESCRIPTION = 'Will migrate existing threads in the channel from one label to another.'.freeze - EXAMPLE = 'Usage: `channel labels merge from:label1 to:label2`'.freeze + EXAMPLE = '`channel labels merge from: