#4578
lecagnois
Participant

salut anthony

Voila j ai pas résister à mettre les doigts dans le code .
je commence simple (lol)
j ai modifié la procédure loto , j ai ajouter un argument

def loto(phrase,the,chance,fin):
talkBlocking(phrase)
talkBlocking(the+str(random.randint(1,49)))
talkBlocking(the+str(random.randint(1,49)))
talkBlocking(the+str(random.randint(1,49)))
talkBlocking(the+str(random.randint(1,49)))
talkBlocking(the+str(random.randint(1,49)))
talkBlocking(chance+str(random.randint(1,10)))
talkBlocking(fin)

le aiml qui va avec :

<?xml version=”1.0″ encoding=”UTF-8″?>
<aiml>

<category><pattern># loto #</pattern>
<template>
<oob>
<mrl>
<service>python</service>
<method>exec</method>
<param>loto(“Voci les numéros a jouer au loto, “,”Le “,”Et le numéro chance le, “,”Je vous souhaite bonne chance, “)</param>
</mrl>
</oob>
</template>
</category>
</aiml>

QUESTION :

CA fonctionne , mais on est obligé de relancer le .bat pour initailiser les modification
ma question existe t il un environnement débug pour tester sans tout relancer ou est ce la seule solution , une peu lourde lorsque l on débute dans un langage

Merci antony ( je sais pas si tu developpe ?)

nota : d ailleurs la proc loto ne teste pas les doublons random !