From 87fb791436975905814a9fae6efcfc5f507c27ba Mon Sep 17 00:00:00 2001 From: augustin64 Date: Wed, 15 May 2024 09:52:39 +0200 Subject: [PATCH] Explore on Bing: solve more challenges --- V6.py | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/V6.py b/V6.py index 9563f6c..1ef564f 100755 --- a/V6.py +++ b/V6.py @@ -388,6 +388,38 @@ def explore_on_bing(activity: str, config: Config): search_bing(f"traduction {config.wordlist.get_word()} en anglais") elif "map" in activity: search_bing(f"{['Paris', 'Nice', 'Marseille', 'Bordeaux', 'Lyon'][randint(0, 4)]} carte") + elif "restaurant" in activity: + search_bing(random.choice([ + "restaurant à proximité", + "restaurant pas loin", + "manger dans le coin" + ])) + elif "recipe" in activity: + search_bing("recette de "+random.choice([ + "cake aux olives", + "tarte tatin", + "Kouign Amann", + "poulet au Curry", + "lasagnes aux épinards et ricotta", + "Boeuf Bourguignon", + "dessert", + "gateau au chocolat", + "crêpe sucrée" + ])) # Merci llama pour les idées + elif "currency" in activity: + currencies = [ + "euros", + "dollars canadiens", + "dollars", + "livres", + "francs suisses", + "roubles", + "pesos", + "bitcoin", + "anciens francs" + ] + chosen = random.choices(currencies, 2) + search_bing(f"convertir {random.randint(2, 120)} {chosen[0]} en {chosen[1]}") else: log_error(f"Explore on bing: {activity} not found.")