Created
January 15, 2016 03:54
-
-
Save citrusfizz/2e53be997fa076a9d252 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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