Skip to content

Instantly share code, notes, and snippets.

/votes5.rb Secret

Created May 13, 2011
Embed
What would you like to do?
Ruote.process_definition do
# ...
concurrence do
concurrence do
repeat do
votes :action => :get, :type => :email
end
repeat do
votes :action => :get, :type => :web
end
repeat do
votes :action => :get, :type => :irc
end
end
repeat do
listen :to => 'votes', :on => 'reply' do
inc 'v:vote_count'
over :if => '${v:vote_count} > 5'
end
end
# ...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.