You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
836 B
27 lines
836 B
import codecs |
|
from mail_util import checkFor_unkownContacts, sendEmails |
|
from chatbot import sendMessage |
|
from config import today, yesterday |
|
|
|
def getResponseText(): |
|
with open('responses/bookingResponse.txt', 'r') as file: |
|
data = file.read() |
|
return data |
|
|
|
|
|
contacts = checkFor_unkownContacts() |
|
testContacts = [] |
|
testContacts.append('e.neug@icloud.com') |
|
responseText = getResponseText() |
|
print(responseText) |
|
sendEmails(responseText, testContacts) |
|
|
|
chatTextIntro = f"Hey! ich wurde Heute ({today}) ausgeführt und suche für Gestern({yesterday}) nach neuen Kontakten" |
|
chatTextAmmount = f"Ich habe {len(testContacts)} neue Kontakte gefunden" |
|
chatTextNone = f"Ich habe keine neuen Kontakte gefunden" |
|
|
|
sendMessage(chatTextIntro) |
|
if len(testContacts) > 0: |
|
sendMessage(chatTextAmmount) |
|
else: |
|
sendMessage(chatTextNone)
|
|
|