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
#why did they name you sophia | |
elsif(($currentCall.initialText[/^(?=.*\bwhy\b)(?=.*\bchoose\b)(?=.*\bname\b).*$/i] || $currentCall.initialText[/^(?=.*\bwhy\b)(?=.*\bchoose\b)(?=.*\bsophia\b).*$/i] || $currentCall.initialText[/^(?=.*\bwhy\b)(?=.*\bcall\b)(?=.*\byou\b).*$/i] || $currentCall.initialText[/^(?=.*\bwhy\b)(?=.*\bname\b)(?=.*\byou\b).*$/i] || $currentCall.initialText[/^(?=.*\bwho\b)(?=.*\bnamed\b)(?=.*\byou\b).*$/i]) && !$currentCall.initialText[/(temperature|weather|web|wiki|phone|postal code|zip code|flight|driving|directions|\$stock|address|time|closest to|customer|translate)/i]) | |
sophia = ["My developers named me that. \'Sophia\' is Greek for \'wisdom\'","My creators chose that name. Sophia is an angelic being in gnosticism that brings enlightenment to people :)", "I don\'t know. I guess my creators just liked the name!"] | |
whysophia = sophia[rand(sophia.length)] | |
say "#{whysophia}" |