summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-10-01 17:02:34 -0700
committerFuwn <[email protected]>2025-10-01 17:02:34 -0700
commit08086980fbe5c3f441642b934b5babc3228e8434 (patch)
tree6b6083b58e42b5b8d07392de354115ce8e7baebd /packages
parentfix(listeners:moderationAgent): Update prompt and handling (diff)
downloadumabotdiscord-08086980fbe5c3f441642b934b5babc3228e8434.tar.xz
umabotdiscord-08086980fbe5c3f441642b934b5babc3228e8434.zip
feat(listeners:mediaModeration): Update match requirements
Diffstat (limited to 'packages')
-rw-r--r--packages/gateway/src/listeners/mediaModeration.ts13
1 files changed, 2 insertions, 11 deletions
diff --git a/packages/gateway/src/listeners/mediaModeration.ts b/packages/gateway/src/listeners/mediaModeration.ts
index 36c4e74..0570026 100644
--- a/packages/gateway/src/listeners/mediaModeration.ts
+++ b/packages/gateway/src/listeners/mediaModeration.ts
@@ -38,19 +38,10 @@ export const handleMediaModeration = (client: Client) => {
if (matches.length === 0)
continue;
-
- const hasExplicitContent = matches.some(match => {
- const matchItem = match as unknown as IQDBSearchResultItem & { type: "Explicit" | "Ero" };
- return matchItem.type === "Explicit" || matchItem.type === "Ero"
- }
- );
+ await message.delete();
- if (hasExplicitContent) {
- await message.delete();
-
- return;
- }
+ return;
} catch (error) {
console.error("Error processing image with IQDB:", error);
}