Skip to content

Commit 494dbb7

Browse files
committed
fix: use <!here> to correctly @ mention @here in a channel
1 parent 8d3e2ba commit 494dbb7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/offbot/announcer.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
module OffBot
77
# server for automatic reminders of upcoming off days
88
class Announcer
9-
def self.announce(channel: '#general', message: nil)
10-
message = default_message unless message
9+
def self.announce(channel: "#general", message: nil)
10+
message ||= default_message
1111

1212
return if message.empty?
1313

@@ -20,7 +20,7 @@ def self.announce(channel: '#general', message: nil)
2020
def self.default_message
2121
message_builder.build_message(
2222
message_start: <<~EOF.strip,
23-
<@here> Happy Monday! here is the holiday schedule for this week and next week
23+
<!here> Happy Monday! here is the holiday schedule for this week and next week
2424
EOF
2525
from_date: Date.today,
2626
to_date: 2.weeks.from_now

0 commit comments

Comments
 (0)