xopbot
Version:
XOPBOT Is A Multipurpose Bot With Over 200+ Commands That Make You Love The Bot!
32 lines (29 loc) • 1.45 kB
JavaScript
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: "spanks",
cooldown: 3,
nsfw: true,
permissions: ["SEND_MESSAGES"],
clientpermissions: ["SEND_MESSAGES", "EMBED_LINKS"],
category: "NSFW",
description: "Sends random cumsluts",
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/Spanking/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: **Spanks**\n**[Provided To You By The Bot Supporters Of XOPBOT](${amazeme})**`)
.setImage(amazeme)
.setFooter(`Spank That Ass Good! :)`)
.setColor(`${color}`)
message.lineReplyNoMention(wow)
})
}
}