lib/lita/handlers/onewheel_election_cnn.rb in lita-onewheel-election-cnn-2.0.0 vs lib/lita/handlers/onewheel_election_cnn.rb in lita-onewheel-election-cnn-3.0.0

- old
+ new

@@ -31,11 +31,12 @@ state = stateness(response.matches[0][0]) results['races'].each do |race| if race['state'].downcase == state.downcase + response.reply "#{state}, #{race['evotes']} electoral votes, #{race['pctsrep']}% reporting" race['candidates'].each do |candidate| - candidate_str = "#{state} (#{race['evotes']} electoral votes) - #{candidate['fname']} #{candidate['lname']}: " + candidate_str = "#{candidate['fname']} #{candidate['lname']}: " candidate_str += "#{candidate['pctDecimal']}%" candidate_str += " WINNER! #{candidate['evotes']} electoral votes." if candidate['winner'] response.reply candidate_str end end