From ade901e6be6a5dbb1a77ba3973ce2932b422a749 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Fri, 4 Jun 2021 23:01:35 -0400 Subject: [PATCH] add auto create/delete IAMs --- src/intervals/departmentPager.ts | 112 +++++++++++++++++++++++++++++-- 1 file changed, 107 insertions(+), 5 deletions(-) diff --git a/src/intervals/departmentPager.ts b/src/intervals/departmentPager.ts index 0f7a1e8..7fbcca3 100644 --- a/src/intervals/departmentPager.ts +++ b/src/intervals/departmentPager.ts @@ -90,31 +90,37 @@ export default async function departmentPager(client: Client): Promise { chan.createMessage(`__**Pager Number Creation**__\nYour individual pager number has been automatically created. Your number (PN) is ${randomPagerNumber}.`); + chan.createMessage(`__**Library of Code sp-us | Identity Access Management**__\n__Reset Password__\n\nPlease click on the link below to change your IAM password.\n${passwordTicket.ticket}`); }); } else if (!pager && member.roles.includes('701454855952138300')) { // Supervisors @@ -173,10 +195,26 @@ export default async function departmentPager(client: Client): Promise { chan.createMessage(`__**Pager Number Creation**__\nYour individual pager number has been automatically created. Your number (PN) is ${randomPagerNumber}.`); + chan.createMessage(`__**Library of Code sp-us | Identity Access Management**__\n__Reset Password__\n\nPlease click on the link below to change your IAM password.\n${passwordTicket.ticket}`); }); } else if (!pager && member.roles.includes('701454780828221450')) { // Technicians @@ -199,10 +237,26 @@ export default async function departmentPager(client: Client): Promise { chan.createMessage(`__**Pager Number Creation**__\nYour individual pager number has been automatically created. Your number (PN) is ${randomPagerNumber}.`); + chan.createMessage(`__**Library of Code sp-us | Identity Access Management**__\n__Reset Password__\n\nPlease click on the link below to change your IAM password.\n${passwordTicket.ticket}`); }); } else if (!pager && member.roles.includes('455972169449734144')) { // Moderators @@ -225,10 +279,26 @@ export default async function departmentPager(client: Client): Promise { chan.createMessage(`__**Pager Number Creation**__\nYour individual pager number has been automatically created. Your number (PN) is ${randomPagerNumber}.`); + chan.createMessage(`__**Library of Code sp-us | Identity Access Management**__\n__Reset Password__\n\nPlease click on the link below to change your IAM password.\n${passwordTicket.ticket}`); }); } else if (!pager && member.roles.includes('453689940140883988')) { // Core Team @@ -251,10 +321,26 @@ export default async function departmentPager(client: Client): Promise { chan.createMessage(`__**Pager Number Creation**__\nYour individual pager number has been automatically created. Your number (PN) is ${randomPagerNumber}.`); + chan.createMessage(`__**Library of Code sp-us | Identity Access Management**__\n__Reset Password__\n\nPlease click on the link below to change your IAM password.\n${passwordTicket.ticket}`); }); } else if (!pager && member.roles.includes('701481967149121627')) { // Associates @@ -277,10 +363,26 @@ export default async function departmentPager(client: Client): Promise { chan.createMessage(`__**Pager Number Creation**__\nYour individual pager number has been automatically created. Your number (PN) is ${randomPagerNumber}.`); + chan.createMessage(`__**Library of Code sp-us | Identity Access Management**__\n__Reset Password__\n\nPlease click on the link below to change your IAM password.\n${passwordTicket.ticket}`); }); } }