We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d3e2ba commit 494dbb7Copy full SHA for 494dbb7
lib/offbot/announcer.rb
@@ -6,8 +6,8 @@
6
module OffBot
7
# server for automatic reminders of upcoming off days
8
class Announcer
9
- def self.announce(channel: '#general', message: nil)
10
- message = default_message unless message
+ def self.announce(channel: "#general", message: nil)
+ message ||= default_message
11
12
return if message.empty?
13
@@ -20,7 +20,7 @@ def self.announce(channel: '#general', message: nil)
20
def self.default_message
21
message_builder.build_message(
22
message_start: <<~EOF.strip,
23
- <@here> Happy Monday! here is the holiday schedule for this week and next week
+ <!here> Happy Monday! here is the holiday schedule for this week and next week
24
EOF
25
from_date: Date.today,
26
to_date: 2.weeks.from_now
0 commit comments