2024-01-18 21:40:05 +00:00
|
|
|
import { SlashCommandBuilder} from "discord.js";
|
|
|
|
|
|
|
|
export const data = new SlashCommandBuilder()
|
|
|
|
.setName('porn')
|
2024-01-18 21:43:44 +00:00
|
|
|
.setDescription('reel women prono')
|
2024-01-18 22:31:10 +00:00
|
|
|
export async function execute(interaction, defer=false, maxTry=10) {
|
|
|
|
maxTry--
|
|
|
|
if (maxTry === 0) return
|
2024-01-18 21:40:05 +00:00
|
|
|
if (!defer) await interaction.deferReply()
|
|
|
|
if (interaction.channel.nsfw) {
|
|
|
|
|
|
|
|
const options = {
|
|
|
|
method: 'GET',
|
|
|
|
headers: {cookie: '__ddg1_=Go9PkjVipnvcmvVee5Qq', 'User-Agent': 'insomnia/8.5.1'}
|
|
|
|
};
|
|
|
|
|
2024-01-18 21:43:44 +00:00
|
|
|
const userList = [
|
|
|
|
"belledelphine",
|
|
|
|
"bigtittygothegg",
|
|
|
|
"lee.ava",
|
|
|
|
"sweetiefox_of",
|
|
|
|
"hannahowo",
|
|
|
|
"sierralisabeth",
|
|
|
|
"himetsu",
|
|
|
|
"anaimiya",
|
|
|
|
"kittyxkum",
|
|
|
|
"bishoujomom",
|
|
|
|
"hongkongdoll",
|
|
|
|
"me1adinha",
|
|
|
|
"harpermadi",
|
|
|
|
"amouranth",
|
|
|
|
"cherrycrush",
|
|
|
|
"hidorirose",
|
|
|
|
"evaelfie",
|
|
|
|
"morgpie",
|
|
|
|
"hitomi_official",
|
|
|
|
"Morgpie",
|
|
|
|
"projektbutt",
|
|
|
|
"cassie0pia",
|
|
|
|
"soogsx",
|
|
|
|
"anriokita_real"
|
2024-01-18 21:40:05 +00:00
|
|
|
]
|
|
|
|
|
2024-01-18 21:43:44 +00:00
|
|
|
const userListIndex = Math.floor(Math.random() * userList.length)
|
2024-01-18 21:40:05 +00:00
|
|
|
|
2024-01-18 21:43:44 +00:00
|
|
|
const getLink = await fetch(`https://coomer.party/api/v1/onlyfans/user/${userList[userListIndex]}`, options)
|
2024-01-18 21:40:05 +00:00
|
|
|
.then(response => response.json())
|
|
|
|
.then(response => {
|
|
|
|
let i = Math.floor(Math.random() * response.length)
|
2024-01-18 22:31:10 +00:00
|
|
|
if (response.length === 0 || response[i].attachments.length === 0) {
|
2024-01-18 21:40:05 +00:00
|
|
|
return null
|
|
|
|
}
|
2024-01-18 22:31:10 +00:00
|
|
|
let ip = Math.floor(Math.random() * response[i].attachments.length)
|
2024-01-18 21:40:05 +00:00
|
|
|
return "https://coomer.su" + response[i].attachments[ip].path
|
2024-01-18 22:31:10 +00:00
|
|
|
}).catch(e => {
|
|
|
|
console.log(e)
|
2024-01-18 21:40:05 +00:00
|
|
|
})
|
|
|
|
if (!getLink) {
|
2024-01-18 22:31:10 +00:00
|
|
|
return execute(interaction, true, maxTry)
|
2024-01-18 21:40:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
await fetch(getLink, options)
|
|
|
|
.then(response => {
|
|
|
|
interaction.editReply({
|
|
|
|
content: '',
|
|
|
|
files: [{
|
|
|
|
attachment: response.body,
|
|
|
|
name: 'image.png'
|
|
|
|
}]
|
|
|
|
});
|
2024-01-18 22:31:10 +00:00
|
|
|
}).catch(e => {
|
|
|
|
console.log(e)
|
2024-01-18 21:40:05 +00:00
|
|
|
})
|
|
|
|
} else {
|
|
|
|
interaction.reply({
|
|
|
|
content: "This command can only be used in NSFW channels",
|
|
|
|
ephemeral: true
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|