Last active
April 17, 2020 07:12
-
-
Save bastienbot/c2552450d55341d4a503a09250e547fd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start: | |
say "👋 Salut ! Je suis Confibot, je suis ici pour donner la patate🥔 pendant le confinement." | |
say Typing(2000) | |
say "Je te donne un programme de sport sur mesure !" | |
if (!choix) { | |
goto choix | |
} else { | |
goto video | |
} | |
choix: | |
say Typing(2000) | |
say "Tout d’abord avant de commencer, dis moi, tu préfères te muscler…" | |
say Button("Le haut du corps 💪", accepts=["le haut", "haut"]) as btnHC | |
say Button("Le bas du corps 🦵") as btnBC | |
hold | |
if (event match btnHC) { | |
remember choix = "haut" | |
goto video | |
} else if (event match btnBC) { | |
remember choix = "bas" | |
goto video | |
} else { | |
say "Je suis pas certain d'avoir le programme parfait pour se muscler **{{event}}** 🙀" | |
goto choix | |
} | |
video: | |
say Typing(2000) | |
say "Voici ton programme d'aujourd'hui pour le **{{choix}}** du corps:" | |
if (choix == "haut") { | |
say Video("https://www.youtube.com/watch?v=HqP4z8uvT08") | |
} else if (choix == "bas") { | |
say Video("https://www.youtube.com/watch?v=3bxihqPKF08") | |
} else { | |
goto choix | |
} | |
goto end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment