Advertisement
Guest User

Untitled

a guest
Aug 7th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.21 KB | None | 0 0
  1.  
  2. import getpass
  3. import conversationtool
  4. from subprocess import call
  5. from time import sleep
  6.  
  7. print("\nV 0.0.2 | by A.V.I Technology 2017-2018")
  8. print("DEVs : Ghost\n")
  9. print("\nEnter Command :")
  10. print("Aviable Commands :\n\nStart - Starts System\nShutdown - Stops A.V.I Main\n")
  11. user =input("Username:\n")
  12. while True:
  13.     command = input("Command:\n ")
  14.     command = command.lower()
  15.     print(command)
  16.     if command == "start":
  17.       p=("null")
  18.       pas=("Deathdragon")
  19.       while p!=pas:
  20.           p=getpass.getpass("Enter Password: ")
  21.       print("\nAccepted")
  22.       print("Welcome "+user)
  23.       print("\nLoading A.V.I | Threading-Modul...")
  24.  
  25.       print("\nLoading A.V.I | Networking-Modul...")
  26.  
  27.       print("\nLoading A.V.I | Neural-Network...")
  28.  
  29.       print("\nStarting Conversation-Modul...")
  30.       print("Open new Terminal Session...\n")
  31.       cmd = "konsole --hold -e \"/usr/bin/python3 /home/ghost/PycharmProjects/AVI/conversationtool.pyconversationtool.py\" &"
  32.       call(cmd.split(" "))
  33.       sleep(2)
  34.       print("Conversation-Modul Loaded")
  35.  
  36.     elif command == "shutdown":
  37.         print("\nShutdown System")
  38.         break
  39.     else:
  40.         print("Command Fail - Retype Command: ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement