From: Hung IRC Bot Date: Wed, 16 May 2012 11:42:07 +0000 (+0200) Subject: Un % qui se baladait pas là où il fallait X-Git-Url: http://gitweb.pimeys.fr/?p=bots%2Fhung.git;a=commitdiff_plain;h=6868fbffcd492c84cc8066080cf9669c74f99e23 Un % qui se baladait pas là où il fallait --- 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