From e25334f1bddddad4069fd40fa7d2591e2d56fe1d Mon Sep 17 00:00:00 2001 From: piair Date: Fri, 5 Jul 2024 13:45:26 +0200 Subject: [PATCH] adding new custom search cards --- V6.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/V6.py b/V6.py index 8213de2..3dedf25 100755 --- a/V6.py +++ b/V6.py @@ -420,6 +420,16 @@ def explore_on_bing(activity: str, config: Config): ] chosen = random.sample(currencies, k=2) search_bing(f"convertir {random.randint(2, 120)} {chosen[0]} en {chosen[1]}") + elif "hotel" in activity: + search_bing(f" {['Paris', 'Nice', 'Marseille', 'Bordeaux', 'Lyon'][randint(0, 4)]}") + elif "health" in activity: + search_bing(f"{['toux', 'douleur dos', 'nez qui coule', 'mal au genoux', 'otite'][randint(0, 4)]} carte") + elif "news" in activity: + search_bing(["actualités", "news"][randint(0, 1)]) + elif "jobs" in activity: + search_bing("jobs") + elif "realestate" in activity: + search_bing(f"appartement à louer {['Paris', 'Nice', 'Marseille', 'Bordeaux', 'Lyon'][randint(0, 4)]} carte") else: log_error(f"Explore on bing: {activity} not found.")