# discord-antinsfw

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

Latest version **1.0.3** (published 2021-12-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install discord-antinsfw
pnpm add discord-antinsfw
yarn add discord-antinsfw
bun add discord-antinsfw
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2021-12-03 |
| First published | 2021-11-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 8 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| Author | ishandev2004 |
| Maintainers | xfinity_yt |

## Links

- npm: https://www.npmjs.com/package/discord-antinsfw
- Repository: https://github.com/ishandev2004/discord-antinsfw
- Homepage: https://github.com/ishandev2004/discord-antinsfw#readme
- Issues: https://github.com/ishandev2004/discord-antinsfw/issues
- npm.io page: https://npm.io/package/discord-antinsfw

## Dependencies (2)

- [axios](https://npm.io/package/axios.md) ^0.24.0
- [discord.js](https://npm.io/package/discord.js.md) ^13.3.1

## Recent versions

- 1.0.3 (latest) — 2021-12-03
- 1.0.2 — 2021-11-28
- 1.0.1 — 2021-11-28
- 1.0.0 — 2021-11-28

## README

# Discord Antinsfw

Easily check nsfw images using your discord bot! Uses discord.js v13.

## Getting Started

- [Discord Antinsfw](#discord-antinsfw)
  - [Getting Started](#getting-started)
  - [Installation](#installation)
  - [Usage](#usage)
- [Got some errors/bugs?](#got-some-errorsbugs)

## 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](https://discord.gg/PAjCtJ6Yjx) for help.**

---
_Source: https://npm.io/package/discord-antinsfw · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
