UNPKG

xopbot

Version:

XOPBOT Is A Multipurpose Bot With Over 200+ Commands That Make You Love The Bot!

32 lines (29 loc) 1.45 kB
const discord = require("discord.js"); const got = require("got"); //MAKE SURE TO INSTALL THE PACKAGE "GOT" ELSE THE CODE WOULD NOT WORK const lineReplyNoMention = require('discord-reply'); const color = process.env.Color; module.exports = { name: "sluts", cooldown: 3, nsfw: true, permissions: ["SEND_MESSAGES"], clientpermissions: ["SEND_MESSAGES", "EMBED_LINKS"], category: "NSFW", description: "Sends random sluts", usage: "[command]", async execute(client, message, cmd, args, Discord) { if (!message.channel.nsfw) return message.lineReplyNoMention({ content: '**This Is Not A NSFW Channel! 🔞**' }) got('https://www.reddit.com/r/sluts/random.json').then(response => { let content = JSON.parse(response.body); var title = content[0].data.children[0].data.title; var amazeme = content[0].data.children[0].data.url; let wow = new discord.MessageEmbed() .setTimestamp() .setDescription(`:underage: **Sluts**\n**[Provided To You By The Bot Supporters Of XOPBOT](${amazeme})**`) .setImage(amazeme) .setFooter(`You Sluts Do Anything For A Dick! :)`) .setColor(`${color}`) message.lineReplyNoMention(wow) }) } }