forked from Alien-Alfa/WhatsAppBOT-MD-BETA2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
link.js
executable file
·178 lines (123 loc) · 11.2 KB
/
link.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
//-----------------------------------------------------------------------------------------------------------------------------------------------------
let ownr = process.env.OWNER === undefined ? '0,447405935355' : process.env.OWNER
//-------------
let ownrnum = ownr.toString().split(',')
//-----------------------------------------------------------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------------------------------------------------------------
let sudo = process.env.SUDO === undefined ? '0,447405935355' : process.env.SUDO
//-------------
let sudonum = sudo.toString().split(',')
//-----------------------------------------------------------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------------------------------------------------------------
let stickker = process.env.STICKER_PACK === undefined ? '𝘼𝙇𝙄𝙀𝙉,𝘼𝙇𝙁𝘼' : process.env.STICKER_PACK
//-------------
let stickkerr = stickker.toString().split(',')
//-----------------------------------------------------------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------------------------------------------------------------
let prem = process.env.PREMIUM === undefined ? '447405935355' : process.env.PREMIUM
//-------------
let premiu = prem.toString().split(',')
//-----------------------------------------------------------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------------------------------------------------------------
let apik = ["5ce9b2c90a","5CE9B2C90A","1544701A60","10F0975E30","C927B48B97","7C93A5956E","F5DBD2C1CF","0C60476A8533","4F7107108B","419B9CD9DBE9"]
//-------------
let api = apik[Math.floor(Math.random() * apik.length)]
//-------------
global.apikeyset = process.env.ZENS_API === undefined ? `${api}` : process.env.ZENS_API //9
//-----------------------------------------------------------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------------------------------------------------------------
let worktypez = process.env.WORKTYPE === undefined ? 'public' : process.env.WORKTYPE
//-------------
let workres = worktypez.toLowerCase()
//-------------
if (workres === 'public') {global.worktype = 'public'}
//-------------
else {global.worktype = 'private'}
//-----------------------------------------------------------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------------------------------------------------------------
global.autoTypingzz = process.env.AUTO_TYPING === undefined ? false : process.env.AUTO_TYPING //auto tying in gc (true to on, false to off)
global.autoreadpmngczz = process.env.AUTO_READ_PM === undefined ? false : process.env.AUTO_READ //auto reading in gc and pm (true to on, false to off)
global.autoReadGczz = process.env.AUTO_READ_GROUP === undefined ? false : process.env.AUTO_READ_GROUP //auto reading in gc (true to on, false to off)
global.autoRecordzz = process.env.AUTO_RECORD === undefined ? false : process.env.AUTO_RECORD //auto recording (true to on, false to off)
global.availablezz = process.env.ALWAYS_ONLINE === undefined ? true : process.env.ALWAYS_ONLINE //auto available (true to on, false to off)
//-----------------------------------------------------------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------------------------------------------------------------
global.vidmenuzz = process.env.VIDEO_MENU_URL === undefined ? 'https://aniyuki.com/anya-forger-gifs/' : process.env.VIDEO_MENU_URL //gif and video menu
//-----------------------------------------------------------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------------------------------------------------------------
global.vcardownerzz = `${ownrnum}` //ur owner number
global.ownernamezz = process.env.VIDEO_MENU_URL === undefined ? "ALIEN-ALFA" : process.env.VIDEO_MENU_URL //ur owner name
global.ytnamezz = process.env.VIDEO_MENU_URL === undefined ? "YT: ALIENALFA" : process.env.VIDEO_MENU_URL //ur yt chanel name
global.socialmzz = process.env.VIDEO_MENU_URL === undefined ? "GitHub: DGXeon" : process.env.VIDEO_MENU_URL //ur github or insta name
global.locationzz = process.env.VIDEO_MENU_URL === undefined ? "UK, London, hertfordshire" : process.env.VIDEO_MENU_URL //ur location
//-----------------------------------------------------------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------------------------------------------------------------
global.ownerzz = `${sudonum}`
global.ownertagzz = process.env.TAG_NUMBER === undefined ? '447405935355' : process.env.TAG_NUMBER //ur tag number
global.botnamezz = process.env.BOTNAME === undefined ? "𝒜𝓊𝓇𝑜𝓇𝒶 𝐵𝒪𝒯-𝑀𝒟" : process.env.BOTNAME //ur bot name
global.linkzzz = process.env.THEME_URL === undefined ? 'https://www.youtube.com/alienalfa' : process.env.THEME_URL //your theme url which will be displayed on whatsapp
global.websitexzz = process.env.WEBSITE === undefined ? 'https://www.GITHUB.com/alien-alfa' : process.env.WEBSITE //ur website to be displayed
global.botscriptzz = 'https://github.com/Alien-Alfa/WhatsAppBot-MD-BETA2' //script link
global.reactmojizz = process.env.REACT_EMOJI === undefined ? "😘" : process.env.REACT_EMOJI //ur menu react emoji
global.themeemojizz = process.env.THEME_EMOJI === undefined ? "🦄" : process.env.THEME_EMOJI //ur theme emoji
global.packnamezz = `${stickkerr[0]}` //ur sticker watermark packname
global.authorzz = `${stickkerr[1]}` //ur sticker watermark author
//-----------------------------------------------------------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------------------------------------------------------------
global.thumzz = process.env.THUMB_PIC === undefined ? 'https://github.com/Alien-alfa/Alien-alfa/blob/beta/Alfa.jpg?raw=true' : process.env.THUMB_PIC //ur thumb pic
global.log0zz = process.env.LOGO_PIC === undefined ? 'https://github.com/Alien-alfa/Alien-alfa/blob/beta/Alfa.jpg?raw=true' : process.env.LOGO_PIC //ur logo pic
global.err4rzz = process.env.ERROR_PIC === undefined ? 'https://github.com/Alien-alfa/Alien-alfa/blob/beta/Alfa.jpg?raw=true' : process.env.ERROR_PIC //ur error pic
global.thumbzz = process.env.THUMBNAIL_PIC === undefined ? 'https://github.com/Alien-alfa/Alien-alfa/blob/beta/Alfa.jpg?raw=true' : process.env.THUMBNAIL_PIC //ur thumb pic
//-----------------------------------------------------------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------------------------------------------------------------
global.premiumzz = `${premiu}` //ur premium numbers
//-----------------------------------------------------------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------------------------------------------------------------
global.antitagszz = process.env.ANTI_TAG === undefined ? true : process.env.ANTI_TAG
global.spzz = process.env.ICON === undefined ? '✩' : process.env.ICON
//-----------------------------------------------------------------------------------------------------------------------------------------------------
//════════════════════════════// ALIEN-ALFA-FUNCTIONS //════════════════════════════//
//-----------------------------------------------------------------------------------------------------------------------------------------------------
global.devname = '𝘼𝙇𝙄𝙀𝙉 𝘼𝙇𝙁𝘼'
//-------------
global.devNum = ['447405935355','919383400679']
//-------------
global.SessName = './session.alfa.json'
//-------------
global.session = process.env.SESSION_ID || false
//-------------
global.listicon = process.env.LISTICON === undefined ? '✩' : process.env.LISTICON
//-------------
global.wm = process.env.WATERMARK === undefined ? 'ALIEN ALFA' : process.env.WATERMARK
//-------------
global.mail = process.env.MAIL === undefined ? '[email protected]' : process.env.MAIL
//-------------
global.youtube = process.env.YOUTUBE === undefined ? 'https://youtube.com/c/alienalfa' : process.env.YOUTUBE
//-------------
global.github = process.env.GITHUB === undefined ? 'https://github.com/Alien-alfa/' : process.env.GITHUB
//-------------
global.insta = process.env.INSTAGRAM === undefined ? 'https://www.instagram.com/alienalfa/' : process.env.INSTAGRAM
//-------------
global.linkname = process.env.NAME === undefined ? '𝘼𝙇𝙄𝙀𝙉 𝘼𝙇𝙁𝘼' : process.env.NAME
//-------------
global.mainfooter = process.env.FOOTER === undefined ? '𝘼𝙇𝙄𝙀𝙉 𝘼𝙇𝙁𝘼' : process.env.FOOTER
//-------------
global.herokuapi = process.env.HEROKU_API_KEY === undefined ? '' : process.env.HEROKU_API_KEY
//-------------
global.herokuapp = process.env.HEROKU_APP_NAME === undefined ? '' : process.env.HEROKU_APP_NAME
//-----------------------------------------------------------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------------------------------------------------------------
global.alivemess = process.env.ALIVE_MESS === undefined ? 'null' : process.env.ALIVE_MESS
//-------------
aliveimage = process.env.ALIVE_IMAGE === undefined ? false : process.env.ALIVE_IMAGE
//-------------
global.prefixx = process.env.PREFIX === undefined ? "" : process.env.PREFIX
//-------------
global.autodownloader = process.env.AUTO_DOWNLOADER === undefined ? false : process.env.AUTO_DOWNLOADER
//-------------
global.alivemess = process.env.ALIVE_MESS === undefined ? 'null' : process.env.ALIVE_MESS
//-------------
global.aliveimage = process.env.ALIVE_IMAGE === undefined ? false : process.env.ALIVE_IMAGE
//-------------
global.anticallmsg = process.env.ANTICALL_MSG
//-----------------------------------------------------------------------------------------------------------------------------------------------------