Advertisement
emil20013

emil2003 newest machine

Dec 6th, 2018
599
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.51 KB | None | 0 0
  1. #import
  2. import tkinter as tk
  3. from tkinter import ttk
  4. from subprocess import call
  5. import os
  6. import time
  7. import webbrowser
  8. import random
  9.  
  10. #Variable Seperate
  11. Balance = '0'
  12. Currency = 'V-Mil'
  13. #MQUEST = ['+','-','*']
  14. #ezmaths = num1, MQUEST, num2
  15. perm = 'False'
  16. allow = 'True'
  17. LoginUSER = 'L'
  18. LoginPASS = 'L'
  19. RegUSER = 'R'
  20. RegPASS = 'R'
  21.  
  22. #start up
  23. print("Welcome to Emils machine")
  24. time.sleep(1)
  25. print("Please leave feedback on what you want me to add!")
  26. time.sleep(1)
  27. print("Do 'help' if you want a few commands you can do!'")
  28. time.sleep(1)
  29. print("Login [L]")
  30. print("Register [R]")
  31. start = input("")
  32.  
  33.  
  34.  
  35. #Login System
  36. if start == 'L':
  37. LoginUSER = input("Input Username: ")
  38. LoginPASS = input("Input Password: ")
  39. print("you have been logged in as " "'" + LoginUSER + "'")
  40. else:
  41. RegUSER = input("Create Username: ")
  42. RegPASS = input("Create Password: ")
  43. RegUserFile = open("Users.txt","a")
  44. RegUserFile.write("" + RegUSER + ":" + RegPASS + "\n")
  45. RegUserFile.close()
  46. print("You have now created an account")
  47. print("Your username is " "'" + RegUSER + "'" " Your password is " "'" + RegPASS + "'" "")
  48.  
  49. if "adel" in LoginUSER or "adel" in LoginPASS:
  50. print("This stupid name is not allowed in this command promt")
  51. print(" ____ _ _ ")
  52. print(" | _ \ | | | | ")
  53. print(" | |_) | __ _ _ __ | |__| | __ _ _ __ ___ _ __ ___ ___ _ __ ")
  54. print(" | _ < / _` | | '_ \ | __ | / _` | | '_ ` _ \ | '_ ` _ \ / _ \ | '__| ")
  55. print(" | |_) | | (_| | | | | | | | | | | (_| | | | | | | | | | | | | | | __/ | | ")
  56. print(" |____/ \__,_| |_| |_| |_| |_| \__,_| |_| |_| |_| |_| |_| |_| \___| |_| ")
  57. allow = 'False'
  58.  
  59.  
  60.  
  61.  
  62. #define into variable
  63.  
  64. def balance():
  65. print("Your balance is " + Balance + " " + Currency + "")
  66.  
  67.  
  68. def google():
  69. time.sleep(1)
  70. print("opening google")
  71. time.sleep(2)
  72. google = input("Google Search: ")
  73. webbrowser.open_new_tab('http://www.google.com/search?btnG=1&q=%s' % google)
  74.  
  75. def hcmd():
  76. print("Commands You Can Use: ")
  77. time.sleep(1)
  78. print("open google")
  79. print("open paint")
  80. print("open cmd")
  81. print("help")
  82. print("feedback")
  83. print("Balance")
  84. print("earn points")
  85. print("admin")
  86. print("balance")
  87.  
  88.  
  89. def balance():
  90. print("Balance: " + Balance + "" + Currency + "")
  91.  
  92.  
  93. def ocmd():
  94. call(["cmd.exe"])
  95.  
  96. def paint():
  97. call(["mspaint.exe"])
  98.  
  99. def feedback():
  100. print("Thanks for your feedback!")
  101.  
  102. def admin():
  103. AdminPASS1 = 'emilside'
  104. AdminPASS2 = input("Type the administrator password here: ")
  105. if AdminPASS1 == AdminPASS2:
  106. print("You now have permission for everything")
  107. time.sleep(1)
  108. print("Such as: ")
  109. print("change currency")
  110. print("change balance")
  111. print("Your permisions are now set to first grade (1)")
  112. else:
  113. print("invalid password!") or print("Or you might have been banned!")
  114.  
  115.  
  116.  
  117. #commands
  118. while True:
  119. cmd = input("cmd: ")
  120. if cmd == "open google" and allow == "True":
  121. google()
  122. elif cmd == "help" and allow == "True":
  123. hcmd()
  124. elif cmd == "open cmd" and allow == "True":
  125. ocmd()
  126. elif cmd == "open paint" and allow == "True":
  127. paint()
  128. elif cmd == "feedback" and allow == "True":
  129. Feedback = input("Write what you think I should add: ")
  130. feedback()
  131. FeedFile = open("feedback.txt","a")
  132. FeedFile.write("Feedback: " + Feedback + "\n")
  133. FeedFile.close()
  134. elif cmd == "admin" and allow == "True":
  135. AdminPASS1 = 'emilside'
  136. AdminPASS2 = input("Type the administrator password here: ")
  137. if AdminPASS1 == AdminPASS2:
  138. print("You now have permission for everything")
  139. time.sleep(1)
  140. print("Such as: ")
  141. print("change currency")
  142. print("change balance")
  143. print("Your permisions are now set to first grade (1)")
  144. perm = '1'
  145. else:
  146. print("invalid password!") or print("Or you might have been banned!")
  147.  
  148. elif cmd == "earn points" and allow == "True":
  149. print("Here are a few commands for that: ")
  150. print("easy maths")
  151. print("hard maths")
  152. print("fortnite questions")
  153. elif cmd == "easy maths":
  154. print("in progress")
  155. elif cmd == "change currency":
  156. if perm == "1":
  157. Currency = input("Write what you want to change the currency too: ")
  158. print("The currency has now changed to " + Currency + "")
  159. else:
  160. print("You have not got permission to do this")
  161. elif cmd == "balance" and allow == "True":
  162. balance()
  163. elif cmd == "change balance":
  164. if perm == "1":
  165. Balance = input("Change your balance too: ")
  166. print("Your balance is now " + Balance + " " + Currency + "")
  167. else:
  168. print("Print something went wrong in the process of this")
  169. else:
  170. print("Invalid Command") or print("Or you might have been banned!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement