Skip to content

Instantly share code, notes, and snippets.

@psql
Last active May 18, 2016 21:17
Show Gist options
  • Save psql/24f24213e541dc73d631cdb32eb51837 to your computer and use it in GitHub Desktop.
Save psql/24f24213e541dc73d631cdb32eb51837 to your computer and use it in GitHub Desktop.
messages = [
"love to tweet u"
"Oh is this an internet favor?"
"make comps great again"
"8===D"
"you bring honor to our family"
"I accidentally 40lbs of mangos"
"when I'm not doing things, I'm generally doing stuff."
"what's up with stuff"
"emoji time for realism πŸ›πŸ†’πŸ•΅πŸ»"
"They don't think it be like it is, but it do."
"Having a bad day? Try not trying!"
"are you staying in a Coachella at Burning Man this year or did you book a self driving school bus?"
"should replies code?"
"I really thing engineers should learn how to operate a train"
]
randomInterval = Utils.randomNumber(0,10)
Utils.interval randomInterval, ->
chatMessage.html = Utils.randomChoice(messages).substring(40,length) + "..."
# randomInterval = Utils.randomNumber(0,10) - doesn't do shit, because it's only updating inside this scope
print randomInterval
print chatMessage.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment