mirror of
https://github.com/kaaninchen/Gleiswechsel.git
synced 2026-09-17 16:52:47 +00:00
transitous rewrite: only send announcement embed when no voice announcement
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user