|
1 | | -# Kind of a sudo command but its name is super and it gives use you "supercommands" that a normal user can't use. Password is SECRETCOMMAND |
| 1 | +# Kind of a sudo command but its name is super and it gives use you "supercommands" that a normal user can't use. Password is etsugenfgr. |
2 | 2 | def supercommand(): |
3 | | - password = "SECRETCOMMAND" |
4 | | - enter = input("What's the secret password? Say it:") |
| 3 | + password = "etsugenfgr" |
| 4 | + enter = input("Password:") |
5 | 5 | if enter == password: |
6 | | - # If the password is correct, you can use the commands above: |
| 6 | + print("You are now in super mode.") |
7 | 7 | while True: |
8 | | - command = input("You're in super mode. Type any supercommand:").strip().lower() |
9 | | - if command == "type": |
| 8 | + command = input().strip().lower() |
| 9 | + if command == "": |
| 10 | + continue |
| 11 | + elif command == "supertype": |
10 | 12 | typed_text = input("Type something:") |
11 | | - return typed_text |
| 13 | + print(typed_text + typed_text) |
12 | 14 | elif command == "superexit": |
13 | 15 | return "Superexiting..." |
| 16 | + elif command == "superinfo": |
| 17 | + print(""" |
| 18 | + PPPP y y TTTTT EEEE RRRR M M |
| 19 | + P P y y T E R R MM MM |
| 20 | + PPPP y T EEE RRRR M M M |
| 21 | + P y T E R R M M |
| 22 | + P y T EEEE R R M M SUPER MODE |
| 23 | + |
| 24 | + PyTerm Supermode v1.0 |
| 25 | + Python: v3.8 |
| 26 | + Version Created: Twenty-Third April 2024 |
| 27 | + Initial Day Of Creation: Twenty-Third April 2024 |
| 28 | + Application: PyTerm v0.1-beta |
| 29 | + |
| 30 | + """) |
14 | 31 | elif command == "superhelp": |
15 | | - return "type, superexit, superhelp," |
| 32 | + print("Commands: supertype, superexit, superinfo, superhelp. Add-ons: -h") |
| 33 | + elif command == "supertype -h": |
| 34 | + print("Supertype command represents everything that you wrote twice. It is similar to type command in basic-user mode but this one is showing different output.") |
| 35 | + elif command == "superexit -h": |
| 36 | + print("Superexit command is letting you exit from the super mode. It is similar to exit command in basic-user mode but this one is exiting the supermode.") |
| 37 | + elif command == "superinfo -h": |
| 38 | + print("Superinfo command shows you info-data about PyTerm Supermode. It is similar to info command in basic-user mode but this one is showing different info.") |
| 39 | + elif command == "superhelp -h": |
| 40 | + print("Superhelp command shows you all commands you can use in supermode. It is similar to help command in basic-user mode but this one shows different commands.") |
16 | 41 | else: |
17 | | - print("No such command in super mode.") |
| 42 | + print("No such command in supermode.") |
18 | 43 | else: |
19 | | - return "Wrong password! You can't use the super command without the password." |
| 44 | + print("PyTerm error: wrong password.") |
20 | 45 |
|
21 | 46 | def pmdmcalc(): |
22 | 47 | operation = input("hint: + - / *. Type the symbol here: ").strip() |
@@ -61,9 +86,10 @@ def handle_command(command): |
61 | 86 | P y T E R R M M |
62 | 87 | P y T EEEE R R M M |
63 | 88 |
|
64 | | - PyTerm v1.0-stable |
| 89 | + PyTerm v0.1-beta |
65 | 90 | Python: v3.8 |
66 | | - Created: Twenty-Third April 2024 |
| 91 | + Version Created: Twenty-Third April 2024 |
| 92 | + Initial Day Of Creation: Twenty-Third April 2024 |
67 | 93 | Operating System: MacOS |
68 | 94 | """ |
69 | 95 | # PMDM command lets you use PMDMcalc directly from PyTerm. |
|
0 commit comments