image-cord
Version:
It is a package used to make discord bots. It sends attachments of image manipulation, Anime, nsfw, and more pictures easily without any APIs.
97 lines (85 loc) • 2.32 kB
JavaScript
const fetch = require("node-fetch");
async function Nsfw(options = {}) {
var subreddits = [
'asstastic',
'pawg',
'facedownassup',
'ass',
'brunetteass',
'CheekyBottoms',
'datgap',
'underbun',
'pawgtastic',
'BestBooties',
'CuteLittleButts',
'bikinis',
'bikinibodies',
'boobs',
'Boobies',
'Stacked',
'BustyPetite',
'Cleavage',
'bustyasians',
'boltedontits',
'burstingout',
'CelebrityFeet',
'FFSocks',
'Feet_NSFW',
'FootFetish',
'FFNBPS',
'feetish',
'scent_of_women_feet',
'AsianFeet',
'gayfootfetish',
'HighHeels',
'Soles',
'CosplayFeet',
'dirtyfeet',
'DesiFeet',
'ebonyfeet',
'rule34feet',
'girlsinanklesocks',
'Porn_Star_Feet',
'FeetVideos',
'Soles_And_Holes',
'Footjobs',
'pussy',
'vagina',
'PerfectPussies',
'rearpussy',
'nnlegalteens',
'Barelylegal',
'barelylegalteens',
'LegalTeens',
'thighs',
'PerfectThighs',
'thickthighs',
'girlsinyogapants',
'YogaPants',
]
var reddit = subreddits[Math.round(Math.random() * (subreddits.length - 1))];
const data = await fetch(`https://meme-api.herokuapp.com/gimme/${reddit}`).then(res => res.json())
if (!data) return message.channel.send(`Sorry, seems like i can't connect to API.`);
const { title, postLink, url, subreddit } = data
const Data = {
embed: {
color: options.Color || "RANDOM",
url: postLink,
title: title,
image: { url: url },
footer: { text: `r/${subreddit} Powered By: Supreme Club` }
}
}
if (options.ResultOnly && options.ResultOnly === true) return {
Result: {
Url: postLink,
Title: title,
Image: url,
Subreddit: `${subreddit} Powered By: Supreme Club`
}
}
return Data;
};
module.exports = {
Nsfw
};