Skip to content

Instantly share code, notes, and snippets.

@citrusfizz
Created January 15, 2016 03:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save citrusfizz/2e53be997fa076a9d252 to your computer and use it in GitHub Desktop.
Save citrusfizz/2e53be997fa076a9d252 to your computer and use it in GitHub Desktop.
def quenches(text,data)
message = "\n*Test*\n```"
Quench.all.each do |q|
gg = "https://ww.whatever.com"
message += " <#{gg}|click here>\n" # works fine
message += " <#{q.url}|click here>\n" # sends the url, but doesn't renders it: <http://www.whatever.com|click here> in slack
message += "<http://www.d.com|click here> ```" #this one works fine
end
self.send_message(message,data['channel'])
rescue => e
$log_slack.debug("|Alerts Disable| Error #{e}")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment