Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Guts of this BOT.
- from operator import *
- from time import *
- from tictactoe import *
- from main import *
- from hangman import *
- from random import *
- command_list = ["command_list", "system_commands", "ABC", "numbergame", "More to be added!"]
- system_commands_list = "systemcheck", "shutdown", "forceshutdown"
- usernames = ("Busy_Developer", "Admin")
- passwords = ("secretpassword", "editing")
- def forceshutdown():
- print egtgyueyiuh
- return
- # noinspection PyUnreachableCode
- def commandsender_andchecker(sub=None):
- print "Type a command:"
- commandanswer = raw_input()
- if commandanswer == "command_list":
- print(command_list)
- commandsender_andchecker()
- return;
- else:
- if commandanswer == "system_commands":
- print "Info: To manage your own account contact xFlight#2969 on Discord!"
- print "Username:"
- user = raw_input()
- print "Password:"
- password = raw_input()
- logged_in = "no"
- if logged_in == "no":
- if user in usernames:
- if password in passwords:
- print "Welcome, " + user + "!"
- print "-----------------------"
- print " Commands"
- print "-----------------------"
- print(system_commands_list)
- commandsender_andchecker()
- return
- else:
- print "Invalid Username or Password."
- commandsender_andchecker()
- return
- else:
- print "Invalid Username or Password."
- commandsender_andchecker()
- return
- return
- else:
- print "Welcome, " + user + "!"
- print "-----------------------"
- print " Commands"
- print "-----------------------"
- print(system_commands_list)
- commandsender_andchecker()
- return;
- else:
- if commandanswer == "tictactoe":
- commandsender_andchecker()
- return;
- else:
- if commandanswer == "shutdown":
- print "Shutting Down."
- print "Shutting Down.."
- print "Shutting Down..."
- print "Shut down. To restart hit the 'Enter' key."
- fghoihdiouhjuhjilj = raw_input()
- fghoihdiouhjuhjilj == "placeholder"
- commandsender_andchecker()
- return;
- else:
- if commandanswer == "calculator":
- print "Select a operation:"
- print "1: Add"
- print "2: Subtract"
- print "3: Multiply"
- print "4: Divide"
- operation = input("Enter choice (1/2/3/4): ")
- number1 = int(input("Enter first number: "))
- number2 = int(input("Enter second number: "))
- if operation == 1:
- print "The answer is:"
- print add(number1, number2)
- commandsender_andchecker()
- return;
- if operation == 2:
- print "The answer is:"
- print sub(number1, number2)
- commandsender_andchecker()
- return;
- if operation == 3:
- print "The answer is:"
- print mul(number1, number2)
- commandsender_andchecker()
- return;
- if operation == 4:
- print "The answer is:"
- print div(number1, number2)
- commandsender_andchecker()
- return;
- else:
- commandsender_andchecker()
- return;
- else:
- if commandanswer == "numbergame":
- print "Think of a number from 1 - 5. I will guess it! Hit enter to continue!"
- uiuyiuhkyui = raw_input()
- numberforgame = randint(1, 5)
- print "Is this your number?:"
- print numberforgame
- numbergameanswer2 = raw_input()
- numbergameanswer2.lower()
- if numbergameanswer2 == "yes":
- print "Yay! I won!"
- commandsender_andchecker()
- return;
- if numbergameanswer2 == "no":
- print "Aww.. You won."
- commandsender_andchecker()
- return;
- else:
- if commandanswer == "forceshutdown":
- print "WARNING: FORCESHUTDOWN MAY MAKE YOU LOSE CHANGES!!"
- print " "
- print "Are you sure?"
- forceshutdownanswer = raw_input()
- forceshutdownanswer.lower()
- if forceshutdownanswer == "yes":
- forceshutdown()
- return
- else:
- commandsender_andchecker()
- return
- return
- else:
- if commandanswer == "NumberTrick":
- print "Think of a number."
- sleep(3)
- print "Double that number,"
- sleep(3)
- print "Add 10."
- sleep(3)
- print "Divide that number by 2."
- sleep(3)
- print "Subtract the number your first thought of."
- sleep(3)
- print "Your number is 5."
- sleep(3)
- commandsender_andchecker()
- return
- else:
- print "Error: Invalid command."
- commandsender_andchecker()
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement