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;