From 0ef3cba81eb885fb2d3a67b6bf63ebb3afd15701 Mon Sep 17 00:00:00 2001 From: Loris TICHADOU <loris.tichadou@ensiie.fr> Date: Wed, 7 Aug 2019 13:49:31 +0200 Subject: [PATCH] Update nardco.py --- nardco.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nardco.py b/nardco.py index b1ccb71..185c3e2 100755 --- a/nardco.py +++ b/nardco.py @@ -229,7 +229,7 @@ class Boooob(ircbot.SingleServerIRCBot): else : scores[personne] = 1 - if tour == total + 1 : + if tour == total : maxScore = 0 gagnant = '' @@ -249,8 +249,10 @@ class Boooob(ircbot.SingleServerIRCBot): serv.privmsg(canal, "Question : {0}".format(question.format('utf8'))) serv.privmsg(canal, "Choix: {0}".format(', '.join(choix).format('utf8'))) else : + print pas_reponse + print message for mot in pas_reponse : - if mot.lower() in message and personne not in a_repondu : + if mot.lower() in message and not (personne in a_repondu) : serv.privmsg(canal, "WRONG, {0}".format(personne)) a_repondu.append(personne) -- GitLab