Nekos-life / nekos-dot-life

Nekos.life wrapper.
MIT License
166 stars 33 forks source link

.sfw.wallpaper() also returns nsfw wallpapers #36

Closed Aw4k3 closed 2 years ago

Aw4k3 commented 3 years ago

I am using this in a discord bot and despite the wallpaper() method being in the sfw property, it still has a chance of returning a nsfw wallpaper.

Here is the code block where I am using this

case '-wallpaper':
    NekoClient.sfw.wallpaper().then(image => {
        console.log(Utils.getTimeStamp() + 'Fetched url ' + image.url);
        NekoEmbed.setDescription('Wallpaper');
        NekoEmbed.setImage(image.url);
    }).then(fuckyoujavascript => {
        msg.channel.send(NekoEmbed);
    });
    break;
moyshik7 commented 3 years ago

Same here It almost got my Discord bot banned.

Hatsune-Mikun commented 2 years ago

@Aw4k3 @moyshik7

Better use this library, this one includes more sources, and checking all endpoints more time to choose category, so this one more safe