transitous rewrite: fix color from API

This commit is contained in:
Kaaninchen
2026-08-16 14:23:56 +02:00
parent 5a2d0bf8d6
commit a4d9cb36f0
3 changed files with 14 additions and 15 deletions
+2 -2
View File
@@ -27,13 +27,13 @@ def build_info_embed() -> discord.Embed:
arrival = format_timestamp_to_dc(trip["arrival"])
embed = discord.Embed(
title = trip["long_name"],
description=f"Abfahrt von {trip["from"]} um {departure}. Ankunft um {arrival}",
description=f"Abfahrt von {trip["station"]} um {departure}. Ankunft um {arrival}",
color = metadata["color"]
)
route_lines = []
for stop_name, stop_arrival in trip["stops"].items():
if stop_name == trip["from"]:
if stop_name == trip["station"]:
route_lines.append(f"**• {stop_name} ({stop_arrival} Uhr)**")
else:
route_lines.append(f"{stop_name} ({stop_arrival} Uhr)")