Advertisement
Guest User

Untitled

a guest
Apr 28th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.93 KB | None | 0 0
  1. # Guts of this BOT.
  2. from operator import *
  3.  
  4. from time import *
  5.  
  6. from tictactoe import *
  7.  
  8. from main import *
  9.  
  10. from hangman import *
  11.  
  12. from random import *
  13.  
  14.  
  15. command_list = ["command_list", "system_commands", "ABC", "numbergame", "More to be added!"]
  16. system_commands_list = "systemcheck", "shutdown", "forceshutdown"
  17. usernames = ("Busy_Developer", "Admin")
  18. passwords = ("secretpassword", "editing")
  19.  
  20. def forceshutdown():
  21. print egtgyueyiuh
  22. return
  23.  
  24.  
  25. # noinspection PyUnreachableCode
  26. def commandsender_andchecker(sub=None):
  27. print "Type a command:"
  28. commandanswer = raw_input()
  29. if commandanswer == "command_list":
  30. print(command_list)
  31. commandsender_andchecker()
  32. return;
  33. else:
  34. if commandanswer == "system_commands":
  35. print "Info: To manage your own account contact xFlight#2969 on Discord!"
  36. print "Username:"
  37. user = raw_input()
  38. print "Password:"
  39. password = raw_input()
  40. logged_in = "no"
  41. if logged_in == "no":
  42. if user in usernames:
  43. if password in passwords:
  44.  
  45. print "Welcome, " + user + "!"
  46. print "-----------------------"
  47. print " Commands"
  48. print "-----------------------"
  49. print(system_commands_list)
  50. commandsender_andchecker()
  51. return
  52. else:
  53. print "Invalid Username or Password."
  54. commandsender_andchecker()
  55. return
  56. else:
  57. print "Invalid Username or Password."
  58. commandsender_andchecker()
  59. return
  60. return
  61. else:
  62. print "Welcome, " + user + "!"
  63. print "-----------------------"
  64. print " Commands"
  65. print "-----------------------"
  66. print(system_commands_list)
  67. commandsender_andchecker()
  68.  
  69. return;
  70. else:
  71. if commandanswer == "tictactoe":
  72.  
  73. commandsender_andchecker()
  74. return;
  75. else:
  76. if commandanswer == "shutdown":
  77. print "Shutting Down."
  78. print "Shutting Down.."
  79. print "Shutting Down..."
  80. print "Shut down. To restart hit the 'Enter' key."
  81. fghoihdiouhjuhjilj = raw_input()
  82. fghoihdiouhjuhjilj == "placeholder"
  83. commandsender_andchecker()
  84. return;
  85. else:
  86. if commandanswer == "calculator":
  87. print "Select a operation:"
  88. print "1: Add"
  89. print "2: Subtract"
  90. print "3: Multiply"
  91. print "4: Divide"
  92. operation = input("Enter choice (1/2/3/4): ")
  93. number1 = int(input("Enter first number: "))
  94. number2 = int(input("Enter second number: "))
  95. if operation == 1:
  96. print "The answer is:"
  97. print add(number1, number2)
  98. commandsender_andchecker()
  99. return;
  100. if operation == 2:
  101. print "The answer is:"
  102. print sub(number1, number2)
  103. commandsender_andchecker()
  104. return;
  105. if operation == 3:
  106. print "The answer is:"
  107. print mul(number1, number2)
  108. commandsender_andchecker()
  109. return;
  110. if operation == 4:
  111. print "The answer is:"
  112. print div(number1, number2)
  113. commandsender_andchecker()
  114. return;
  115. else:
  116. commandsender_andchecker()
  117. return;
  118. else:
  119. if commandanswer == "numbergame":
  120. print "Think of a number from 1 - 5. I will guess it! Hit enter to continue!"
  121. uiuyiuhkyui = raw_input()
  122. numberforgame = randint(1, 5)
  123. print "Is this your number?:"
  124. print numberforgame
  125. numbergameanswer2 = raw_input()
  126. numbergameanswer2.lower()
  127. if numbergameanswer2 == "yes":
  128. print "Yay! I won!"
  129. commandsender_andchecker()
  130. return;
  131. if numbergameanswer2 == "no":
  132. print "Aww.. You won."
  133. commandsender_andchecker()
  134. return;
  135. else:
  136. if commandanswer == "forceshutdown":
  137. print "WARNING: FORCESHUTDOWN MAY MAKE YOU LOSE CHANGES!!"
  138. print " "
  139. print "Are you sure?"
  140. forceshutdownanswer = raw_input()
  141. forceshutdownanswer.lower()
  142. if forceshutdownanswer == "yes":
  143. forceshutdown()
  144. return
  145. else:
  146. commandsender_andchecker()
  147. return
  148.  
  149. return
  150. else:
  151.  
  152. if commandanswer == "NumberTrick":
  153. print "Think of a number."
  154. sleep(3)
  155. print "Double that number,"
  156. sleep(3)
  157. print "Add 10."
  158. sleep(3)
  159. print "Divide that number by 2."
  160. sleep(3)
  161. print "Subtract the number your first thought of."
  162. sleep(3)
  163. print "Your number is 5."
  164. sleep(3)
  165. commandsender_andchecker()
  166. return
  167. else:
  168. print "Error: Invalid command."
  169. commandsender_andchecker()
  170. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement