UNPKG

avamaxboobs

Version:

A package for randomly selecting images of various people's boobs. Intended to be used for discord bot commands.

19 lines (17 loc) 591 B
const fs =require('fs'); const path = require('path'); /** * Get a random boobs video 😳 * @returns {Promise<object>} random boobs video 😳 * @example const boobvideo = await boobsvideo(); * Returned object contains a name, thumbnail and url property. */ async function boobsvideo(){ const file = fs.readFileSync(path.join(__dirname.slice(0,__dirname.length-21),'lists','boobsvideos.json')); const json = JSON.parse(file); const boobvideo = json.boobsvideos[Math.floor(Math.random()*json.boobsvideos.length)]; return boobvideo; } module.exports={ boobsvideo }