Skip to content
← Back to Community
Discord Meme Bot
Profile icon
[deleted]

It is a meme bot for discord, the token is not in here(for obvious reasons)
special thanks to @TheDrone7 for his post on how to keep a discord bot running on repl

Voters
Profile icon
cupnoodles-TVTV
Profile icon
IvazPerruber
Profile icon
Skdude
Profile icon
cheeseontoast23
Profile icon
ChuCong
Profile icon
EggDogGoBrr1
Profile icon
Kunai9105
Profile icon
TNETClarinet
Profile icon
rayaanfaisal201
Profile icon
aVibincow
Comments
hotnewtop
Profile icon
Jasonkingtou

const Discord = require("discord.js");
const { MessageEmbed } = require("discord.js");
const Color = RANDOM;
const Fetch = require("node-fetch"); //Install Node-fetch - npm i node-fetch

module.exports = {
name: "meme",
category: "fun",
description: "Send A Meme!",
usage: "Meme",
run: async (client, message, args) => {
message.delete();

//Start const Reds = [ "memes", "me_irl", "dankmemes", "comedyheaven", "Animemes" ]; const Rads = Reds[Math.floor(Math.random() * Reds.length)]; const res = await Fetch(`https://www.reddit.com/r/${Rads}/random/.json`); const json = await res.json(); if (!json[0]) return message.channel.send(`Your Life Lmfao`); const data = json[0].data.children[0].data; const Embed = new MessageEmbed() .setColor(Color) .setURL(`https://reddit.com${data.permalink}`) .setTitle(data.title) .setDescription(`Author : ${data.author}`) .setImage(data.url) .setFooter(`${data.ups || 0} 👍 | ${data.downs || 0} 👎 | ${data.num_comments || 0} 💬`) .setTimestamp(); message.react('👍'); return message.channel.send(Embed).then(m => { m.react('👍'); m.react('👍'); }) //End }

};

Profile icon
ahdhosnd

hi

Profile icon
[deleted]

thanks man for the suggestion. I'm new to this btw

Profile icon
cgolden15

IDK man, it seems pretty lame that you only have a few memes to send. If you use random-puppy package, you can literally grab images off of subreddits and have them sent using 1 command.