change Misc category pts for staff

master
Matthew 2022-09-02 13:54:46 -04:00
parent 04e0dfe6c1
commit fff98867c7
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 3 additions and 1 deletions

View File

@ -104,7 +104,7 @@ export default async function calculateScore(client: Client): Promise<NodeJS.Tim
const activityTotal = messageCountTotal;
activity = Math.floor(Math.log1p(activityTotal) * 12);
if (activity > (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<NodeJS.Tim
if (judgements?.length > 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<NodeJS.Tim
await start();
interval = setInterval(async () => {
await start();
// 1 hour
}, 3600000);
return interval;
}