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) 634 B
const fs =require('fs'); const path = require('path') /** * Get a random picture of Britney Spears's boobs 😳 * @returns {Promise<string> random picture of Britney Spears's boobs 😳} * @example const boob = await britneyspearsboobs() */ async function britneyspearsboobs(){ const file = fs.readFileSync(path.join(__dirname.slice(0,__dirname.length-21),'lists','britneyspearsboobs.json')); const keys = Object.keys(JSON.parse(file.toString())) const val = JSON.parse(file.toString())[keys] const titty = val[Math.floor(Math.random()*val.length)]; return titty; } module.exports={ britneyspearsboobs }