mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-24 21:44:08 -05:00
Change slack message to point to LogDNA instead of paper trail.
This commit is contained in:
parent
8d4d617069
commit
72d44ca5fb
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ module.exports.sendSlackMessage = (message, rooms=['tower'], options={}) ->
|
||||||
unfurl_media: false
|
unfurl_media: false
|
||||||
if options.papertrail
|
if options.papertrail
|
||||||
secondsFromEpoch = Math.floor(new Date().getTime() / 1000)
|
secondsFromEpoch = Math.floor(new Date().getTime() / 1000)
|
||||||
link = "https://papertrailapp.com/groups/488214/events?time=#{secondsFromEpoch}"
|
link = "https://app.logdna.com/logs/view?t=timestamp:#{secondsFromEpoch}"
|
||||||
form.text += " #{link}"
|
form.text += " #{link}"
|
||||||
# https://api.slack.com/docs/formatting
|
# https://api.slack.com/docs/formatting
|
||||||
form.text = form.text.replace('&', '&').replace('<', '<').replace('>', '>')
|
form.text = form.text.replace('&', '&').replace('<', '<').replace('>', '>')
|
||||||
|
|
Loading…
Reference in a new issue