Skip to content

Instantly share code, notes, and snippets.

@ChaiyachetU
Created September 9, 2021 11:20
Show Gist options
  • Save ChaiyachetU/3c26e816c8013a04c46ab0f144b192d7 to your computer and use it in GitHub Desktop.
Save ChaiyachetU/3c26e816c8013a04c46ab0f144b192d7 to your computer and use it in GitHub Desktop.
function main() {
// get unread emails from priority contact list
const priorityUnreadEmails = getPriorityUnreadEmails();
// if priority unread emails is not empty send emails message to line notify
if (priorityUnreadEmails.length !== 0) {
priorityUnreadEmails.forEach(unreadEmail => sendMessageToLineNotify(unreadEmail, lineNotifyToken));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment