Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

msg.send errors instead of sending them to the console.

  • Loading branch information...
commit 4166adf87829951c780860a92d13a62c01a448b4 1 parent 2babdd8
@mmb mmb authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/scripts/youtube-info.coffee
View
2  src/scripts/youtube-info.coffee
@@ -35,7 +35,7 @@ module.exports = (robot) ->
entry = data.entry
msg.send "YouTube: #{entry.title.$t} (#{formatTime(entry.media$group.yt$duration.seconds)})"
else
- console.error "youtube-info script error: #{api_url} returned #{res.statusCode}: #{body}"
+ msg.send "YouTube: error: #{api_url} returned #{res.statusCode}: #{body}"
formatTime = (seconds) ->
min = Math.floor(seconds / 60)
Please sign in to comment.
Something went wrong with that request. Please try again.