discord-antinsfw

Easily check nsfw images using your discord bot! Uses discord.js v13.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
discord-antinsfw
1.0.32 years ago2 years agoMinified + gzip package size for discord-antinsfw in KB

Readme

Discord Antinsfw
Easily check nsfw images using your discord bot! Uses discord.js v13.

Getting Started

- Getting Started - Installation - Usage

Installation

```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.