change Misc category pts for staff
parent
04e0dfe6c1
commit
fff98867c7
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue