-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
59 lines (51 loc) · 2.27 KB
/
main.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
from generation.generate_insta_post import generate_instagram_post
from send_email.store_to_notion import create_event_notion
from workshop_information.labs import select_lab
from workshop_information.description import get_description
from workshop_information.datetime_picker import get_date_and_hour
from workshop_information.location import select_location
from workshop_information.classroom import enter_classroom
from workshop_information.name import get_event_name
from send_email.to_garage import send_email_to_garage
from send_email.to_geny import send_email_to_geny
def main():
while True:
lab = select_lab()
event_name = get_event_name()
description = get_description()
date, hour = get_date_and_hour()
location = select_location()
classroom = enter_classroom()
# Print the collected information
print("Workshop Information:")
print(f"Lab: {lab}")
print(f"Event Name: {event_name}")
print(f"Description: {description}")
print(f"Date: {date}")
print(f"Hour: {hour}")
print(f"Location: {location}")
print(f"Classroom: {classroom}")
valid = input("Are the above details correct? (yes/no): ")
if valid.lower() == "yes":
generate_instagram_post(event_name, lab, description, date, hour, location, classroom)
while True:
confirmation = input("Do you want to send the email? (yes/no): ")
if confirmation.lower() == "yes":
# Send email to Geny
#send_email_to_geny(lab, event_name, classroom, location)
# Send email to Garage
#send_email_to_garage(description)
#Store to notion
create_event_notion(name=event_name, lab=lab, date=date, hour=hour, location=location, description=description)
print("Emails sent successfully.")
break
elif confirmation.lower() == "no":
print("Emails not sent.")
break
else:
print("Invalid input. Please enter 'yes' or 'no'.")
break
else:
print("Let's start again.\n")
if __name__ == "__main__":
main()