Permalink
Browse files

Changed the language on reponses and queuing of questions

  • Loading branch information...
1 parent c776e42 commit e25dd4ddb5dff45b9b9e81c741c1f9b5fa37fa42 @burtlo committed Oct 23, 2011
Showing with 5 additions and 5 deletions.
  1. +2 −0 lib/polar.rb
  2. +3 −5 lib/quiz.rb
View
@@ -10,8 +10,10 @@ def handle_response(sender_nick,response)
if response =~ YES_ANSWER
store_positive_response_for sender_nick
+ true
elsif response =~ NO_ANSWER
store_negative_response_for sender_nick
+ true
else
nil
end
View
@@ -18,7 +18,7 @@ def handle(time, sender_nick, message)
if sent_to_me? message and is_a_valid_question? request
enqueue_the_question sender_nick, request
- reply "@#{sender_nick}, I have enqueued your question"
+ reply "@#{sender_nick}, I have added your question to the list."
quizmaster
end
@@ -27,8 +27,6 @@ def handle(time, sender_nick, message)
process_response_for_active_question sender_nick, request
end
- rescue => exception
- reply "Problem: #{exception}"
end
QUESTION_REGEX = /^ask ?(choice|polar|scale)? (?:question )?.+(?:(?:for )?(\d+) minutes?)$/
@@ -109,9 +107,9 @@ def stop_accepting_responses_for_this_question(question)
def process_response_for_active_question(sender_nick, request)
if @@current_question.handle_response sender_nick, request
- reply "@#{sender_nick} I have received a response"
+ reply "Thank you, @#{sender_nick}, I have recorded your response."
else
- reply "@#{sender_nick} I did not understand that answer"
+ reply "Sorry, @#{sender_nick}, I was unable to record that answer"
end
end

0 comments on commit e25dd4d

Please sign in to comment.