Escanea con tu iPhone para instalar
Simple shortcut to get today's word for the NY Times' Wordle Game. Use this as a last resort if you really give up :)
Novedades
Versión 1.0
First release
Qué hace
14 acciones-
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 - …
Ver como código
Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.
#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 - {}")
Abrir en Cherri Playground
Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.
Valoraciones y reseñas
Escribe una reseña–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!
Publicidad
También te puede gustar
Publicidad