Skip to content

Commit

Permalink
Small formatting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
edmore committed May 24, 2012
1 parent 8f6f476 commit 2dd4d29
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions peekaboo.rb
Expand Up @@ -31,13 +31,13 @@

get "/start" do
length = redis.llen("questions")
(length).times do
question_id = redis.lpop("questions")
text = redis.get("question:#{question_id}:text")
system("espeak '#{text}'") || system("speak '#{text}'")
sleep 5
end
[200, {'Content-type' => 'text/plain'},"End of Session"]
(length).times do
question_id = redis.lpop("questions")
text = redis.get("question:#{question_id}:text")
system("espeak '#{text}'") || system("speak '#{text}'")
sleep 5
end
[200, {'Content-type' => 'text/plain'},"End of Session"]
end

get "/clear" do
Expand Down

0 comments on commit 2dd4d29

Please sign in to comment.