Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.81 KB | None | 0 0
  1. #LonlyBotBuilder
  2.  
  3. zero=0
  4. menu=1
  5. break=echo
  6. clear
  7. echo Welcome to LonlyBotBuilder
  8. sleep 1
  9. username=Justme
  10.  
  11. while [ $menu -eq 1 ];do
  12.     clear
  13.     read -p "Username: " usrname   
  14.     username="$( sed -n 1p "$PWD/Subsystem/Userdata/$usrname/$usrname.in")"
  15.         sleep 3
  16.         while [[ "$usrname" -eq "$username" ]];do
  17.             echo Username is currect!
  18.  
  19.             read -p "Password: " passwrd
  20.             password="$( sed -n 2p "$PWD/Subsystem/Userdata/$usrname/$usrname.in")"
  21.             echo Password is currect!
  22.             sleep 3
  23.                 while [[ "$passwrd" -eq "$password" ]];do
  24.  
  25.                     welcomemsg="$( sed -n 3p "$PWD/Subsystem/Userdata/$usrname/$usrname.in")"
  26.                     echo Welcome "$welcomemsg"$username!
  27.                     sleep 5
  28.                     break=break
  29.                    
  30.                 done
  31.  
  32.                     if [[ "$passwrd" -ne "$password" ]];then
  33.                         echo Password does not match..
  34.                         sleep 3
  35.                     fi
  36.         done
  37.         if [[ "$usrname" -ne "$username" ]];then
  38.             #statements
  39.         echo User not registrated..
  40.             sleep 3
  41.             clear
  42.         fi
  43. $break
  44. done
  45.     #Other Settings
  46.     botname=Laura
  47.     botage=16
  48. #Loaded'n'Set
  49.     while [ $zero -eq 0 ];do
  50.     read -p "$username: " Question
  51.         #add a last see funktion so it dosnt say goodmorning more then twice
  52.         case "$quistion" in
  53.             hello*)
  54.             echo Hello $username :-)
  55.             ;;
  56.  
  57.             goodmorning*)
  58.             echo Goodmorning $username :-)
  59.             echo Did you sleep well?
  60.             read -p "$username: " deeperquestion
  61.                 case "$deeperquestion" in
  62.                     yes*)
  63.                         echo Great!
  64.                         echo (thinking...)
  65.                         sleep 3
  66.                         clear
  67.                         echo Great!
  68.                         echo Did you have any dreams?
  69.                         read -p "$username: " deeperquestion
  70.                         case "$deeperquestion" in
  71.                             yes*)
  72.                                 echo Was it a good dream?
  73.                                 read -p "$username: " deeperquestion
  74.                                 case "$deeperquestion" in deeperquestion
  75.                                     yes or yeah*)  
  76.                                     echo ok
  77.                                 ecas
  78.                 ecas
  79.             ;;
  80.         ecas
  81.  
  82.  
  83.  
  84.  
  85.     done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement