File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -46,9 +46,10 @@ let iac = new InstaAutoComment();
46
46
console . log ( '\n' ) ;
47
47
// you received a notification
48
48
iac . ig . fbns . push$ . subscribe (
49
- ( push ) => {
49
+ async ( push ) => {
50
50
if ( push . pushCategory === "post" && trackedUsersPks . includes ( Number ( push . sourceUserId ) ) ) {
51
- iac . commentOnPostWithRandomComment ( push . actionParams [ "id" ] , commentsArray ) ;
51
+ await iac . ig . media . like ( { d : 1 , mediaId : push . actionParams [ "id" ] , moduleInfo : { module_name : 'feed_timeline' } } )
52
+ await iac . commentOnPostWithRandomComment ( push . actionParams [ "id" ] , commentsArray ) ;
52
53
}
53
54
}
54
55
) ;
@@ -84,6 +85,7 @@ let iac = new InstaAutoComment();
84
85
const spinner = ora ( 'Waiting for a notification' ) . start ( ) ;
85
86
} ) ;
86
87
} catch ( e ) {
88
+ console . log ( e ) ;
87
89
if ( pushbulletAccessToken ) pusher . note ( '' , 'InstaAutoComment | Error with program' , e . message ) ;
88
90
}
89
91
} ) ( ) ;
You can’t perform that action at this time.
0 commit comments