Skip to content

Commit

Permalink
Add Volume status output
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoch committed Sep 16, 2014
1 parent 6f3b55c commit 07aeb8e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/slack_interface/request_handler.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@ class SlackInterfaceRequestHandler
reply_data['text'] = if @spotify.shuffle then "ERRYDAY I'M SHUFFLING." else "I am no longer shuffling. Thanks for ruining my fun."

when 'vol'
switch @auth.args[0]
when "up" then @volume.up()
when "down" then @volume.down()
else @volume.set @auth.args[0]
if @auth.args[0]?
switch @auth.args[0]
when "up" then @volume.up()
when "down" then @volume.down()
else @volume.set @auth.args[0]
else
reply_data['text'] = "Current Volume: *#{@volume.current_step}*"

when 'list'
if @auth.args[0]?
Expand Down

0 comments on commit 07aeb8e

Please sign in to comment.