new 'fortune' command for oldschool BSD fotrune

This commit is contained in:
Kenneth Reitz
2011-02-15 19:41:56 -08:00
committed by Chris Wanstrath
parent 6733bcd2d9
commit 6507dc8e83
+7
View File
@@ -175,6 +175,13 @@ hear /commit/, (message) ->
get url, (body) ->
message.say body
desc 'fortune'
hear /fortune/, (message) ->
url = "http://www.fortunefortoday.com/getfortuneonly.php"
get url, (body) ->
message.say body
desc 'weather in PLACE'
hear /weather in (.+)/i, (message) ->
place = message.match[1]