Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added chat for hubot plugin

  • Loading branch information...
commit d14b32de636405549faa571a45ec0662d59134ff 1 parent 867afce
@GantMan GantMan authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/scripts/chat.coffee
View
10 src/scripts/chat.coffee
@@ -0,0 +1,10 @@
+# Start up some wonderful chats with conversation starters
+#
+# chat - Tell hubot to make something fun to chat about
+# Conversation starters graciously provided by http://Chatoms.com
+
+module.exports = (robot) ->
+ robot.respond /chat/i, (msg) ->
+ msg.http("http://chatoms.com/chatom.json?Normal=1&Fun=2&Philosophy=3&Out+There=4&Love=5&Personal=7")
+ .get() (err, res, body) ->
+ msg.send JSON.parse(body).text
Please sign in to comment.
Something went wrong with that request. Please try again.