Skip to content

Commit

Permalink
Added response to playtube
Browse files Browse the repository at this point in the history
  • Loading branch information
onewheelskyward committed Apr 15, 2016
1 parent 7feec3f commit 5439bf5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/lita/handlers/onewheel_automatic_pancake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ def vol_down(response)
end

def youtube(response)
RestClient.post "#{config.pancake_server}/youtube", {uri: response.matches[0][0]}
youtube_id = response.matches[0][0]
RestClient.post "#{config.pancake_server}/youtube", {uri: youtube_id}
response.reply "Gathering youtubes for #{youtube_id}, brace yourselves."
end

def kill_sound
Expand Down
2 changes: 1 addition & 1 deletion lita-onewheel-automatic-pancake.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |spec|
spec.name = 'lita-onewheel-automatic-pancake'
spec.version = '0.3.0'
spec.version = '0.3.1'
spec.authors = ['Andrew Kreps']
spec.email = ['andrew.kreps@gmail.com']
spec.description = %q{Lita interface to Automatic Pancake.}
Expand Down

0 comments on commit 5439bf5

Please sign in to comment.