Skip to content

Commit

Permalink
shuffle
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Dec 14, 2010
1 parent 77d2414 commit b099874
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions botart.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -98,24 +98,10 @@ listen = ->
listen()


#
# robot heart
#

heartbeat = ->
get '/api/presence.json', ->
console.log 'beat beat...'
setTimeout heartbeat, 30000
heartbeat()

get '/api/account/verify.json', listen


#
# robot actions
#


post = (path, body, callback) ->
request('POST', path, body, callback)

Expand All @@ -126,6 +112,19 @@ hear = (pattern, callback) ->
handlers.push [ pattern, callback ]


#
# robot heart
#

heartbeat = ->
get '/api/presence.json', ->
console.log 'beat beat...'
setTimeout heartbeat, 30000
heartbeat()

get '/api/account/verify.json', listen


#
# robot personality
#
Expand Down

0 comments on commit b099874

Please sign in to comment.