Discord Antinsfw
Easily check nsfw images using your discord bot! Uses discord.js v13.
Getting Started
- Getting Started - Installation - UsageInstallation
```bash npm install discord-antinsfw ```Usage
```js 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:```js {
ok: Boolean,
isNSFW: Boolean,
detections: Array<String>,
point: Number,
confidence: String
}
```
Got some errors/bugs?
Join here for help.