Explore on Bing: solve more challenges
This commit is contained in:
parent
6995bde8a6
commit
87fb791436
32
V6.py
32
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.")
|
||||
|
||||
|
|
Loading…
Reference in New Issue