Skip to content

Commit

Permalink
new 'fortune' command for oldschool BSD fotrune
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Reitz authored and defunkt committed Feb 16, 2011
1 parent 6733bcd commit 6507dc8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions evilbot.coffee
Expand Up @@ -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]
Expand Down

0 comments on commit 6507dc8

Please sign in to comment.