i was making meme.js file/command and i got this error idk how to resolve this problem, Can you help me?
so this is my code:
const fetch = require('node-fetch');
const randomPuppy = require("random-puppy");
module.exports = {
name: "meme",
description: "Sends an epic meme",
execute(message) {
const subReddits = ["dankmeme", "meme", "me_irl"];
const random = subReddits[Math.floor(Math.random() * subReddits.length)];
const img = await randomPuppy(random);
console.log(img)
const memeEmbed = new MessageEmbed()
.setColor("#fa0557")
// .setImage(`${img}`)
.setTitle(`From /r/${random}`)
.setURL(`https://reddit.com/r/${random}`);
message.channel.send({ embeds: [memeEmbed] });
}
}
And this is the log i got:
Promise { <pending> }