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.url}\n" \
|
||||
f"护照: {item.passport}\n" \
|
||||
f"Email: {item.mail}\n" \
|
||||
f"First Name: {item.first_name}\n" \
|
||||
f"Last Name: {item.last_name}\n"
|
||||
f"邮件: {item.mail}\n" \
|
||||
f"姓名: {item.last_name} {item.first_name}\n"
|
||||
|
||||
|
||||
def main():
|
||||
# initialize discord
|
||||
print("init discord done")
|
||||
# wait for discord to start up
|
||||
# time.sleep(10)
|
||||
_accepted_appointments = read_mails_and_find_confirmation_contacts()
|
||||
for item in _accepted_appointments:
|
||||
send_message(create_message_from_item(item))
|
||||
|
||||
Reference in New Issue
Block a user