Escaneie com o iPhone para instalar
This is a chatbot like no other... in shortcuts
Novidades
Versão 1.1
Fixed bug that wouldnt let it work
O que ele faz
17 ações-
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
Ver como código
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/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")
}
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
Mais de toxbytes
Você também pode gostar
Publicidade