Skip to content

Commit f8b70d7

Browse files
Add files via upload
1 parent 3e8bf8a commit f8b70d7

File tree

8 files changed

+1012
-0
lines changed

8 files changed

+1012
-0
lines changed

Activity Logs/Jun-18-39-45-Log.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
SCP Foundation Terminal v2.1.3
2+
06/04/23:Jun:18:39:50
3+
<<< ACTIVITY LOG >>>
4+
BEGIN LOG >>>
5+
6+
7+
Welcome Dr Bob
8+
Enter terminal command:
9+
help
10+
Displaying terminal instructions.
11+
Enter terminal command:
12+
exit
13+
END LOG >>>

chronicle_engine.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import os
2+
import sys
3+
import time
4+
import datetime
5+
6+
date = datetime.datetime.now().strftime("%h:%H:%M:%S")
7+
act_log = str(date).replace(":", "-") + "-Log.txt"
8+
9+
#first of all create a folder named Activity Logs
10+
folder = "Activity Logs"
11+
save_path = os.path.join(folder, act_log)
12+
13+
def chronicle_log(write, incog):
14+
#enabled activity logging
15+
if incog == 0:
16+
print_save = sys.stdout
17+
f = open(save_path, 'a', encoding="utf-8")
18+
sys.stdout = f
19+
y = write
20+
print(y)
21+
sys.stdout = print_save
22+
f.close()
23+
24+
#disabled activity logging
25+
elif incog == 1:
26+
print_save = sys.stdout
27+
f = open(save_path, 'a', encoding="utf-8")
28+
sys.stdout = f
29+
y = write
30+
pass
31+
#activity logging diabled
32+
sys.stdout = print_save
33+
f.close()
34+
35+
def clean_slate():
36+
mydir = "Activity Logs"
37+
txtfiles = [f for f in os.listdir(mydir) if f.endswith(".txt")]
38+
for f in txtfiles:
39+
os.remove(os.path.join(mydir, f))
40+
41+
time.sleep(1)
42+
#deletes all activity log files in the folder

lockout.py

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
import time
2+
import os
3+
import colorama
4+
from speech_engine import speak
5+
from colorama import Fore, Back
6+
colorama.init(autoreset=True)
7+
8+
9+
def progress(percent=0, width=30):
10+
symbol = width * percent // 100
11+
blanks = width - symbol
12+
print('\r[ ', Fore.GREEN + symbol * "█", blanks*' ', ' ]', f' {percent:.0f}%', sep='', end='', flush=True)
13+
14+
15+
def lock_protocol():
16+
os.system('cls')
17+
18+
for x in range(9):
19+
print("")
20+
21+
print(Fore.RED + '''
22+
▀▀█▀▀ █▀▀▀ █▀▀█ █▀▄▀█ ▀█▀ █▄ █ █▀▀█ █ █ █▀▀▀█ █▀▀█ █ ▄▀ █▀▀▀ █▀▀▄
23+
█ █▀▀▀ █▄▄▀ █ █ █ █ █ █ █ █▄▄█ █ █ █ █ █ █▀▄ █▀▀▀ █ █
24+
█ █▄▄▄ █ █ █ █ ▄█▄ █ ▀█ █ █ █▄▄█ █▄▄█ █▄▄▄█ █▄▄█ █ █ █▄▄▄ █▄▄▀''')
25+
print("")
26+
print(" ", Back.RED + " <<< EMERGENCY LOCKOUT PROTOCOL INITIATED >>> ")
27+
for y in range(2):
28+
speak("EMERGENCY LOCKOUT PROTOCOL INITIATED")
29+
30+
print("")
31+
me = input(Fore.RED + " Enter O5 authorization code: ")
32+
if me == "200211":
33+
print("")
34+
print(Fore.YELLOW + " Bypassing lockout protocol")
35+
for i in range(101):
36+
progress(i)
37+
time.sleep(0.01)
38+
39+
print()
40+
print(Fore.GREEN + " Lockout protocol disabled")
41+
print("")
42+
print(Fore.GREEN + " O5 authorization code accepted")
43+
speak("lockout protocol disabled")
44+
45+
os.system('cls')
46+
print("")
47+
print(" ", Fore.BLACK + Back.GREEN + " TERMINAL UNLOCKED ")
48+
speak("TERMINAL UNLOCKED")
49+
50+
else:
51+
print("")
52+
print(" ", Fore.BLACK + Back.RED + " INVALID AUTHORIZATION CODE ")
53+
speak("Invalid authorization code")
54+
time.sleep(7200)

0 commit comments

Comments
 (0)