first commit
This commit is contained in:
18
commands/help.js
Normal file
18
commands/help.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import { SlashCommandBuilder} from "discord.js";
|
||||
import fs from "fs";
|
||||
export const data = new SlashCommandBuilder()
|
||||
.setName('help')
|
||||
.setDescription('show helping message')
|
||||
|
||||
export async function execute(interaction) {
|
||||
const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));
|
||||
const commands = []
|
||||
for (const file of commandFiles) {
|
||||
|
||||
const command = await import(`./${file}`)
|
||||
commands.push(`/**${command.data.name}**: *${command.data.description}* \r`)
|
||||
|
||||
}
|
||||
interaction.reply(commands.join('\r'))
|
||||
|
||||
}
|
58
commands/porn.js
Normal file
58
commands/porn.js
Normal file
@@ -0,0 +1,58 @@
|
||||
import { SlashCommandBuilder} from "discord.js";
|
||||
|
||||
export const data = new SlashCommandBuilder()
|
||||
.setName('porn')
|
||||
.setDescription('negros penis porno')
|
||||
export async function execute(interaction, defer=false) {
|
||||
if (!defer) await interaction.deferReply()
|
||||
if (interaction.channel.nsfw) {
|
||||
|
||||
const options = {
|
||||
method: 'GET',
|
||||
headers: {cookie: '__ddg1_=Go9PkjVipnvcmvVee5Qq', 'User-Agent': 'insomnia/8.5.1'}
|
||||
};
|
||||
|
||||
const userListG = [
|
||||
/*"f1nn5ter",
|
||||
"kianavi",
|
||||
"itspurplebitch",
|
||||
"averyellisxo",
|
||||
"astolfitoliz",
|
||||
"trappy-chan",
|
||||
"trappybae",*/
|
||||
"ickyy",
|
||||
]
|
||||
|
||||
const userListGIndex = Math.floor(Math.random() * userListG.length)
|
||||
|
||||
const getLink = await fetch(`https://coomer.party/api/v1/onlyfans/user/${userListG[userListGIndex]}`, options)
|
||||
.then(response => response.json())
|
||||
.then(response => {
|
||||
let i = Math.floor(Math.random() * response.length)
|
||||
let ip = Math.floor(Math.random() * response[i].attachments.length)
|
||||
if (response.length === 0 || response[i].attachments.length === 0) {
|
||||
return null
|
||||
}
|
||||
return "https://coomer.su" + response[i].attachments[ip].path
|
||||
})
|
||||
if (!getLink) {
|
||||
return execute(interaction, true)
|
||||
}
|
||||
|
||||
await fetch(getLink, options)
|
||||
.then(response => {
|
||||
interaction.editReply({
|
||||
content: '',
|
||||
files: [{
|
||||
attachment: response.body,
|
||||
name: 'image.png'
|
||||
}]
|
||||
});
|
||||
})
|
||||
} else {
|
||||
interaction.reply({
|
||||
content: "This command can only be used in NSFW channels",
|
||||
ephemeral: true
|
||||
})
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user