Advertisement
n3k4a

Code - hentaimemes

Oct 4th, 2019
402
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. const superagent = require("superagent"); // حقوق N3K4A - ToXic Codes
  2.  
  3. client.on("message", async message => {
  4. var args = message.content.split(" ");
  5. if(message.content.startsWith(prefix + "hentaimemes")) {
  6.  
  7. let msg = await message.channel.send("Meme will be ready soon...")
  8. let {body} = await superagent
  9. .get('https://meme-api.herokuapp.com/gimme/hentaimemes')
  10. console.log(body.url)
  11. if(!{body}) return message.channel.send("I broke! Try again.")
  12.  
  13. let mEmbed = new Discord.RichEmbed()
  14. .setAuthor('Toxic Codes is Back', message.guild.iconURL)
  15. .setImage(body.url)
  16. .setTimestamp()
  17.  
  18. message.channel.send({embed: mEmbed})
  19. msg.delete();
  20.  
  21. }
  22.  
  23. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement