Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #LonlyBotBuilder
- zero=0
- menu=1
- break=echo
- clear
- echo Welcome to LonlyBotBuilder
- sleep 1
- username=Justme
- while [ $menu -eq 1 ];do
- clear
- read -p "Username: " usrname
- username="$( sed -n 1p "$PWD/Subsystem/Userdata/$usrname/$usrname.in")"
- sleep 3
- while [[ "$usrname" -eq "$username" ]];do
- echo Username is currect!
- read -p "Password: " passwrd
- password="$( sed -n 2p "$PWD/Subsystem/Userdata/$usrname/$usrname.in")"
- echo Password is currect!
- sleep 3
- while [[ "$passwrd" -eq "$password" ]];do
- welcomemsg="$( sed -n 3p "$PWD/Subsystem/Userdata/$usrname/$usrname.in")"
- echo Welcome "$welcomemsg"$username!
- sleep 5
- break=break
- done
- if [[ "$passwrd" -ne "$password" ]];then
- echo Password does not match..
- sleep 3
- fi
- done
- if [[ "$usrname" -ne "$username" ]];then
- #statements
- echo User not registrated..
- sleep 3
- clear
- fi
- $break
- done
- #Other Settings
- botname=Laura
- botage=16
- #Loaded'n'Set
- while [ $zero -eq 0 ];do
- read -p "$username: " Question
- #add a last see funktion so it dosnt say goodmorning more then twice
- case "$quistion" in
- hello*)
- echo Hello $username :-)
- ;;
- goodmorning*)
- echo Goodmorning $username :-)
- echo Did you sleep well?
- read -p "$username: " deeperquestion
- case "$deeperquestion" in
- yes*)
- echo Great!
- echo (thinking...)
- sleep 3
- clear
- echo Great!
- echo Did you have any dreams?
- read -p "$username: " deeperquestion
- case "$deeperquestion" in
- yes*)
- echo Was it a good dream?
- read -p "$username: " deeperquestion
- case "$deeperquestion" in deeperquestion
- yes or yeah*)
- echo ok
- ecas
- ecas
- ;;
- ecas
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement