From bea2793e7e0ac761ef4e0b5c826c22cc2d9c8b27 Mon Sep 17 00:00:00 2001
From: Loris TICHADOU <loris.tichadou@ensiie.fr>
Date: Thu, 2 May 2019 15:22:26 +0200
Subject: [PATCH] Update nardco.py

---
 nardco.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nardco.py b/nardco.py
index cd5a662..821fa91 100755
--- a/nardco.py
+++ b/nardco.py
@@ -201,7 +201,7 @@ class Boooob(ircbot.SingleServerIRCBot):
         if "Titch" in personne and "leave" in message and "nardco" in message:
             serv.part(canal)
 
-        if reponse is not None && reponse in message : 
+        if reponse is not None and reponse in message : 
             serv.privmsg(canal, personne + " a trouvé la reponse ! Bien joué !")
             reponse = None
 
@@ -253,7 +253,7 @@ class Boooob(ircbot.SingleServerIRCBot):
                                  ("Commandes disponibles :{0}").format(', '.join(cmds)))
             elif cmd == "quizz" : 
                 datas = quizz()
-                reponse = datas['reponse']
+                reponse = datas['reponse'].lower()
                 choix = datas['choix']
                 question= datas['reponse']
                 serv.privmsg(canal, "Question : {0}, Choix : {1}".format(question, ', '.join(choix)))
-- 
GitLab