Added the 'commit' command for epic whatthecommit.com support

This commit is contained in:
Kenneth Reitz
2011-02-15 19:41:19 -08:00
committed by Chris Wanstrath
parent e8630807e9
commit 6733bcd2d9
+8 -1
View File
@@ -165,9 +165,16 @@ hear /adventure me/, (message) ->
"Want some Rye? Course ya do!"
]
txt = txts[ Math.floor(Math.random()*txts.length) ]
message.say txt
desc 'commit'
hear /commit/, (message) ->
url = "http://whatthecommit.com/index.txt"
get url, (body) ->
message.say body
desc 'weather in PLACE'
hear /weather in (.+)/i, (message) ->
place = message.match[1]