Link to original post
This commit is contained in:
parent
139a3230f6
commit
b5fd3f00e0
1 changed files with 2 additions and 2 deletions
4
bot.js
4
bot.js
|
@ -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)}`))
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue