Skip to content

Commit 8044b77

Browse files
authored
Update Following
1 parent 71e016a commit 8044b77

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ t.on('tweet', function (tweet) {
4646
t.on('error', function (err) {
4747
console.log('Oh no')
4848
})
49-
let track = config.following;
50-
for (var i = 0; i < track.length; i++) {
51-
t.follow(track[i]);
52-
console.log(`[TWITTER] Following Twitter User [ID]${track[i]}`)
49+
let track = config.followingUser;
50+
track.forEach(user => {
51+
t.follow(user.id);
52+
console.log(`[TWITTER] Following Twitter User @${user.name}`);
5353
console.log(`For Support please join https://discord.gg/PrGCCWpDbP`)
5454
}
5555

0 commit comments

Comments
 (0)