Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 26 lines (23 sloc) 0.647 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
# 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
Something went wrong with that request. Please try again.