transitous rewrite: only send announcement embed when no voice announcement

This commit is contained in:
Kaaninchen
2026-08-17 17:14:43 +02:00
parent f990a55da9
commit 60d4936dda
5 changed files with 66 additions and 58 deletions
+2 -2
View File
@@ -120,8 +120,8 @@ def get_random_stop_id() -> str | None:
stop_ids_list = list(stop_ids.keys())
stops_string = ", ".join(stop_ids.values())
if len(stop_ids_list) > 1:
logger(f"No station associated as '{assigned_station}', choosing random from similar named stations:")
logger({stops_string})
logger(f"No station associated as '{assigned_station}', choosing random from similar named station")
logger(f"Run `python run main.py stations` to get exact station names")
chosen_stop_id = random.choice(stop_ids_list)
return chosen_stop_id