Skip to content

Commit

Permalink
fix description
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-exz committed Dec 23, 2024
1 parent 638dfc7 commit 7c9a4f2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bot/commands/answer_delete_custom_text.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module WhoIsOnDutyTodaySlackBotModule
module Commands
class AnswerDeleteCustomText
DESCRIPTION = 'Will delete all custom text in channel.'.freeze
EXAMPLE = 'Usage: `answer delete custom text`'.freeze
EXAMPLE = '`answer delete custom text`'.freeze
def self.call(client:, data:)
Answer.where(channel_id: data.channel).delete_all

Expand Down
2 changes: 1 addition & 1 deletion bot/commands/duty_create.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module WhoIsOnDutyTodaySlackBotModule
module Commands
class DutyCreate
DESCRIPTION = 'Will create a duty. Time should be defined in your local timezone.'.freeze
EXAMPLE = 'Usage: `duty create from 8:00 to 17:00`'.freeze
EXAMPLE = '`duty create from <from time> to <to time>` example: `duty create from 8:00 to 17:00`'.freeze
def self.i_am_on_duty(data:, client:)
Duty.where(channel_id: data.channel).where(user_id: data.user).update_all(enabled: true)
Duty.where(channel_id: data.channel).where.not(user_id: data.user).update_all(enabled: false)
Expand Down
2 changes: 1 addition & 1 deletion bot/commands/help.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def self.generate_help_text
ActionShowAction,
ThreadLabelsClean,
ThreadLabels,
UserCommits,
UserCommits
]

commands.map do |command|
Expand Down
2 changes: 1 addition & 1 deletion bot/whoisondutytodayslackbot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class WhoIsOnDutyTodaySlackBot < SlackRubyBot::Bot
command 'channel labels merge' do |client, data, match|
WhoIsOnDutyTodaySlackBotModule::Commands::ChannelLabelsMerge.call(client: client, data: data, match: match)
end

command 'git commits' do |client, data, match|
WhoIsOnDutyTodaySlackBotModule::Commands::UserCommits.call(client: client, data: data, match: match)
end
Expand Down

0 comments on commit 7c9a4f2

Please sign in to comment.