Scan med din iPhone for at installere
It’s still very basic, but good. By the way, don’t forget to comment so I can know what you did with it! Also, don’t forget to like!
Nyheder
Version 1.0
First release
Hvad den gør
18 handlinger-
Show Result
-
Ask for Input[Siri show:"What is your name?" say:"May I have your first and last name, please?"]
-
Set Variablename
-
Ask for Input[Siri show:"We're quickly gathering information to create a more accurate and reliable experience." say:"Hi, Mr./Ms. …. What device did you purchase?"]
-
If
-
Set Variabledevice
-
If
-
Replace Text
-
Set Variabledevice
-
Ask for Input[Siri show:"We're quickly gathering information to create a more accurate and reliable experience." say:"Ok,…, what’s the problem with your …?"]
-
If
-
Show Result
-
Ask for InputDo you know where the Side Button is?
-
If
-
Show Result
-
If
-
Show Result
-
Show Result
Vis som kode
Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.
#include 'actions/text'
#define color green
#define glyph person
show("Welcome to an [Siri show:\"automated experience powered by Siri.\" say:\"automated experience powered by Siri!\"][Siri pauseForSeconds:0.3]")
prompt("[Siri show:\"What is your name?\" say:\"May I have your first and last name, please?\"]")
@name
const ProvidedInput = prompt("[Siri show:\"We're quickly gathering information to create a more accurate and reliable experience.\" say:\"Hi, Mr./Ms. {@name}. What device did you purchase?\"]")
if ProvidedInput beginsWith "i" {
@device = ProvidedInput
} else {
replaceText("An", "", ProvidedInput)
@device
}
prompt("[Siri show:\"We're quickly gathering information to create a more accurate and reliable experience.\" say:\"Ok,{@name}, what’s the problem with your {@device}?\"]", "Text")
if contains "not" || contains "n't" {
show("I'm sorry about that. We're going to make a restart to your {@device}.")
const ProvidedInput1 = prompt("Do you know where the Side Button is?")
if ProvidedInput1 contains "ye" {
show("Alright, can you press and hold that on your {@device}, along with the Volume Up button?[Siri pauseForSeconds:3]\n\nAlright, you should see a menu with a \"slide to power off\". Slide that. We're going to wait about 20 seconds. [Siri pauseForSeconds:9]\n\nThat should be enough time. Now try pressing and holding the Side Button on your {@device}, OK?\n\n")
} else {
show("It's the button on the right side of your {@device}.[Siri pauseForSeconds:0.4]")
show("Now that you know where the Side Button is, can you press and hold that on your {@device}, along with the Volume Up button?[Siri pauseForSeconds:3]\n\nAlright, you should see a menu with a \"slide to power off\". Slide that. We're going to wait about 20 seconds. [Siri pauseForSeconds:9]\n\nThat should be enough time. Now try pressing and holding the Side Button on your {@device}, OK?\n\n")
}
}
Åbn i Cherri Playground
Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.
Bedømmelser og anmeldelser
Skriv en anmeldelse–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ingen anmeldelser endnu. Vær den første!
Annonce
Mere fra stardj1999
Du vil måske også kunne lide
Annonce