Created
October 4, 2016 15:43
-
-
Save RonanLOUARN/c3b4bf123ca7878879d8f43b5e976844 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def coach_answer(your_message) | |
# TODO: return coach answer to your_message | |
if your_message.include? "?" | |
"Silly question, get dressed and go to work!" | |
else | |
"I don't care, get dressed and go to work!" | |
end | |
end | |
def coach_answer_enhanced(your_message) | |
# TODO: return coach answer to your_message, with additional custom rules of yours! | |
if your_message == your_message.upcase | |
"I can feel your motivation! " + coach_answer(your_message) | |
else | |
coach_answer(your_message) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment