Отсканируй на iPhone, чтобы установить
Features: Rolls a classic dice
Or Picks a number between custom numbers
Что нового
Версия 1.2
Added updates notifs
Что делает
Действий: 27-
CommentThanks for downloading my shortcut if there is any bugs contact me on discord:demonslayer64#9649 or in the coments
-
Text
-
Set VariableLocalversion
-
URLhttps://shareshortcuts.com/jsonstore/1292/jeff-6077d508c2da9.json
-
Get Contents of URL…
-
Set VariableOnlineversion
-
Nothing
-
If
-
Show Alert
-
Open URLs
-
If
-
Show Alert
-
Show Alert
-
Nothing
-
Choose from Menu
-
Choose from MenuClassic dice
-
Random Number
-
Show Result
-
Choose from MenuCustom dice
-
Ask for InputFirst number
-
Set VariableNum1
-
Nothing
-
Ask for InputSecond number
-
Set VariableNum2
-
Nothing
-
Random Number
-
Show Result
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#include 'actions/web'
#define color green
#define glyph braille
// Thanks for downloading my shortcut if there is any bugs contact me on discord:demonslayer64#9649 or in the coments
const Text = "{\\"version\\":\\"1.2\\"}"
@Localversion = Text
url("https://shareshortcuts.com/jsonstore/1292/jeff-6077d508c2da9.json")
downloadURL()
@Onlineversion
nothing()
if Text != @Onlineversion {
confirm("There is a new update available please download it")
openURL("https://shareshortcuts.com/shortcuts/1292-pick-a-number.html")
} else {
confirm("How to use:\nClassic dice: 1-6\nCustom dice: first num - second num")
confirm("Thanks for downloading my shortcut if there is any bugs contact me on discord:demonslayer64#9649 or in the coments")
nothing()
menu nil {
item "Classic dice":
randomNumber(1, 6)
show()
item "Custom dice":
prompt("First number", "Number")
@Num1
nothing()
prompt("Second number", "Number")
@Num2
nothing()
randomNumber(@Num1, @Num2)
show()
}
}
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от sameerhereiki
Вам также может понравиться
Реклама