From 6868fbffcd492c84cc8066080cf9669c74f99e23 Mon Sep 17 00:00:00 2001 From: Hung IRC Bot Date: Wed, 16 May 2012 13:42:07 +0200 Subject: [PATCH] =?utf8?q?Un=20%=20qui=20se=20baladait=20pas=20l=C3=A0=20o?= =?utf8?q?=C3=B9=20il=20fallait?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- hung.py | 2 +- scores.pickle | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hung.py b/hung.py index 6e1b5cf..ea2a64c 100755 --- a/hung.py +++ b/hung.py @@ -418,7 +418,7 @@ class Hung(ircbot.SingleServerIRCBot): serv.privmsg(canal,"Bravo ! C'était %s"%(realword)) serv.privmsg(canal,definition) nlettre=float(len(realword.replace("'","").replace("-",""))) - contribs=["%s:%s%%"%(pseudo,str(int(100*contrib/nlettre))+("+bonus(%s)"%(bonusvalue))*(bonus==pseudo)) for pseudo,contrib in self.play_status[canal][2].items()] + contribs=["%s:%s%%%s"%(pseudo,str(int(100*contrib/nlettre)),("+bonus(%s)"%(bonusvalue))*(bonus==pseudo)) for pseudo,contrib in self.play_status[canal][2].items()] contribs_score={pseudo:int(10*contrib/nlettre) for pseudo,contrib in self.play_status[canal][2].items()} self.add_score(contribs_score) serv.privmsg(canal,"Contributions : %s"%(" ".join(contribs)) ) diff --git a/scores.pickle b/scores.pickle index 0700664..bd6ebb3 100644 --- a/scores.pickle +++ b/scores.pickle @@ -1,17 +1,17 @@ (dp0 S'Gaetan' p1 -I10 +I12 sS'Petite-Peste' p2 -I21 +I54 sS'[20-100]' p3 I10 -sS'Echec' -p4 -I10 sS'pika' -p5 +p4 I8 -s. +sS'Echec' +p5 +I10 +s. \ No newline at end of file -- 2.39.2