diff --git a/bot.js b/bot.js index e347708..bf9cccd 100644 --- a/bot.js +++ b/bot.js @@ -111,7 +111,7 @@ let bot = { promise = promise.then(data => this.promisePost(pieces[i], data.id_str)) } - return promise.then(() => console.log(`[INFO] Tweeted ${post}`)) + return promise .catch(err => console.error(err)) }, @@ -190,6 +190,7 @@ let bot = { }).catch(err => { console.error(err) }) } else { this.twitterPost(this.twitterFormat(status.content)) + .then(() => console.log(`[INFO] Tweeted ${this.twitterFormat(status.content)}`)) } })