Link to original post

This commit is contained in:
ekardnam 2019-08-05 22:49:09 +02:00
parent 139a3230f6
commit b5fd3f00e0

4
bot.js
View file

@ -179,7 +179,7 @@ let bot = {
)
Promise.all(downloads)
.then(files => {
this.twitterPostWithMedias(this.twitterFormat(status.content), files)
this.twitterPostWithMedias(`${this.twitterFormat(status.content)} \n\n ${status.uri}`, files)
.then(() => {
files.forEach(file => {
fs.unlink(file, (err) => {
@ -190,7 +190,7 @@ let bot = {
}).catch(e => { console.error(e) })
}).catch(err => { console.error(err) })
} else {
this.twitterPost(this.twitterFormat(status.content))
this.twitterPost(`${this.twitterFormat(status.content)} \n\n ${status.uri}`)
.then(() => console.log(`[INFO] Tweeted ${this.twitterFormat(status.content)}`))
}
})