Adding new "explore on Bing" cards

This commit is contained in:
augustin64 2024-10-08 09:07:01 +02:00
parent adf91ac8f0
commit 56c858fa90
2 changed files with 24 additions and 2 deletions

24
V6.py
View File

@ -461,7 +461,29 @@ def explore_on_bing(activity: str, config: Config):
elif "financemarket" in activity:
search_bing(
f"cours action {['AIR LIQUIDE', 'Airbus', 'BNP Paribas', 'Michelin', 'Stellantis', 'Vinci'][randint(0, 5)]}")
elif "sports" in activity:
equipes = random.sample([
"Toulon", "toulouse",
"stade Rochelais", "castres",
"clermont", "perpignan",
"aviron bayonnais", "vannes"
], k=2)
search_bing(f"{['score', 'résultats'][randint(0, 1)]} rugby {equipes[0]} {equipes[1]}")
elif "videogames" in activity:
search_bing(random.choice([
"Minecraft", "GTA V",
"Tetris", "PUBG",
"Mario Kart 8",
"Red Dead Redemption II",
"Terraria",
"The Witcher",
"Animal Crossing",
"Pokémon rouge & bleu",
"Super Mario Bros",
"The legend of Zelda BOTW",
"Call of Duty Modern Warfare",
"The Witcher III"
]))
else:
log_error(f"Explore on bing: {activity} not found.")

View File

@ -1 +1 @@
v6.8.62
v6.8.63