From 68d5d3d5a4fa806f6bcc222d64c278ab494a3a31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Wikle=20DUBARD?= <loic97429@gmail.com> Date: Sun, 29 Sep 2019 16:53:30 +0200 Subject: [PATCH] =?UTF-8?q?wiki=20voix=20non=20enregist=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jarvis.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jarvis.py b/Jarvis.py index 309d5be..535f088 100755 --- a/Jarvis.py +++ b/Jarvis.py @@ -297,16 +297,16 @@ def tests(entre): # répond à merci si on lui a demandé quelquechose avant if ("merci" in entre or "Merci" in entre) and comprispreced == 1 and ("et vous" not in entre and "et toi" not in entre): merci = 1 - parle(random.choice(("A votre service.", "De rien", "Il n'y a pas de quoi !", 't\'inquiètes, je suis paysé pour ça'))) + parle(random.choice(("A votre service.", "De rien", "Il n'y a pas de quoi !", 't\'inquiètes, je suis payé pour ça'))) # fait une recherche sur wikipédia if "cherche" in entre and "sur wiki" in entre: texte = " ".join((entre.replace("cherche", "").replace("sur wikipedia", "")).split(" ")) - parle("je vais chercher :" + texte) - parle(usefull.wiki(texte)) + parle("je vais chercher :" + texte, False) + parle(usefull.wiki(texte), False) elif "cherche" in entrepreced and "sur wikipedia" in entrepreced and topics != []: try: - parle(usefull.wiki(entre)) + parle(usefull.wiki(entre), False) except: pass -- GitLab