Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const superagent = require("superagent"); // حقوق N3K4A - ToXic Codes
- client.on("message", async message => {
- var args = message.content.split(" ");
- if(message.content.startsWith(prefix + "hentaimemes")) {
- let msg = await message.channel.send("Meme will be ready soon...")
- let {body} = await superagent
- .get('https://meme-api.herokuapp.com/gimme/hentaimemes')
- console.log(body.url)
- if(!{body}) return message.channel.send("I broke! Try again.")
- let mEmbed = new Discord.RichEmbed()
- .setAuthor('Toxic Codes is Back', message.guild.iconURL)
- .setImage(body.url)
- .setTimestamp()
- message.channel.send({embed: mEmbed})
- msg.delete();
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement