merge-requests/3/head
Supositware 5 years ago
parent d962698ad0
commit aa77bd5d46

@ -52,10 +52,13 @@ class facebookCommand extends Command {
}).then((response) => {
return response.json();
}).then((response) => {
let postID = response.id.slice(17);
console.log(response);
let postID;
if (response.id) {
postID = response.id.slice(17);
}
message.channel.send(`Go see ur epic post https://www.facebook.com/HahaYesDiscord/posts/${postID}`);
channel.send(`AUTHOR: ${message.author.username} (${message.author.id}) Sent: ${args.text}\nhttps://www.facebook.com/HahaYesDiscord/posts/${postID}`);
console.log(response);
});
}
}

Loading…
Cancel
Save