lib/lita/handlers/onewheel_election_cnn.rb in lita-onewheel-election-cnn-3.4.7 vs lib/lita/handlers/onewheel_election_cnn.rb in lita-onewheel-election-cnn-3.4.8

- old
+ new

@@ -141,20 +141,22 @@ if candidate['lname'] == 'Trump' reds = candidate['evotes'] end end - reply = "Clinton #{blues} |" + reply = '' extras = 54 - (blues / 10) - (reds / 10) reply += "\x0312" (blues / 10).times { reply += '█' } reply += "\x0300" extras.times { reply += '-'} reply += "\x0304" (reds / 10).times { reply += '█' } - reply += "\x0300| Trump #{reds}" reply.insert(reply.length / 2, "👽") + + reply = "Clinton #{blues} |" + reply + "\x0300| Trump #{reds}" + response.reply reply end Lita.register_handler(self) end