diff --git a/lib/slack/client.rb b/lib/slack/client.rb index 2b25bd0..da40082 100644 --- a/lib/slack/client.rb +++ b/lib/slack/client.rb @@ -24,7 +24,11 @@ def initialize end def chat(message, channel: fetch_channel) - @client.chat_postMessage(channel: channel, text: message, username: fetch_bot_name) + @client.chat_postMessage(channel: channel, + text: message, + username: fetch_bot_name, + unfurl_links: false, + unfurl_media: false) rescue Slack::Web::Api::Errors::TooManyRequestsError sleep 60 retry diff --git a/service/prod/slack_cibot.service b/service/prod/slack_cibot.service index f771eb2..b5ec28e 100644 --- a/service/prod/slack_cibot.service +++ b/service/prod/slack_cibot.service @@ -1,9 +1,9 @@ [Unit] -Description="CI Slack Bot DEVEL" +Description="CI Slack Bot PRODUCTION" After=network.target [Service] -User=slack_cibot_devel +User=slack_cibot WorkingDirectory=/home/slack_cibot/slack_github_bot ExecStart=/home/slack_cibot/slack_github_bot/service/prod/server.sh Restart=always