-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.js
102 lines (88 loc) · 2.68 KB
/
index.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
'use strict'
//const insta = require('./func.js');
const Client = require('instagram-private-api').V1;
const delay = require('delay');
const chalk = require('chalk');
const inquirer = require('inquirer');
//const Spinner = require('cli-spinner').Spinner;
const questionTools = [
{
type:"list",
name:"Tools",
message:"Select tools:",
choices:
[
"[1] Botlike v1",
"[2] Botlike v2",
"[3] Delete All Media",
"[4] Unfollow All Following",
"[5] Unfollow Not Followback",
"[6] Follow Followers Target",
"[7] Follow Account By Media",
"[8] Follow Account By Hastag",
"[9] Follow Account By Location",
"\n"
]
}
]
const main = async () => {
var spinner;
try{
var toolChoise = await inquirer.prompt(questionTools);
toolChoise = toolChoise.Tools;
switch(toolChoise){
case "[1] Botlike v1":
const botlike = require('./botlike.js');
await botlike();
break;
case "[2] Botlike v2":
const botlike2 = require('./botlike2.js');
await botlike2();
break;
case "[3] Delete All Media":
const dellallphoto = require('./dellallphoto.js');
await dellallphoto();
break;
case "[4] Unfollow All Following":
const unfollall = require('./unfollall.js');
await unfollall();
break;
case "[5] Unfollow Not Followback":
const unfollnotfollback = require('./unfollnotfollback.js');
await unfollnotfollback();
break;
case "[6] Follow Followers Target":
const fftauto = require('./fftauto.js');
await fftauto();
break;
case "[7] Follow Account By Media":
const flmauto = require('./flmauto.js');
await flmauto();
break;
case "[8] Follow Account By Hastag":
const fah = require('./fah.js');
await fah();
break;
case "[9] Follow Account By Location":
const flaauto = require('./flaauto.js');
await flaauto();
break;
default:
console.log('\nERROR:\n[?] Aw, Snap! \n[!] Something went wrong while displaying this program!\n[!] Please try again!');
}
} catch(e) {
//spinner.stop(true);
//console.log(e);
}
}
console.log(chalk`
{bold.cyan
╦┌┐┌┌─┐┌┬┐┌─┐┌─┐┬─┐┌─┐┌┬┐
║│││└─┐ │ ├─┤│ ┬├┬┘├─┤│││
╩┘└┘└─┘ ┴ ┴ ┴└─┘┴└─┴ ┴┴ ┴
╔╦╗┌─┐┌─┐┬ ┌─┐ © 2018
║ │ ││ ││ └─┐ SGBTeam
╩ └─┘└─┘┴─┘└─┘ -------
}
`);
main()