diff --git a/nardco.py b/nardco.py index cd5a662c625a9c66f5214f5809dd22fad153a7ed..821fa910cfa6c64dd85f9bc9912cea614c7af79d 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)))