UNPKG

discord-phub

Version:

Nsfw DB with more than 5 000 images and videos (gif, jpg, png, mp4) of nsfw content with 65+ categories

28 lines (21 loc) 704 B
const { RandomPHUB } = require('../discord-phub'); const unique = new RandomPHUB(true); const notunique = new RandomPHUB(); console.log('--- [UNIQUE] ---'); for(let i=0; i<5; i++){ console.log("Rimming: ", unique.getRandomInCategory('rimming')); } for(let i=0; i<5; i++){ console.log("Random: ", unique.getRandom()); } console.log("--- [NOT UNIQUE] ---"); for(let i=0; i<5; i++){ console.log("Toys: ", notunique.getRandomInCategory('toys')); } for(let i=0; i<5; i++){ console.log("Random: ", notunique.getRandom()); } for(let category of unique.categories){ console.log(`- ${category}`); } console.log(unique.totalElements, unique.categories.length);