Changement des musiques pour celles que Bing connais

This commit is contained in:
piair 2024-04-26 14:13:50 +02:00
parent 12eba5cde7
commit 9bcbc81c2f
1 changed files with 5 additions and 3 deletions

8
V6.py
View File

@ -356,7 +356,7 @@ def explore_on_bing(activity: str, config: Config):
if "lyrics" in activity:
search_bing(
f"paroles de {['The Black Dog', 'The Alchemy', 'The Albatross', 'The Bolter', 'Imgonnagetyouback'][randint(0, 4)]}")
f"paroles de {['Gata', 'Pyramide', 'Dolce Camara', 'Position', 'Mami Wata'][randint(0, 4)]}") # merci bing copilot pour les titres
elif "flight" in activity:
search_bing(
f"vol {['Paris - New York', 'Londres Amsterdam', 'Bora-Bora Miami', 'Los Angeles Toulouse', 'Rome Dubai'][randint(0, 4)]}")
@ -365,6 +365,8 @@ def explore_on_bing(activity: str, config: Config):
elif "movie" in activity:
search_bing(
f"Distribution {['Code 8 part 2', 'The Hunger Games: The ballad of Songbirds & Snakes', 'Rebel Moon: Part Two', 'Dune II', 'Wonka'][randint(0, 4)]}")
else:
log_error(f"Explore on bing: {activity} not found.")
# Find out which type of action to do
@ -425,11 +427,11 @@ def try_play(nom="unknown", activity=""):
warning(f"recovery detected. quiz : {number}")
play(number - 1)
elif "exploreonbing" in activity:
info("Explore on bing")
info(f"Explore on bing: {activity}")
explore_on_bing(activity, config)
custom_sleep(uniform(3, 5))
else:
info(f"Nothing obvious to do on page `{nom}`. Activity: {activity}")
info(f"Nothing obvious to do on page `{nom}`.")
custom_sleep(uniform(3, 5))