little fix

This commit is contained in:
ekardnam 2019-07-26 18:58:54 +02:00
parent 0649ade820
commit eba7796c5b

3
bot.js
View file

@ -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)}`))
}
})