Nuanced Pumpkin Mavens

    discord-antinsfw
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.3 • Public • Published

    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.

    Keywords

    none

    Install

    npm i discord-antinsfw

    DownloadsWeekly Downloads

    3

    Version

    1.0.3

    License

    ISC

    Unpacked Size

    8.23 kB

    Total Files

    6

    Last publish

    Collaborators

    • xfinity_yt