diff --git a/nardco.py b/nardco.py index eed08f3590bada214c39c7f5dd169319e68d0d97..b1ccb7113e9f81281656f773d5d21e0ebeeae780 100755 --- a/nardco.py +++ b/nardco.py @@ -237,7 +237,7 @@ class Boooob(ircbot.SingleServerIRCBot): if scores[pseudo] > maxScore : maxScore = scores[pseudo] gagnant = pseudo - serv.privmsg(canal, "${0} a gagné avec un score de ${1}".format(gagnant, maxScore)) + serv.privmsg(canal, "{0} a gagné avec un score de {1}".format(gagnant, maxScore)) scores = {} tour = 0 total = 0 @@ -322,6 +322,15 @@ class Boooob(ircbot.SingleServerIRCBot): elif cmd == "quizz" : + + if len(args)> 1 : + if int(args[1]) : + total = int(args[1]) + else : + total = 10 + else : + total = 10 + serv.privmsg(canal, "{0} a commencé un quizz ! Jouez ! {1} questions ! ".format(personne, total)) datas = quizz() reponse = datas['reponse'].lower() choix = datas['choix']