25 lines
800 B
Python
Executable File
25 lines
800 B
Python
Executable File
from src.mail.mail_confirmation import read_mails_and_find_confirmation_contacts
|
|
from src.pojo import ReserveResultPojo
|
|
|
|
|
|
def create_message_from_item(item: ReserveResultPojo):
|
|
return (f"\n\n================================================================\n"
|
|
f"约会信息\n"
|
|
f"电话: {item.phone}\n"
|
|
f"链接: {item.url}\n"
|
|
f"护照: {item.passport}\n"
|
|
f"邮件: {item.mail}\n"
|
|
f"姓名: {item.last_name} {item.first_name}\n")
|
|
|
|
|
|
def main():
|
|
# initialize discord
|
|
print("init discord done")
|
|
_accepted_appointments = read_mails_and_find_confirmation_contacts(mode='default')
|
|
# for item in _accepted_appointments:
|
|
# send_message(create_message_from_item(item))
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|