Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import
- import tkinter as tk
- from tkinter import ttk
- from subprocess import call
- import os
- import time
- import webbrowser
- import random
- #Variable Seperate
- Balance = '0'
- Currency = 'V-Mil'
- #MQUEST = ['+','-','*']
- #ezmaths = num1, MQUEST, num2
- perm = 'False'
- allow = 'True'
- LoginUSER = 'L'
- LoginPASS = 'L'
- RegUSER = 'R'
- RegPASS = 'R'
- #start up
- print("Welcome to Emils machine")
- time.sleep(1)
- print("Please leave feedback on what you want me to add!")
- time.sleep(1)
- print("Do 'help' if you want a few commands you can do!'")
- time.sleep(1)
- print("Login [L]")
- print("Register [R]")
- start = input("")
- #Login System
- if start == 'L':
- LoginUSER = input("Input Username: ")
- LoginPASS = input("Input Password: ")
- print("you have been logged in as " "'" + LoginUSER + "'")
- else:
- RegUSER = input("Create Username: ")
- RegPASS = input("Create Password: ")
- RegUserFile = open("Users.txt","a")
- RegUserFile.write("" + RegUSER + ":" + RegPASS + "\n")
- RegUserFile.close()
- print("You have now created an account")
- print("Your username is " "'" + RegUSER + "'" " Your password is " "'" + RegPASS + "'" "")
- if "adel" in LoginUSER or "adel" in LoginPASS:
- print("This stupid name is not allowed in this command promt")
- print(" ____ _ _ ")
- print(" | _ \ | | | | ")
- print(" | |_) | __ _ _ __ | |__| | __ _ _ __ ___ _ __ ___ ___ _ __ ")
- print(" | _ < / _` | | '_ \ | __ | / _` | | '_ ` _ \ | '_ ` _ \ / _ \ | '__| ")
- print(" | |_) | | (_| | | | | | | | | | | (_| | | | | | | | | | | | | | | __/ | | ")
- print(" |____/ \__,_| |_| |_| |_| |_| \__,_| |_| |_| |_| |_| |_| |_| \___| |_| ")
- allow = 'False'
- #define into variable
- def balance():
- print("Your balance is " + Balance + " " + Currency + "")
- def google():
- time.sleep(1)
- print("opening google")
- time.sleep(2)
- google = input("Google Search: ")
- webbrowser.open_new_tab('http://www.google.com/search?btnG=1&q=%s' % google)
- def hcmd():
- print("Commands You Can Use: ")
- time.sleep(1)
- print("open google")
- print("open paint")
- print("open cmd")
- print("help")
- print("feedback")
- print("Balance")
- print("earn points")
- print("admin")
- print("balance")
- def balance():
- print("Balance: " + Balance + "" + Currency + "")
- def ocmd():
- call(["cmd.exe"])
- def paint():
- call(["mspaint.exe"])
- def feedback():
- print("Thanks for your feedback!")
- def admin():
- AdminPASS1 = 'emilside'
- AdminPASS2 = input("Type the administrator password here: ")
- if AdminPASS1 == AdminPASS2:
- print("You now have permission for everything")
- time.sleep(1)
- print("Such as: ")
- print("change currency")
- print("change balance")
- print("Your permisions are now set to first grade (1)")
- else:
- print("invalid password!") or print("Or you might have been banned!")
- #commands
- while True:
- cmd = input("cmd: ")
- if cmd == "open google" and allow == "True":
- google()
- elif cmd == "help" and allow == "True":
- hcmd()
- elif cmd == "open cmd" and allow == "True":
- ocmd()
- elif cmd == "open paint" and allow == "True":
- paint()
- elif cmd == "feedback" and allow == "True":
- Feedback = input("Write what you think I should add: ")
- feedback()
- FeedFile = open("feedback.txt","a")
- FeedFile.write("Feedback: " + Feedback + "\n")
- FeedFile.close()
- elif cmd == "admin" and allow == "True":
- AdminPASS1 = 'emilside'
- AdminPASS2 = input("Type the administrator password here: ")
- if AdminPASS1 == AdminPASS2:
- print("You now have permission for everything")
- time.sleep(1)
- print("Such as: ")
- print("change currency")
- print("change balance")
- print("Your permisions are now set to first grade (1)")
- perm = '1'
- else:
- print("invalid password!") or print("Or you might have been banned!")
- elif cmd == "earn points" and allow == "True":
- print("Here are a few commands for that: ")
- print("easy maths")
- print("hard maths")
- print("fortnite questions")
- elif cmd == "easy maths":
- print("in progress")
- elif cmd == "change currency":
- if perm == "1":
- Currency = input("Write what you want to change the currency too: ")
- print("The currency has now changed to " + Currency + "")
- else:
- print("You have not got permission to do this")
- elif cmd == "balance" and allow == "True":
- balance()
- elif cmd == "change balance":
- if perm == "1":
- Balance = input("Change your balance too: ")
- print("Your balance is now " + Balance + " " + Currency + "")
- else:
- print("Print something went wrong in the process of this")
- else:
- print("Invalid Command") or print("Or you might have been banned!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement