1.0.0 • Published 3 years ago

@usbodev/discord-nsfw v1.0.0

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

Ducumentation

A powerfull discord nsfw generator

Getting Started

Example:

const Discord = require('discord.js')
const client = new Discord.Client()
const dnsfw = require('discord-nsfw')
const prefix = '!'
const token = ''

client.on('message', async (message) => {
    if(message.content.toLowerCase().startsWith(prefix + 'gif')) {
        try
        {
            if(message.channel.nsfw) {
                await message.channel.send(dnsfw.nsfw.gifs)
            }
            else
            {
                await message.channel.send('**This isn\'t a nsfw channel!**')
            }
        }
        catch(Exception)
        {
        }
    }
})

client.login(token)

Structure:

# discord-nsfw + type + name