-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.js
26 lines (23 loc) · 847 Bytes
/
run.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
const process = require('process')
const Like = require('./like.js')
const List = require('./list.js')
if (process.argv[2] === 'like') {
const w = new Like(login='./data/vkusov-login',
cookies='./data/vkusov-cookies.json',
proxy=null,
fileName='./data/cokoladovnajanek',
noProfiles=20,
likesPerProfile=1)
w.Init()
} else if (process.argv[2] === 'list') {
// cokoladovnajanek 1570
const w = new List(login='./data/login4',
cookies=null,
proxy='./data/proxy',
profile='cokoladovnajanek',
startFrom=1570,
fileName='./data/cokoladovnajanek')
w.Init()
} else {
process.stdout.write('Unknown parameter '+process.argv[2]+'\n')
}