Hello, I try to do if someone type for example "yes" that it continues and say "no" it cancelles, but I get 2 errors
https://prnt.sc/tmf4la
here is the code
# Javascript Tutorial Command! #
options:
p: &3JavaScript &7>
command /discordjavascript [<text>]:
aliases: djs, djavas, djscript, discordjs, djavascript
trigger:
if arg-1 is not set:
send "&cTo start, set the argument to &a(Setup|)"
if arg-1 is "setup":
wait 1 tick
send "{@p} &aYou've started the Discord JavaScript Tutorial!"
wait 2 seconds
send "{@p} Type 'yes' to start, and 'no' to cancel"
if "%first word of message%" is "no":
wait 2 ticks
send "{@p} &cCancelled!"
if "%first word of message%" is "yes":
send "{@p} &aTo start, you need to install the required packages"
wait 5 seconds
send "{@p} &aFirst you need to do type in command promt%nl%'npm init' and fill out the things."
send "{@p} &a Let the 'index.js' stay and fill out!"
send "{@p} &aType 'done' to continue"
if "%first word of message%" is "done":
wait 2 ticks
send "{@p} &aNow you just need to install 'discord.js' by doing:"
send "{@p} &a'npm i discord.js --save'"
wait 5 seconds
send "{@p} &aDone? Type 'done' to continue!"
if "%first word of message%" is "done":
wait 2 seconds
send "{@p} &aNow we start the code!"
wait 1 second
send "{@p} &aTo start off"
https://prnt.sc/tmf4la
here is the code
# Javascript Tutorial Command! #
options:
p: &3JavaScript &7>
command /discordjavascript [<text>]:
aliases: djs, djavas, djscript, discordjs, djavascript
trigger:
if arg-1 is not set:
send "&cTo start, set the argument to &a(Setup|)"
if arg-1 is "setup":
wait 1 tick
send "{@p} &aYou've started the Discord JavaScript Tutorial!"
wait 2 seconds
send "{@p} Type 'yes' to start, and 'no' to cancel"
if "%first word of message%" is "no":
wait 2 ticks
send "{@p} &cCancelled!"
if "%first word of message%" is "yes":
send "{@p} &aTo start, you need to install the required packages"
wait 5 seconds
send "{@p} &aFirst you need to do type in command promt%nl%'npm init' and fill out the things."
send "{@p} &a Let the 'index.js' stay and fill out!"
send "{@p} &aType 'done' to continue"
if "%first word of message%" is "done":
wait 2 ticks
send "{@p} &aNow you just need to install 'discord.js' by doing:"
send "{@p} &a'npm i discord.js --save'"
wait 5 seconds
send "{@p} &aDone? Type 'done' to continue!"
if "%first word of message%" is "done":
wait 2 seconds
send "{@p} &aNow we start the code!"
wait 1 second
send "{@p} &aTo start off"