Permalink
Browse files

updated documentation

  • Loading branch information...
1 parent c6a5cc6 commit dbada97aa18a2df1fb5a727ff0ba03bb7477d042 @vosechu vosechu committed Jul 26, 2012
Showing with 18 additions and 8 deletions.
  1. +18 −8 src/scripts/talklikewarrenellis.coffee
@@ -1,18 +1,28 @@
-# Talklikewarrenellis.com random quote builder
-# Receive a random quote from the warren ellis generator (sometimes NSFW, but that's warren ellis for you.)
-#
-# @hu talk like warren ellis - "Good afternoon, deathwatch orgasm lesions. hahaha suffer"
-# @hu good morning - "Good evening, squid of death."
-# @hu ellis - "ATTENTION MEATBAGS: Everyone take their clothes off now."
+# Description:
+# Talklikewarrenellis.com random quote builder
+#
+# Dependencies:
+# None
+#
+# Configuration:
+# None
+#
+# Commands:
+# hubot good morning - Receive a random quote from the warren ellis generator
+#
+# Author:
+# vosechu
+
module.exports = (robot) ->
- robot.respond /(talk like warren ellis|ellis)/i, (msg) ->
+ robot.hear /(talk like warren ellis|ellis)/i, (msg) ->
msg.http("http://talklikewarrenellis.com/random.php")
.get() (err, res, body) ->
msg.send JSON.parse(body).quote
- robot.respond /good (morning|afternoon|evening|day|night)/i, (msg) ->
+ robot.hear /good (morning|afternoon|evening|day|night)/i, (msg) ->
msg.http("http://talklikewarrenellis.com/random.php")
.get() (err, res, body) ->
msg.send JSON.parse(body).quote
+

0 comments on commit dbada97

Please sign in to comment.