Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.86 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.  
  10. while [ $menu -eq 1 ];do
  11.     clear
  12.     read -p "Username: " usrname   
  13.     username="$( sed -n 1p "$PWD/Subsystem/Userdata/$usrname/$usrname.in")"
  14.         while [[ "$usrname" -eq "$username" ]];do
  15.             echo Username is currect!
  16.  
  17.             read -p "Password: " passwrd
  18.             password="$( sed -n 2p "$PWD/Subsystem/Userdata/$usrname/$usrname.in")"
  19.             echo Password is currect!
  20.             sleep 0.5
  21.                 while [[ "$passwrd" -eq "$password" ]];do
  22.  
  23.                     welcomemsg="$( sed -n 3p "$PWD/Subsystem/Userdata/$usrname/$usrname.in")"
  24.                     clear
  25.                     echo Welcome "$welcomemsg"$username!
  26.                     sleep 5
  27.                     break=break
  28.                 $break
  29.                 done
  30.  
  31.                     if [[ "$passwrd" -ne "$password" ]];then
  32.                         echo Password does not match..
  33.                         sleep 3
  34.                     fi
  35.         $break
  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. break=echo
  46.     #Other Settings
  47.     botname=Laura
  48.     botage=16
  49. #Loaded'n'Set
  50.     while [[ $zero -eq 0 ]];do
  51.     read -p "$username: " question
  52.         #add a last see funktion so it dosnt say goodmorning more then twice
  53.         case "$question" in
  54.             hello* | Hello*)
  55.             echo "Hello $username :-)"
  56.             ;;
  57.             hello | Hello)
  58.             echo Hello $username
  59.             ;;
  60.  
  61.             goodmorning* | Goodmornig* )
  62.             echo "Goodmorning $username :-)"
  63.             echo Did you sleep well?
  64.             read -p "$username: " deeperquestion
  65.                 case "$deeperquestion" in
  66.                     yes* | Yes* | yes | Yes )
  67.                         echo Great!
  68.                         echo "(thinking...)"
  69.                         sleep 3
  70.                         clear
  71.                         echo Great!
  72.                         echo Did you have any dreams?
  73.                         read -p "$username: " deeperquestion
  74.                         case "$deeperquestion" in
  75.                             yes* | Yes* | yes | Yes )
  76.                                 echo "How nice to hear :-)"
  77.                                 echo Was it a good dream or was they good dreams?
  78.                                 read -p "$username: " deeperquestion
  79.                                 case "$deeperquestion" in
  80.                                     yes* | Yes* | yes | Yes )
  81.                                         echo What was it or they about?
  82.                                         read -p "$username: " deeperquestion
  83.                                             echo How nice :-D
  84.                                     ;&
  85.                                     no* | No* | no | No )
  86.                                         echo Oh, that sucks!
  87.                                         echo Wanna talk about it?
  88.                                         read -p "$username: " deeperquestion
  89.                                         case "$deeperquestion" in
  90.                                             yes* | Yes* | yes | Yes )
  91.                                                 echo "I am all ears :-)"
  92.                                                 read -p "$username: " deeperquestion
  93.                                                 case "$deeperquestion" in
  94.                                                     *)
  95.                                                     echo "Oh, that dosnt sound good :-("
  96.                                                     read -p ""
  97.                                                     ;&
  98.                                                 esac
  99.                                             ;&
  100.                                             no* | No* | no | No | n* | N* )
  101.                                                     echo "Allright, just think of me and it will pass :-)"
  102.                                                     read -p ""
  103.                                             ;&
  104.                                         esac
  105.                                     ;&
  106.                                 esac
  107.                             ;&
  108.                             no* | No* | no | No )
  109.                                 echo "Allright :-)"
  110.                                 read -p ""
  111.                             ;&
  112.                         esac
  113.                     ;& 
  114.                 esac
  115.     done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement