1.0.3 • Published 2 years ago

discord-antinsfw v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Discord Antinsfw

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

Getting Started

Installation

npm install discord-antinsfw

Usage

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.

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago