luckyluke.rb
# The rationale here is to find out if the bots have already voted because
# there's no way to front-run if this happens, so we need to know if this
# comment should be skipped.
The rationale here is to find out if the bots have already voted because
there's no way to front-run if this happens, so we need to know if this
comment should be skipped.
The rationale here is to find out if the bots have already voted because there ' s no way to front - run if this happens so we need to know if this comment should be skipped .
def bots_already_voted?(comment)
  all_voters = comment.active_votes.map(&:voter)
  (all_voters & @bots).any?
end
def bots_already_voted? ( comment ) all_voters = comment . active_votes . map ( & :voter ) ( all_voters & @bots ) . any? end
The rationale here is to find out if the bots have already voted because
there's no way to front-run if this happens, so we need to know if this
comment should be skipped.
The rationale here is to find out if the bots have already voted because there ' s no way to front - run if this happens so we need to know if this comment should be skipped .
comment
<not_specific>