Compare commits

...
2 Commits
Author SHA1 Message Date
nelsbrock 574f3764fb update dependencies 2025-10-25 22:26:34 +02:00
nelsbrock fe9f00c014 make some adjustments to the discord embed format 2025-10-25 22:24:27 +02:00
3 changed files with 506 additions and 436 deletions
Generated
+503 -431
View File
File diff suppressed because it is too large Load Diff
-1
View File
@@ -1 +0,0 @@
-# **Hinweis:** Die aus dem RSS-Feed von zuginfo.nrw stammenden Beginn- und Endzeiten scheinen oft inakkurat zu sein und sind daher mit Vorsicht zu genießen.
+3 -4
View File
@@ -121,13 +121,12 @@ impl DisbahnClient {
.thumbnail(icon_url) .thumbnail(icon_url)
.colour(Self::icon_name_to_colour(icon)) .colour(Self::icon_name_to_colour(icon))
.description(description) .description(description)
.field("Beginn:", format!("<t:{validity_begin}:F>"), true) .field("Beginn:", format!("<t:{validity_begin}:f>"), true)
.field("Ende:", format!("<t:{validity_end}:F>"), true) .field("Ende:", format!("<t:{validity_end}:f>"), true)
.field("", include_str!("hint.txt"), false)
.timestamp(pub_datetime) .timestamp(pub_datetime)
.footer( .footer(
CreateEmbedFooter::new( CreateEmbedFooter::new(
"Quelle: https://zuginfo.nrw/ \u{2013} Alle Angaben ohne Gewehr \u{1F52B}", "Quelle: zuginfo.nrw \u{2013} Alle Angaben ohne Gewehr \u{1F52B}",
) )
.icon_url(FOOTER_ICON_URL), .icon_url(FOOTER_ICON_URL),
); );