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

Add oblique strategy script

  • Loading branch information...
1 parent 604ebcb commit 6ee1fc7020cd2bdb05920b7dd5825ca1e24d4824 @objet objet committed Jan 7, 2013
Showing with 20 additions and 0 deletions.
  1. +20 −0 src/scripts/oblique.coffee
View
@@ -0,0 +1,20 @@
+# Description:
+# Display an oblique strategy
+#
+# Dependencies:
+# None
+#
+# Configuration:
+# None
+#
+# Commands:
+# hubot strategy - Returns an oblique strategy
+#
+# Author:
+# hakanensari
+
+module.exports = (robot) ->
+ robot.respond /\W*(?:an? )?(?:oblique )?strategy\??$/i, (msg) ->
+ msg.http('http://oblique.io')
+ .get() (err, res, body) ->
+ msg.send JSON.parse body

0 comments on commit 6ee1fc7

Please sign in to comment.