Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (23 sloc) 0.647 kB
# Description:
# See what's playing on the Heavy Metal Supersite
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot hardradio song - Display the song that's rocking on air
# hubot hardradio listen - Displays a link to play the radio
#
# Author:
# teo-sk
module.exports = (robot) ->
robot.respond /hardradio listen/i, (msg) ->
msg.send "http://www.hardradio.com/streaming/hardmp3.pls"
robot.respond /hardradio song/i, (msg) ->
msg.http('http://axl.hardradio.com/playnow.txt')
.get() (err, res, body) ->
body = body.replace(/song=/g, "Tearing your speakers right now: ")
msg.send body
Jump to Line
Something went wrong with that request. Please try again.