discord-antinsfw
v1.0.3
Published
Easily check nsfw images using your discord bot! Uses discord.js v13.
Readme
Discord Antinsfw
Easily check nsfw images using your discord bot! Uses discord.js v13.
Getting Started
Installation
npm install discord-antinsfwUsage
const { AntiNsfwClient } = require('discord-antinsfw');
const Discord = require('discord.js');
const client = new Discord.Client({
intents: 32767,
partials: ['MESSAGE', 'CHANNEL', 'REACTION'],
});
const nsfw = new AntiNsfwClient();
client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}!`);
});
client.on('messageCreate', (message) => {
nsfw.init(message);
});
client.login('whats this?');
nsfw.on('nsfw', (message, data) => {
console.log(data);
//do stuff
});Output data:
{
ok: Boolean,
isNSFW: Boolean,
detections: Array<String>,
point: Number,
confidence: String
}Got some errors/bugs?
Join here for help.
