adding new custom search cards

This commit is contained in:
piair 2024-07-05 13:45:26 +02:00
parent c7e110787b
commit e25334f1bd
1 changed files with 10 additions and 0 deletions

10
V6.py
View File

@ -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.")