Skip to content

Instantly share code, notes, and snippets.

View GnosisMediaGroup's full-sized avatar

GnosisMediaGroup

View GitHub Profile
#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}"