From e54c89231a443d548f095c47228ec903675847af Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 19 Jul 2020 18:42:17 -0400 Subject: [PATCH] pager fixes --- src/intervals/departmentPager.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/intervals/departmentPager.ts b/src/intervals/departmentPager.ts index cd3eaa4..fed1b38 100644 --- a/src/intervals/departmentPager.ts +++ b/src/intervals/departmentPager.ts @@ -75,9 +75,9 @@ function logNewPager(client: Client, num: string, member: Member): void { channel.createMessage(`__**'${member.user.username}#${member.user.discriminator}' assigned to pager number '${num}'.**__`); } -export default async function departmentPager(client: Client): Promise { - setupDepartmentCodes(client); - async function start() { +export default async function departmentPager(client0: Client): Promise { + setupDepartmentCodes(client0); + async function start(client: Client) { const acknowledgements = require(`${__dirname}/../configs/acknowledgements.json`); function resolveStaffInformation(id: string) { return acknowledgements.find((m) => m.id === id); @@ -368,13 +368,13 @@ export default async function departmentPager(client: Client): Promise { - client.util.signale.time('pagerint'); - await start(); - client.util.signale.timeEnd('pagerint'); + client0.util.signale.time('pagerint'); + await start(client0); + client0.util.signale.timeEnd('pagerint'); }, 300000); return interval; }