Merge branch 'dev'

pull/29/head
Matthew 2020-07-19 18:42:33 -04:00
commit 5919e1f9dd
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 9 additions and 9 deletions

View File

@ -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<NodeJS.Timeout> {
setupDepartmentCodes(client);
async function start() {
export default async function departmentPager(client0: Client): Promise<NodeJS.Timeout> {
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<NodeJS.Ti
}
}
}
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');
interval = setInterval(async () => {
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;
}