소스 검색

Link to original post

ekardnam 4 년 전
부모
커밋
b5fd3f00e0
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      bot.js

+ 2 - 2
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)}`))
             }
           })