ShareShortcuts

Advent

Advent calendar, plays music, gives you a string of text & shows you a GIF!

rednaxela1234
Fazer fork de “Advent”

Criou algo novo a partir deste atalho? Compartilhe como uma derivação: ela se torna um atalho seu, que você gerencia, e as duas páginas têm links entre si para que rednaxela1234 receba o crédito.

  1. 1Obtenha o atalho e altere-o no app Atalhos. Dê a ele um nome próprio.
  2. 2Compartilhe pelo app Atalhos e copie o link do iCloud.
  3. 3Volte aqui, cole o link e descreva o que mudou, por exemplo: “Adicionei uma etapa que usa a Apple Intelligence para personalizar o texto.”
Downloads
54K
Salvo
1
Ações
17
Categoria
Fun
Versão
1.0
Idioma
EN

Advent calendar, plays music, gives you a string of text & shows you a GIF!

Novidades

Versão 1.0

First release

Histórico de versões
1.0 1 de dez de 2020

First release

O que ele faz

17 ações
  1. Date
  2. Format Date
  3. Number
  4. Format Date
  5. If
  6. Show Notification
    It's not December you darn idiot!
  7. If
  8. If
  9. Show Notification
    Sorry wait for the new year :(
  10. If
  11. Dictionary
  12. Get Dictionary Value
  13. Find Music
  14. Play Music
  15. Search Giphy
  16. Show Notification
    …
  17. Quick Look

Ver como código
Beta

Todas as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele funciona.

#include 'actions/calendar'
#define color yellow
#define glyph star

currentDate()
const FormattedDate = formatDate(, "Custom", "dd")
const Number = number(FormattedDate)
const FormattedDate1 = formatDate(, "Custom", "MMM")

if FormattedDate1 != "Dec" {
	showNotification("It's not December you darn idiot!", FormattedDate1)
} else {
	if Number > 25 {
		showNotification("Sorry wait for the new year :(", Number)
	} else {
		const Dictionary = {
			"01": "First of december!",
			"02": "Coming closer!",
			"03": "Dasher \u0026 Dancer",
			"04": "And then comes Ruldoth!",
			"05": "The red nosed…",
			"06": "Christmas,",
			"07": "Reindeer",
			"08": "St Nicholous",
			"09": "Sant Nicklause",
			"10": "Santa Clause",
			"11": "Good tidings to you",
			"12": "You, And your kin",
			"13": "Two front teeth",
			"14": "Deck the halls",
			"15": "Boughs of holly",
			"16": "Falalalala",
			"17": "Falalala",
			"18": "So close…",
			"19": "Closer.",
			"20": "20th",
			"21": "I can see santa clause",
			"22": "Preparing the sleigh",
			"23": "Jingle jangle",
			"24": "Christmas eve",
			"25": "Merry christmas!"
		}
		rawAction("is.workflow.actions.filter.music", {
			"WFContentItemFilter": "",
			"WFContentItemSortProperty": "Random"
		})
		playMusic(Music)
		const GIFs = getGifs()
		showNotification(, false)
		quicklook(GIFs)
	}
}
Abrir no Cherri Playground Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.

Avaliações e comentários

Escrever uma avaliação
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!

Publicidade

Você também pode gostar

Ver tudo
Publicidade