Skip to content

Commit 353e2e2

Browse files
committed
change invite link messages from ephemeral to public
1 parent 61a29aa commit 353e2e2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/controllers/slack_commands_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def handle
4848
when "/guild-update-channels"
4949
{ response_type: "in_channel", text: guild_update_channels_message }
5050
when "/guild-invite"
51-
{ response_type: "ephemeral", text: guild_invite_message(params[:text], params[:user_id], params[:channel_id]) }
51+
{ response_type: "in_channel", text: guild_invite_message(params[:text], params[:user_id], params[:channel_id]) }
5252
else
5353
Rails.logger.warn "[SlackBot] Unknown command: #{params[:command].inspect}"
5454
{ response_type: "ephemeral", text: "Unknown command." }
@@ -281,7 +281,7 @@ def guild_merge_message(text)
281281
if source.slack_channel_id.present?
282282
slack_client ||= Slack::Web::Client.new(token: ENV["GUILDS_BOT_TOKEN"])
283283
target_channel_mention = target.slack_channel_id.present? ? "<##{target.slack_channel_id}>" : "*#{target.name}*"
284-
merge_message = "<!channel> This guild has been merged into #{target_channel_mention}. " \
284+
merge_message = "This guild has been merged into #{target_channel_mention}. " \
285285
"If you need help covering travel to the new guild, https://gas.hackclub.com/ can help!"
286286
begin
287287
slack_client.chat_postMessage(channel: source.slack_channel_id, text: merge_message, link_names: true)

app/views/guild_invites/show.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
<% else %>
2929
<div class="bg-bp-dark/50 rounded-none p-4 text-left space-y-2 border border-white/10">
30-
<p class="text-white/80 text-sm">By joining, you'll be signed up as an <strong>attendee</strong>. You'll be added to the guild's Slack channel automatically.</p>
30+
<p class="text-white/80 text-sm">By joining, you'll be signed up as an <strong>attendee</strong>. You'll be added to the guild's Slack channel automatically if you've linked your Slack account through the dashboard.</p>
3131
<% if user_logged_in? %>
3232
<ul class="text-white/70 text-sm space-y-1 list-disc list-inside">
3333
<li>Name: <strong><%= current_user.display_name %></strong></li>

0 commit comments

Comments
 (0)