Отсканируй на iPhone, чтобы установить
This is a chatbot like no other... in shortcuts
Что нового
Версия 1.1
Fixed bug that wouldnt let it work
Что делает
Действий: 17-
CommentType only one word per input it has no memory and type with all lowercase letters
-
Save File
-
Save File
-
File
-
Get Dictionary from Input
-
Ask for InputAsk me something
-
If
-
File
-
Get Dictionary from Input
-
Repeat with Each
-
If
-
Get Dictionary Value
-
Random Number
-
Get Item from List
-
Show Result
-
If
-
Show AlertS O R R Y
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#include 'actions/documents'
#define color green
#define glyph brain
// Type only one word per input it has no memory and type with all lowercase letters
saveFile("/untitled folder/chatbot_responses_full_casual", true)
saveFile("/untitled folder/chatbot_inputs_fixed", true)
const File = file()
const InputList = getDictionary(File)
prompt("Ask me something", false)
if InputList['Values'] contains {
const File1 = file()
const Dictionary = getDictionary(File1)
for _ in InputList['Keys'] {
if @RepeatItem contains {
const DictionaryValue = getValue(Dictionary, @RepeatItem)
const RandomNumber = randomNumber(1, 200)
getListItem(DictionaryValue, RandomNumber)
show()
}
}
} else {
alert("Im not smart enough :(", "S O R R Y")
}
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от toxbytes
Вам также может понравиться
Реклама