Отсканируй на iPhone, чтобы установить
Advent calendar, plays music, gives you a string of text & shows you a GIF!
Что нового
Версия 1.0
First release
Что делает
Действий: 17-
Date
-
Format Date
-
Number
-
Format Date
-
If
-
Show NotificationIt's not December you darn idiot!
-
If
-
If
-
Show NotificationSorry wait for the new year :(
-
If
-
Dictionary
-
Get Dictionary Value
-
Find Music
-
Play Music
-
Search Giphy
-
Show Notification…
-
Quick Look
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#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)
}
}
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Вам также может понравиться
Реклама