Mit dem iPhone scannen, um zu installieren
Simple shortcut to get today's word for the NY Times' Wordle Game. Use this as a last resort if you really give up :)
Neue Funktionen
Version 1.0
First release
Was er macht
14 Aktionen-
Date
-
Format Date
-
Split Text
-
Get Item from List
-
Add to Variable
-
Get Item from List
-
Add to Variable
-
Get Item from List
-
Add to Variable
-
Get Contents of URLhttps://www.nytimes.com/svc/wordle/v2/…-…-….json
-
Get Dictionary from Input
-
Get Dictionary Value
-
Get Dictionary Value
-
Show AlertWordle - …
Als Code ansehen
Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.
#include 'actions/web'
#include 'actions/calendar'
#define color violet
#define glyph closedBook
currentDate()
const FormattedDate = formatTimestamp(, "Custom", "None", "dd/MM/yyyy")
const SplitText = splitText(FormattedDate, "/")
getListItem(SplitText, 0)
@date
getListItem(SplitText, 2)
@month
getListItem(SplitText, 3)
@year
const ContentsOfURL = downloadURL("https://www.nytimes.com/svc/wordle/v2/{@year}-{@month}-{@date}.json")
const Dictionary = getDictionary(ContentsOfURL)
alert("Today's word is \"{}\" by {}", "Wordle - {}")
In Cherri Playground öffnen
Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.
Bewertungen und Rezensionen
Rezension schreiben–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Werbung
Das gefällt dir vielleicht auch
Werbung