Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const snek = require("snekfetch")
- let id = "mainKey"
- snek.get("http://benbotfn.tk:8080/api/aes).then(r => {
- let body = r.body
- let entry = body.find(post => post.id === id);
- let embed = new Discord.RichEmbed()
- .setAuthor(entry.userId)
- .setDescription(entry.body)
- .setFooter("Post ID: " + entry.id)
- console.log(entry.body)
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement