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