Merge branch 'master' of gitlab.libraryofcode.org:engineering/communityrelations

pull/29/head
Matthew 2020-11-08 01:00:12 -05:00
commit 03f3e38fc4
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
3 changed files with 9 additions and 3 deletions

View File

@ -18,14 +18,18 @@ export default class AutoMod extends Moderation {
} }
public run(message: Message, member: Member) { public run(message: Message, member: Member) {
/*
try { try {
if (member) if (member)
} }
*/
} }
public warn(message: Message, member: Member) { public warn(message: Message, member: Member) {
/*
try { try {
await message.channel.createMessage(`__**`) await message.channel.createMessage(`__**`)
} }
*/
} }
} }

View File

@ -1,5 +1,7 @@
import { Client, RichEmbed } from '.'; import { Client, RichEmbed } from '.';
export default class Report { export default class Report {
public static async soft(userID: string) public static async soft(userID: string) {
//
}
} }

View File

@ -83,9 +83,9 @@ export default class Score_Hist extends Command {
if (testDate > new Date()) hardInquiries++; if (testDate > new Date()) hardInquiries++;
}); });
data += `__CommScore™:__ ${totalScore}\n__Activity:__ ${activityScore}\n__Roles:__ ${roleScore}\n__Moderation:__ ${moderationScore}\n__Cloud Services:__ ${cloudServicesScore}\n__Other:__ ${otherScore}\n__Misc:__ ${miscScore}\n\n__Hard Inquiries:__ ${hardInquiries}\n__Soft Inquiries:__ ${hist.report.softInquiries?.length ?? '0'}`; data += `__CommScore™:__ ${totalScore}\n__Activity:__ ${activityScore}\n__Roles:__ ${roleScore}\n__Moderation:__ ${moderationScore}\n__Cloud Services:__ ${cloudServicesScore}\n__Other:__ ${otherScore}\n__Misc:__ ${miscScore}\n\n__Hard Inquiries:__ ${hardInquiries}\n__Soft Inquiries:__ ${hist.report.softInquiries?.length ?? '0'}`;
}
histArray.push({ name: moment(hist.date).calendar(), value: data }); histArray.push({ name: moment(hist.date).calendar(), value: data });
} }
}
const stat = { const stat = {
totalMean: mean(totalArray), totalMean: mean(totalArray),
@ -235,9 +235,9 @@ export default class Score_Hist extends Command {
if (testDate > new Date()) hardInquiries++; if (testDate > new Date()) hardInquiries++;
}); });
data += `__CommScore™:__ ${totalScore}\n__Activity:__ ${activityScore}\n__Roles:__ ${roleScore}\n__Moderation:__ ${moderationScore}\n__Cloud Services:__ ${cloudServicesScore}\n__Other:__ ${otherScore}\n__Misc:__ ${miscScore}\n\n__Hard Inquiries:__ ${hardInquiries}\n__Soft Inquiries:__ ${hist.report.softInquiries?.length ?? '0'}`; data += `__CommScore™:__ ${totalScore}\n__Activity:__ ${activityScore}\n__Roles:__ ${roleScore}\n__Moderation:__ ${moderationScore}\n__Cloud Services:__ ${cloudServicesScore}\n__Other:__ ${otherScore}\n__Misc:__ ${miscScore}\n\n__Hard Inquiries:__ ${hardInquiries}\n__Soft Inquiries:__ ${hist.report.softInquiries?.length ?? '0'}`;
}
histArray.push({ name: moment(hist.date).calendar(), value: data }); histArray.push({ name: moment(hist.date).calendar(), value: data });
} }
}
const stat = { const stat = {
totalMean: mean(totalArray), totalMean: mean(totalArray),