Skip to content

Commit a2c3697

Browse files
authored
Merge pull request #4 from GalaxyBotTeam/dev
Added a bugfix
2 parents 81d4dd3 + 473be8b commit a2c3697

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Handler/ImageClassificationHandler.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ class ImageClassificationHandler {
121121
};
122122

123123
// Send the embed to the Discord Webhook
124-
Utils.sendDiscordWebhook(config.discord.webhook, embedData);
124+
if (isNSFW && !isSexyButNotExplicit) {
125+
Utils.sendDiscordWebhook(config.discord.webhook, embedData);
126+
}
125127

126128
return {
127129
nsfw: isNSFW && !isSexyButNotExplicit,

0 commit comments

Comments
 (0)