Skip to content

Commit

Permalink
Merge pull request #22 from opensourcerouting/main
Browse files Browse the repository at this point in the history
Release 1.0.6
  • Loading branch information
RodrigoMNardi authored Dec 12, 2023
2 parents 97ffedf + 00a20fb commit 355ff0e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion lib/slack/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions service/prod/slack_cibot.service
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 355ff0e

Please sign in to comment.