zustellen
Private
Content
13 lines{{ $marke := messageOption "marke" }}
{{ $all := dbGet "filiale" "postEntries" }}
{{ $match := where $all "marke" $marke | first }}
{{ if not $match }}
❌ Kein Brief mit Marke **{{ $marke }}** gefunden.
{{ else }}
{{/* Sende DM an Empfänger */}}
{{ dm (toUserID $match.empfaenger) (print "📨 Du hast Post: ||" $match.nachricht "||") }}
{{/* Lösche Eintrag aus Filiale-Liste */}}
{{ $new := where $all "marke" "!=" $marke }}
{{ dbSet "filiale" "postEntries" $new }}
✅ Brief **{{ $marke }}** zugestellt.
{{ end }}Raw JSON
{
"id": 2294036,
"created_at": "2025-05-28T09:15:24.000Z",
"tag_name": "zustellen",
"nsfw": false,
"owner_id": "700414696691335241",
"uses": 0,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "",
"hidden": false,
"guild_id": "1374001357601767454",
"sharer": "700414696691335241",
"content": "{{ $marke := messageOption \"marke\" }}\n{{ $all := dbGet \"filiale\" \"postEntries\" }}\n{{ $match := where $all \"marke\" $marke | first }}\n{{ if not $match }}\n ❌ Kein Brief mit Marke **{{ $marke }}** gefunden.\n{{ else }}\n {{/* Sende DM an Empfänger */}}\n {{ dm (toUserID $match.empfaenger) (print \"📨 Du hast Post: ||\" $match.nachricht \"||\") }}\n {{/* Lösche Eintrag aus Filiale-Liste */}}\n {{ $new := where $all \"marke\" \"!=\" $marke }}\n {{ dbSet \"filiale\" \"postEntries\" $new }}\n ✅ Brief **{{ $marke }}** zugestellt.\n{{ end }}",
"embed": "{}",
"last_fetched": "2026-10-20T19:58:39.697Z"
}