This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Merge pull request #401 from GantMan/master

Added new hubot plugin for chatting.
  • Loading branch information...
2 parents 867afce + d14b32d commit 061116b0a08e13c2cbce8a317cb73c80ee23bbba @tombell tombell committed May 7, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/scripts/chat.coffee
View
@@ -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

0 comments on commit 061116b

Please sign in to comment.