format discord confirmation message
This commit is contained in:
@@ -8,16 +8,13 @@ def create_message_from_item(item: ReserveResultPojo):
|
|||||||
f"电话: {item.phone}\n" \
|
f"电话: {item.phone}\n" \
|
||||||
f"链接: {item.url}\n" \
|
f"链接: {item.url}\n" \
|
||||||
f"护照: {item.passport}\n" \
|
f"护照: {item.passport}\n" \
|
||||||
f"Email: {item.mail}\n" \
|
f"邮件: {item.mail}\n" \
|
||||||
f"First Name: {item.first_name}\n" \
|
f"姓名: {item.last_name} {item.first_name}\n"
|
||||||
f"Last Name: {item.last_name}\n"
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
# initialize discord
|
# initialize discord
|
||||||
print("init discord done")
|
print("init discord done")
|
||||||
# wait for discord to start up
|
|
||||||
# time.sleep(10)
|
|
||||||
_accepted_appointments = read_mails_and_find_confirmation_contacts()
|
_accepted_appointments = read_mails_and_find_confirmation_contacts()
|
||||||
for item in _accepted_appointments:
|
for item in _accepted_appointments:
|
||||||
send_message(create_message_from_item(item))
|
send_message(create_message_from_item(item))
|
||||||
|
|||||||
Reference in New Issue
Block a user