Skip to content

Commit

Permalink
Helptickets: Support automatic punishments with Artemis (#8669)
Browse files Browse the repository at this point in the history
  • Loading branch information
mia-pi-git committed Feb 24, 2022
1 parent 03b7e40 commit c9f0347
Show file tree
Hide file tree
Showing 5 changed files with 926 additions and 23 deletions.
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Expand Up @@ -8,6 +8,7 @@ server/artemis/* @mia-pi-git
server/chat-plugins/friends.ts @mia-pi-git
server/chat-plugins/github.ts @mia-pi-git
server/chat-plugins/hosts.ts @AnnikaCodes
server/chat-plugins/helptickets*.ts @mia-pi-git
server/chat-plugins/mafia.ts @HoeenCoder
server/chat-plugins/othermetas.ts @KrisXV
server/chat-plugins/quotes.ts @mia-pi-git @KrisXV
Expand Down
9 changes: 9 additions & 0 deletions server/artemis/local.ts
Expand Up @@ -75,6 +75,15 @@ export const PM = new ProcessManager.StreamProcessManager(module, () => new Arte

export class LocalClassifier {
static readonly PM = PM;
static readonly ATTRIBUTES: Record<string, unknown> = {
sexual_explicit: {},
severe_toxicity: {},
toxicity: {},
obscene: {},
identity_attack: {},
insult: {},
threat: {},
};
static classifiers: LocalClassifier[] = [];
static destroy() {
for (const classifier of this.classifiers) classifier.destroy();
Expand Down

0 comments on commit c9f0347

Please sign in to comment.