README
What is this?
Make your meme commands in easy steps!
Installation
Make sure you install this packages!
npm install dsc-meme --save
npm install discord.js
npm install random-puppy
Options
In the future, the code will be simplified
const Discord = require('discord.js') //Install discord.js (npm install discord.js)
const botsettings = require('./config.json') //Your config
const randomPuppy = require('random-puppy'); //Install random-puppy (npm install random-puppy)
const dscMeme = require('dsc-meme') //Install my package :D
const bot = new Discord.Client(); //Client
bot.on("message", async message => {
if (message.content === 'b;meme') { //You can set name of your command
const subReddits = ["me_irl, dankmeme, funny, meme"] //Your subReddits
const random = subReddits[Math.floor(Math.random() * subReddits.length)]; //random
const img = await randomPuppy(random);
const embed = new Discord.MessageEmbed() //embed message
//You can set title, color
.setImage(img)
.setTitle(`From /r/${random}`)
.setURL(`http://reddit.com/${random}`)
.setColor('RANDOM') //You can set color (hex code)
message.channel.send(embed);
}
})
bot.login(botsettings.token);
Creator
Maksioo / Kokosowiec
Discord
Kokosowiec#1789
Discord Server
Hey, have you got question to me?
Go to my support server
Note
Update package. There are new updates all the time!
Thanks
Thank you very much for downloading my package!
Contact
Gmail: kokosowiec.wspolpraca@gmail.com
Discord: Kokosowiec#1789 or Hackereq#6200