Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automod: Censor images #573

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open

Conversation

TheYande
Copy link
Contributor

Uses tesseract.js to get image text and moderates it like its the message content

tested by me and callum by spamming a bunch of images with automodmute and it did well

image:
image

Copy link

@yandemcsd yandemcsd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note to self: do this

modules/automod/automod.ts Outdated Show resolved Hide resolved
modules/automod/automod.ts Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
@cobaltt7
Copy link
Member

first rough pass, still dunno what i think of the idea

@cobaltt7 cobaltt7 added this to the 3.0.0 milestone Mar 12, 2024
.filter(Boolean);

const imageTextResults = await Promise.all(imageTextPromises);
return imageTextResults as string[];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You shouldn't need this as here i don't think

@cobaltt7
Copy link
Member

Merge conflicts

@cobaltt7 cobaltt7 self-requested a review March 14, 2024 23:17
@yandemcsd
Copy link

Merge conflicts

my most hated 2 words

@cobaltt7 cobaltt7 modified the milestones: 3.0.0, 3.1.0 Mar 26, 2024
@cobaltt7 cobaltt7 modified the milestones: 3.1.0, 3.2.0 Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants