Skip to content

Commit

Permalink
Merge pull request github#200 from noahhendrix/master
Browse files Browse the repository at this point in the history
Teach Hubot to say good night
  • Loading branch information
atmos committed Dec 7, 2011
2 parents beed82e + b0b4478 commit 0945f56
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions src/scripts/good-night.coffee
@@ -0,0 +1,35 @@
# GOOD Night
#
# good night

ways_to_say_good_night = [
"Good night, baby.",
"Night hot stuff.",
"Like I'm going to let you get any sleep",
"LOOK...the moon is calling you, SEE...the stars are shining for you, HEAR... my heart saying good night.",
"Sleep tight, don't let the bed bugs bite",
"May you never urinate the sweet sweet sounds of 70's disco funk",
"So long, and thanks for all the fish.",
"Finally",
"À voir!",
"Don't let the back door hit ya where the good Lord split ya",
"May your feet never fall off and grow back as cactuses",
"TTYL",
"C U L8R",
"Fine, then go!",
"Cheers",
"Uh, I can hear the voices calling me...see ya",
"In a while, crocodile",
"SHOO! SHOO!",
"No more of you.",
"Avada Kedavra"
]

# Make sure that hubot says good night
#
# good night - Make sure hubot replies
module.exports = (robot) ->
robot.respond /(good night|bye|nighty night)/i, (msg) ->
randomNumber = Math.ceil Math.random() * ways_to_say_good_night.length
msg.send ways_to_say_good_night[randomNumber]

0 comments on commit 0945f56

Please sign in to comment.