From 833066e2fcea35696e962e45f3cbe4a37251a789 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Tue, 6 Jul 2021 00:07:24 -0400 Subject: [PATCH] last interval fix --- src/intervals/departmentPager.ts | 50 ++++++++++++++++---------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/src/intervals/departmentPager.ts b/src/intervals/departmentPager.ts index ef4e0cd..67da803 100644 --- a/src/intervals/departmentPager.ts +++ b/src/intervals/departmentPager.ts @@ -1,6 +1,6 @@ /* eslint-disable no-continue */ /* eslint-disable no-await-in-loop */ -import { Member, TextableChannel } from 'eris'; +import { Member, PrivateChannel, TextableChannel } from 'eris'; import { Client } from '../class'; let interval: NodeJS.Timeout; @@ -155,6 +155,8 @@ 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 & Account Management**__\n__Reset Password__\n\nPlease click on the link below to change your IAM password.\n${passwordTicket.ticket}`); - }); + channel.createMessage(`__**Library of Code sp-us | Identity & Account Management**__\n__Reset Password__\n\nPlease click on the link below to change your IAM password.\n${passwordTicket.ticket}`); } + channel.createMessage(`__**Pager Number Creation**__\nYour individual pager number has been automatically created. Your number (PN) is ${randomPagerNumber}.`); logNewPager(client, randomPagerNumber, member); } else if (!pager && member.roles.includes('701454855952138300')) { // Supervisors @@ -200,6 +200,8 @@ 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 & Account Management**__\n__Reset Password__\n\nPlease click on the link below to change your IAM password.\n${passwordTicket.ticket}`); - }); + channel.createMessage(`__**Library of Code sp-us | Identity & Account Management**__\n__Reset Password__\n\nPlease click on the link below to change your IAM password.\n${passwordTicket.ticket}`); } + channel.createMessage(`__**Pager Number Creation**__\nYour individual pager number has been automatically created. Your number (PN) is ${randomPagerNumber}.`); logNewPager(client, randomPagerNumber, member); } else if (!pager && member.roles.includes('701454780828221450')) { // Technicians @@ -246,6 +246,8 @@ 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 & Account Management**__\n__Reset Password__\n\nPlease click on the link below to change your IAM password.\n${passwordTicket.ticket}`); - }); + channel.createMessage(`__**Library of Code sp-us | Identity & Account Management**__\n__Reset Password__\n\nPlease click on the link below to change your IAM password.\n${passwordTicket.ticket}`); } + channel.createMessage(`__**Pager Number Creation**__\nYour individual pager number has been automatically created. Your number (PN) is ${randomPagerNumber}.`); logNewPager(client, randomPagerNumber, member); } else if (!pager && member.roles.includes('455972169449734144')) { // Moderators @@ -292,6 +292,8 @@ 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 & Account Management**__\n__Reset Password__\n\nPlease click on the link below to change your IAM password.\n${passwordTicket.ticket}`); - }); + channel.createMessage(`__**Library of Code sp-us | Identity & Account Management**__\n__Reset Password__\n\nPlease click on the link below to change your IAM password.\n${passwordTicket.ticket}`); } + channel.createMessage(`__**Pager Number Creation**__\nYour individual pager number has been automatically created. Your number (PN) is ${randomPagerNumber}.`); logNewPager(client, randomPagerNumber, member); } else if (!pager && member.roles.includes('453689940140883988')) { // Core Team @@ -338,6 +338,8 @@ 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 & Account Management**__\n__Reset Password__\n\nPlease click on the link below to change your IAM password.\n${passwordTicket.ticket}`); - }); + channel.createMessage(`__**Library of Code sp-us | Identity & Account Management**__\n__Reset Password__\n\nPlease click on the link below to change your IAM password.\n${passwordTicket.ticket}`); } + channel.createMessage(`__**Pager Number Creation**__\nYour individual pager number has been automatically created. Your number (PN) is ${randomPagerNumber}.`); logNewPager(client, randomPagerNumber, member); } else if (!pager && member.roles.includes('701481967149121627')) { // Associates @@ -384,6 +384,8 @@ 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 & Account Management**__\n__Reset Password__\n\nPlease click on the link below to change your IAM password.\n${passwordTicket.ticket}`); - }); + channel.createMessage(`__**Library of Code sp-us | Identity & Account Management**__\n__Reset Password__\n\nPlease click on the link below to change your IAM password.\n${passwordTicket.ticket}`); } + channel.createMessage(`__**Pager Number Creation**__\nYour individual pager number has been automatically created. Your number (PN) is ${randomPagerNumber}.`); logNewPager(client, randomPagerNumber, member); } }