From fff98867c784791087660f32a1e29920f287ba5d Mon Sep 17 00:00:00 2001 From: Matthew R Date: Fri, 2 Sep 2022 13:54:46 -0400 Subject: [PATCH] change Misc category pts for staff --- src/intervals/score.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/intervals/score.ts b/src/intervals/score.ts index 496188d..f837530 100644 --- a/src/intervals/score.ts +++ b/src/intervals/score.ts @@ -104,7 +104,7 @@ export default async function calculateScore(client: Client): Promise (Math.log1p(getTotalMessageCount(client)) * 12)) activity = Math.floor((Math.log1p(getTotalMessageCount(client)) * 12)); - if (member.roles.includes('446104438969466890') || member.roles.includes('701481967149121627')) staff = 20; + if (member.roles.includes('446104438969466890') || member.roles.includes('701481967149121627')) staff += 5; const response = await CloudServicesUtil.fetchAccountStatus(member.user.id, client.config.internalKey); if (response || response?.found === true) { @@ -160,6 +160,7 @@ export default async function calculateScore(client: Client): Promise 0) { for (const judgement of judgements) { switch (judgement.severity) { + // eslint-disable-next-line default-case-last default: break; case 0: @@ -198,6 +199,7 @@ export default async function calculateScore(client: Client): Promise { await start(); + // 1 hour }, 3600000); return interval; }