Read information from embed message

Hello, I am trying to make a bot that replies to another one of my bots but want to have it reply to an embed. It ignores the embed and won’t do anything, but accepts [You need to be on an adventure to use this command. Try $adventure!]

bot.on("message", message => { if (message.author.id === DistantBot || message.channel.id === botchannel) { if (message.author.id === DistantBot) { if ( message.embed.title.includes("completed") || message.embed.title.includes("completed") || message.content === "You need to be on an adventure to use this command. Try $adventure`!"
) {
console.log(“detected as complete via missing adventure”);
setTimeout(function() {
bot.channels.get(“751596063848136737”).send(prefix + “start”);
}, 7000);
} else {
if (message.embed.title.content === “Adventure Completed” ||
message.embed.title.content === “Adventure Failed) {
console.log(“detected as complete”);
setTimeout(function() {
bot.channels.get(“751596063848136737”).send(prefix + “start”);
}, 7000);
} else {
if (message.embed.title.content === “Adventure Status”) {
console.log(“detected as incomplete”);
setTimeout(function() {
bot.channels.get(“751596063848136737”).send(”$status");
}, 3603690);
}
}
}
} else {
return;

}
});`

before yall scream and yell that you cannot do this without fomatting (and that stuff)

here ya go

in all its glory

code

bot.on("message", message => {
            if (message.author.id === DistantBot || message.channel.id === botchannel) {
                if (message.author.id === DistantBot) {
                    if (message.embed.title.includes("completed") || message.embed.title.includes("completed") || message.content === "You need to be on an adventure to use this command. Try $adventure`!") {
                        console.log(“detected as complete via missing adventure”);
                        setTimeout(function() {
                            bot.channels.get(“751596063848136737”).send(prefix + “start”);
                        }, 7000);
                    } else {
                        if (message.embed.title.content === “Adventure Completed” ||
                            message.embed.title.content === “Adventure Failed) {
                            console.log(“detected as complete”);
                            setTimeout(function() {
                                bot.channels.get(“751596063848136737”).send(prefix + “start”);
                            }, 7000);
                        } else {
                            if (message.embed.title.content === “Adventure Status”) {
                                console.log(“detected as incomplete”);
                                setTimeout(function() {
                                        bot.channels.get(“751596063848136737”).send(”$status ");
                                        }, 3603690);
                                }
                            }
                        }
                    } else {
                        return;

                    }
                });

Thanks, I had trouble figuring out how to format it

glitchers be rockin now

Assuming this is Discord.js and each message has one embed, Embeds are an Array, You want to compare with message.embeds[0].property