-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTimernator.py
103 lines (76 loc) · 2.59 KB
/
Timernator.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
import os,time,datetime,asyncio,winsound
os.system('title TIMERNATOR')
text_colour=(
'\x1b[31m', # index 0 = red
'\x1b[32m', # index 1 = green
'\x1b[33m' # index 2 = yellow
)
special_fx=(
f'{text_colour[0]}TIMERNATOR', # index 0 = special_fx
'SPEECH OFF', # index 1 = special_fx
'cls','\n','\n\n',' ' # index 2 = special_fx
)
time_fx=(
f'{text_colour[1]}12 Hour {text_colour[0]}%I\
{text_colour[1]}:{text_colour[0]}%M{text_colour[1]}\
:{text_colour[0]}%S {text_colour[1]}%p', # index 0 = time_fx
f'{text_colour[1]}24 Hour {text_colour[0]}%H{text_colour[1]}:\
{text_colour[0]}%M{text_colour[1]}:{text_colour[0]}%S', # index 1 = time_fx
f'{text_colour[2]}%A %B {text_colour[0]}%d{text_colour[1]}:\
{text_colour[0]}%Y',f'{text_colour[2]}Week{text_colour[1]}:\
{text_colour[0]}%U {text_colour[2]}Day{text_colour[1]}:\
{text_colour[0]}%j' # index 2 = time_fx
)
text_fx=(
f'{text_colour[2]}You\'re TIMERNATED!', # index 0 = text_fx
f'{text_colour[2]}Look at me if you want the time.', # index 1 = text_fx
f'{text_colour[2]}I need your hours, your minutes and your seconds.', # index 2 = text_fx
f'{text_colour[2]}I swear I will tell the time.', # index 3 = text_fx
f'{text_colour[2]}I cannot self timernate.' # index 4 = text_fx
)
redundant_code1='''
print(
special_fx[3],
special_fx[5]*1,
special_fx[0],
special_fx[4],
special_fx[5]*1,
text_fx[x]
)
'''
redundant_code2='''
print(
special_fx[3],
special_fx[5]*1,
timer.strftime(time_fx[y])
)
'''
while True:
for x in range(4):
os.system(special_fx[2])
winsound.PlaySound(
special_fx[1],winsound.SND_ASYNC
)
exec(redundant_code1)
for y in range(4):
timer=datetime.datetime.now()
exec(redundant_code2)
time.sleep(1)
os.system(special_fx[2])
winsound.PlaySound(
special_fx[1],winsound.SND_ASYNC
)
exec(redundant_code1)
for y in range(4):
timer=datetime.datetime.now()
exec(redundant_code2)
time.sleep(1)
os.system(special_fx[2])
winsound.PlaySound(
special_fx[1],winsound.SND_ASYNC
)
exec(redundant_code1)
for y in range(4):
timer=datetime.datetime.now()
exec(redundant_code2)
time.sleep(1)