Permalink
Browse files

Changed path for current song for Hubot v1.1.11

  • Loading branch information...
1 parent f35aad1 commit b08bb4146f5595915959f3cbaaca162b8ad346cf @davidvanleeuwen committed Nov 14, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 spotify.coffee
View
@@ -40,12 +40,12 @@ module.exports = (robot) ->
sh('osascript -e \'tell app "Spotify" to playpause\'')
robot.respond /(next|play next|play the next song)$/i, (msg) ->
sh('osascript -e \'tell app "Spotify" to next track\'')
- song = sh('osascript src/hubot/scripts/current_song.scpt')
+ song = sh('osascript src/scripts/current_song.scpt')
song.result (obj) ->
msg.send "And now I'm playing "+ obj
robot.respond /(previous|prev|play previous|play the previous song)$/i, (msg) ->
sh('osascript -e \'tell app "Spotify" to previous track\'')
- song = sh('osascript src/hubot/scripts/current_song.scpt')
+ song = sh('osascript src/scripts/current_song.scpt')
song.result (obj) ->
msg.send "Playing this song again: "+ obj
robot.respond /volume ((\d{1,2})|up|down)$/i, (msg) ->
@@ -83,7 +83,7 @@ module.exports = (robot) ->
# show what song I'm currently playing
robot.respond /(current|song|track|current song|current track)$/i, (msg) ->
- song = sh('osascript src/hubot/scripts/current_song.scpt')
+ song = sh('osascript src/scripts/current_song.scpt')
song.result (obj) ->
msg.send "The current song I'm playing is "+ obj

0 comments on commit b08bb41

Please sign in to comment.