Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import getpass
- import glob
- import os
- import string
- def start():
- print("Sayris-AI - V 0.0.1\n")
- with open("pass.txt") as f:
- lines = f.readlines()[65]
- pw = lines.rstrip('\n')
- p = "null"
- while pw != p:
- p = getpass.getpass("Enter Passphrase: ")
- print("\n:::: Passphrase Accepted ::::\n")
- def Module_Loader():
- print("Load Module List :\n")
- os.chdir("./Modules")
- for file in glob.glob("*.py"):
- print(file)
- def Start_Modules():
- print("Start Modules...")
- while True:
- command = input("Enter a Command : \n").lower()
- print(command)
- if command == "start":
- print("Call Command")
- Start_Modules()
- elif command == "exit":
- print("Shutdown")
- break
- else:
- print("Wrong Command , please Retype")
- start()
- while True:
- lowchoice = input("Enter Command: ")
- lowchoice.lower()
- if lowchoice == "start":
- print("Starts Modules")
- Module_Loader()
- Start_Modules()
- elif lowchoice == "exit":
- print("shutting down")
- break
- else:
- print("wrong command please Retype")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement