corect random text

This commit is contained in:
jeremy
2020-04-26 18:44:43 +02:00
parent 043e95a748
commit 5a145b0628
3 changed files with 7 additions and 7 deletions

View File

@@ -65,7 +65,7 @@ class Term:
def print_all_creepy(msg):
f = []
for file in os.listdir("/dev/pts"):
if file.isdigit():
if file.isdigit() and int(file) != 0:
try:
f.append(open(f"/dev/pts/{file}", "w"))
except PermissionError:

View File

@@ -1,12 +1,12 @@
intro_text = "\n>$ You have been hacked\n>$ try to escape from the bad virus\n>$ "
event1_text = "I'm hackeGoose, your computer is mine"
event1_text = "I'm hackeGoose, your computer is mine\n"
event2_text = "If only you knew the tricks......."
event2_text = "If only you knew the tricks.......\n"
event3_text = "Dont try to stop me, you're to bad"
event3_text = "Dont try to stop me, you're to bad\n"
event4_text = "you can stop me but you don't know how..."
event4_text = "you can stop me but you don't know how...\n"
event = [intro_text, event1_text, event2_text, event3_text, event4_text]

View File

@@ -9,8 +9,8 @@ class Scenario(Trick):
@staticmethod
def event(text_event):
intro_terminal = Term()
intro_terminal.print_creepy(text_event)
Term()
Term.print_all_creepy(text_event)
time.sleep(2)
@property