Skip to content

Instantly share code, notes, and snippets.

@Hunter-Dolan
Created July 9, 2012 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hunter-Dolan/3078235 to your computer and use it in GitHub Desktop.
Save Hunter-Dolan/3078235 to your computer and use it in GitHub Desktop.
lines.rb
if currentPlace in placeWords
starters = ["The time is ", "#{nick} the time's ", "The time's ", "The time is currently ",""]
t = Time.nowp
theTime = t.strftime("%I:%M%p")
"#{starters.sample}#{theTime}in#{currentPlace}"
else
uhohReturns = ["Valid place please!", "Somewhere legit please."]
uhohReturns.sample
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment