Corona: bold --top10 reply

This commit is contained in:
oddluck 2020-03-27 01:55:50 +00:00
parent a951fad5d0
commit 82084d7048

View File

@ -590,13 +590,13 @@ class Corona(callbacks.Plugin):
continue continue
if n > 9: if n > 9:
break break
reply += " \x02{0}: \x1F{1}\x1F (\x0307{2}\x03/\x0304{3}\x03),".format( reply += " {0}: \x1F{1}\x1F (\x0307{2}\x03/\x0304{3}\x03),".format(
self.data[country]['rank'], self.data[country]['rank'],
self.data[country]['name'], self.data[country]['name'],
'{:,}'.format(self.data[country]['total_cases']), '{:,}'.format(self.data[country]['total_cases']),
self.data[country]['total_deaths']) self.data[country]['total_deaths'])
n += 1 n += 1
reply = reply.strip().strip(',') reply = reply.strip().strip(',')
irc.reply(reply) irc.reply("\x02{0}".format(reply))
Class = Corona Class = Corona