-
Notifications
You must be signed in to change notification settings - Fork 0
/
autoSite.py
84 lines (83 loc) · 2.83 KB
/
autoSite.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
#gonna have a doc that has the set list of values. Defaulting at the standard 8 45-minute-periods.
#Block periods (Wed and Thu) will be 1 hour and 30 minutes by default, except 5th/4th on block, as they are used for lunch.
#this doc will serve as the customization menu, making the values typed define the required values in this file.
from datetime import time
import autoSiteSystems as ass
from time import sleep
if ass.dotw == 3:
if ass.is_time_between(time(8,00), time(9,30)):
print("It's 1st Hour.")
ass.firstHour()
elif ass.is_time_between(time(9,35), time(11,5)):
print("It's 3rd Hour.")
ass.thirdHour()
elif ass.is_time_between(time(11,10), time(13,20)):
print("It's 5th Hour.")
ass.fifthHour()
elif ass.is_time_between(time(13,30), time(15,00)):
print("It's 7th Hour.")
ass.sevHour()
elif ass.rint > time(15,00):
print("It's after school!")
sleep(5)
elif ass.rint < time(8,00):
print("It's before school.")
sleep(5)
else:
print("It's passing period!")
sleep(5)
if ass.dotw == 4:
if ass.is_time_between(time(8,00), time(9,30)):
print("It's 1st Hour.")
ass.firstHour()
elif ass.is_time_between(time(9,35), time(11,5)):
print("It's 3rd Hour.")
ass.thirdHour()
elif ass.is_time_between(time(11,10), time(13,20)):
print("It's 5th Hour.")
ass.fifthHour()
elif ass.is_time_between(time(13,30), time(15,00)):
print("It's 7th Hour.")
ass.sevHour()
elif ass.rint > time(15,00):
print("It's after school!")
sleep(5)
elif ass.rint < time(8,00):
print("It's before school.")
sleep(5)
else:
print("It's passing period!")
sleep(5)
else:
if ass.is_time_between(time(8,00), time(8,45)):
print("It's 1st Hour.")
ass.firstHour()
elif ass.is_time_between(time(8,50), time(9,35)):
print("It's 2nd Hour.")
ass.secHour()
elif ass.is_time_between(time(9,40), time(10,25)):
print("It's 3rd Hour.")
ass.thirdHour()
elif ass.is_time_between(time(10,30), time(11,15)):
print("It's AI!")
elif ass.is_time_between(time(11,20), time(12,28)):
print("It's 4th Hour.")
ass.fourHour()
elif ass.is_time_between(time(12,33), time(13,19)):
print("It's 5th Hour.")
ass.fifthHour()
elif ass.is_time_between(time(13,22), time(14,10)):
print("It's 6th Hour.")
ass.sixthHour()
elif ass.is_time_between(time(14,13), time(15,1)):
print("It's 7th Hour.")
ass.sevHour()
elif ass.rint > time(15,1):
print("It's after school!")
sleep(5)
elif ass.rint < time(7,49):
print("It's before school.")
sleep(5)
else:
print("It's passing period!")
sleep(5)