queenamdi-functions-beta 0.0.28 β†’ 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,1372 +1,1098 @@
1
- function _0x1f27(_0x1adae4, _0x48e847) {
2
- const _0x4822e5 = _0x4822();
3
- return _0x1f27 = function (_0x1f278a, _0xff617) {
4
- _0x1f278a = _0x1f278a - 0x1df;
5
- let _0x1a71cd = _0x4822e5[_0x1f278a];
6
- return _0x1a71cd;
7
- }, _0x1f27(_0x1adae4, _0x48e847);
8
- }
9
- (function (_0x2a9291, _0x363537) {
10
- function _0x5dbe01(_0x3d8b46, _0x8c97b4) {
11
- return _0x1f27(_0x8c97b4 - -0x3e0, _0x3d8b46);
12
- }
13
- const _0x5364c2 = _0x2a9291();
14
- function _0x283585(_0x10e127, _0x1ecf34) {
15
- return _0x1f27(_0x10e127 - -0x2e1, _0x1ecf34);
16
- }
17
- while (!![]) {
18
- try {
19
- const _0xf307e5 = -parseInt(_0x283585(0xa7, 0x43)) / 0x1 * (parseInt(_0x5dbe01(-0xc1, -0x19d)) / 0x2) + parseInt(_0x5dbe01(-0x23, -0x39)) / 0x3 + -parseInt(_0x283585(0x72, 0xa)) / 0x4 + -parseInt(_0x5dbe01(-0x219, -0x1d7)) / 0x5 + -parseInt(_0x5dbe01(0x3d, -0xbc)) / 0x6 * (-parseInt(_0x283585(-0x9c, -0x157)) / 0x7) + parseInt(_0x283585(-0xa5, 0x17)) / 0x8 * (-parseInt(_0x283585(-0xa6, -0xf4)) / 0x9) + -parseInt(_0x283585(0x98, 0x137)) / 0xa;
20
- if (_0xf307e5 === _0x363537)
21
- break;
22
- else
23
- _0x5364c2['push'](_0x5364c2['shift']());
24
- } catch (_0x4cf01a) {
25
- _0x5364c2['push'](_0x5364c2['shift']());
26
- }
27
- }
28
- }(_0x4822, 0x6c295));
1
+ // <<==== Baileys ====>>
29
2
  const {
30
- default: makeWASocket,
31
- DisconnectReason,
32
- useSingleFileAuthState,
33
- useMultiFileAuthState,
34
- MessageRetryMap,
35
- getDevice,
36
- makeInMemoryStore,
37
- fetchLatestBaileysVersion
38
- } = require(_0x1ad9ba(0x10a, 0xa) + _0x36f406(0x22a, 0x2a8)), axios = require('\x61\x78\x69\x6f\x73'), CryptoJS = require('\x63\x72\x79\x70\x74\x6f\x2d\x6a\x73'), fs = require('\x66\x73'), got = require(_0x1ad9ba(-0x21, -0x48)), QRCode = require(_0x1ad9ba(0x19c, 0x223)), sharp = require('\x73\x68\x61\x72\x70'), amdiDB = require(_0x1ad9ba(0x196, 0xb6) + _0x1ad9ba(0x9e, 0x9a) + '\x44\x42'), vars = require(_0x1ad9ba(0x196, 0x16e) + '\x73\x73\x65\x74\x73\x2f\x61\x6d\x64\x69' + _0x1ad9ba(0x157, 0x15b)), Heroku = require('\x68\x65\x72\x6f\x6b\x75\x2d\x63\x6c\x69' + _0x36f406(0x347, 0x270)), _0x5235b7 = {};
39
- _0x5235b7[_0x36f406(0x41e, 0x3fd)] = vars[_0x36f406(0x313, 0x3ee)];
40
- const heroku = new Heroku(_0x5235b7);
41
- let baseURI = _0x1ad9ba(0xe5, 0xa2) + vars['\x48\x45\x52\x4f\x4b\x55\x5f\x41\x50\x50'];
42
- const {state, saveState} = useSingleFileAuthState(_0x1ad9ba(0xf0, -0x8) + '\x73\x69\x6f\x6e\x2e\x6a\x73\x6f\x6e'), msgRetryCounterMap = {}, Language = require(_0x1ad9ba(0xa3, 0x12c) + _0x1ad9ba(-0x17, -0x97) + _0x1ad9ba(0x7d, 0x69)), Lang = Language['\x67\x65\x74\x53\x74\x72\x69\x6e\x67']('\x61\x6d\x64\x69\x4d\x6f\x64\x75\x6c\x65');
43
- let messages = [];
44
- function _0x4822() {
45
- const _0x3f435c = [
46
- '\x6c\x69\x73\x74\x52\x65\x73\x70\x6f\x6e',
47
- '\x6f\x77\x6e\x65\x72\x43\x4d\x44\x6f\x6e',
48
- '\x37\x2c\x20\x73\x65\x72\x76\x65\x72\x48',
49
- '\x54\x68\x65\x72\x65\x20\x69\x73\x20\x6e',
50
- '\x45\x52\x52\x4f\x52\x20\x34\x30\x34\x21',
51
- '\x67\x61\x69\x6e',
52
- '\x65\x76\x76',
53
- '\x65\x20\x43\x75\x72\x72\x65\x6e\x74\x20',
54
- '\x62\x61\x73\x65\x36\x34',
55
- '\x2e\x2f\x70\x6c\x75\x67\x69\x6e\x73\x2f',
56
- '\x6d\x20\x75\x73\x69\x6e\x67\x20\x51\x75',
57
- '\ud83d\udcdf\x20\x43\x75\x72\x72\x65\x6e\x74\x6c',
58
- '\x69\x20\x61\x6e\x64\x20\x4d\x61\x6e\x6f',
59
- '\x73\x75\x70\x65\x72\x61\x64\x6d\x69\x6e',
60
- '\x72\x6f\x77\x43\x6f\x75\x6e\x74',
61
- '\x68\x79\x64\x72\x61\x74\x65\x64\x54\x65',
62
- '\x62\x75\x74\x74\x6f\x6e\x54\x65\x78\x74',
63
- '\x62\x6f\x64\x79',
64
- '\x62\x61\x6e\x6e\x65\x64\x5f\x67\x72\x6f',
65
- '\x79\x20\x75\x73\x69\x6e\x67\x20\x57\x65',
66
- '\x40\x68\x61\x70\x69\x2f\x62\x6f\x6f\x6d',
67
- '\x65\x6e\x64\x73\x57\x69\x74\x68',
68
- '\x71\x75\x65\x72\x79',
69
- '\x40\x73\x2e\x77\x68\x61\x74\x73\x61\x70',
70
- '\x75\x70\x6c\x6f\x61\x64\x65\x64\x50\x72',
71
- '\x65\x6e\x74',
72
- '\x2f\x6a\x70\x65\x67\x3b\x62\x61\x73\x65',
73
- '\x64\x69\x74\x20\x51\x75\x65\x65\x6e\x20',
74
- '\x55\x39\x35\x2d\x57\x6e\x39\x6d\x48\x34',
75
- '\x61\x6e\x64\x20\x53\x63\x61\x6e\x20\x41',
76
- '\x63\x65\x20\x63\x6f\x64\x65\x20\x65\x64',
77
- '\x34\x35\x73\x52\x5a\x70\x46\x61',
78
- '\x32\x35\x34\x33\x34\x34\x69\x65\x6d\x6e\x66\x66',
79
- '\x2e\x6d\x70\x34',
80
- '\x6f\x6d\x2f',
81
- '\x20\x61\x6e\x79\x20\x63\x6f\x6d\x6d\x61',
82
- '\x62\x61\x6e\x6e\x65\x64\x5f\x75\x73\x65',
83
- '\x65\x64\x21\x2a\x20\x0a\x0a\x59\x6f\x75',
84
- '\x74\x68\x75\x62\x2e\x63\x6f\x6d\x2f\x42',
85
- '\x32\x51\x56\x76\x69\x55\x4d',
86
- '\x6c\x65\x61\x73\x65\x20\x53\x63\x61\x6e',
87
- '\x34\x34\x32\x35\x36\x31\x6d\x43\x53\x79\x74\x54',
88
- '\ud83d\udc83\ud83c\udffb\u2665\ufe0f\x20\x51\x75\x65\x65\x6e\x20\x41',
89
- '\x78\x74\x4d\x65\x73\x73\x61\x67\x65',
90
- '\x65\x78\x69\x73\x74\x57\x41',
91
- '\x72\x6f\x75\x70',
92
- '\x66\x72\x6f\x6d',
93
- '\x6f\x61\x64\x65\x64\x50\x72\x65\x4b\x65',
94
- '\x70\x2e\x6e\x65\x74',
95
- '\ud83d\udc83\ud83c\udffb\x20\x4f\x66\x66\x69\x63\x69\x61\x6c',
96
- '\x74\x65\x78\x74\x49\x6e\x66\x6f',
97
- '\x74\x61\x6d\x70',
98
- '\x6d\x79\x41\x70\x70\x53\x74\x61\x74\x65',
99
- '\x62\x6c\x61\x6e\x6b',
100
- '\x77\x2e\x67\x69\x74\x68\x75\x62\x75\x73',
101
- '\x2c\x24\x31\x30\x2c\x24\x31\x31\x2c\x24',
102
- '\x61\x75\x64\x69\x6f',
103
- '\x73\x65\x6c\x65\x63\x74\x20\x2a\x20\x66',
104
- '\x6d\x73\x67\x52\x65\x74\x72\x79\x43\x6f',
105
- '\x6d\x73\x67\x44\x65\x76\x69\x63\x65',
106
- '\x67\x65\x74\x4d\x65\x73\x73\x61\x67\x65',
107
- '\x74\x74\x6f\x6e\x73',
108
- '\x63\x6c\x6f\x73\x65',
109
- '\x77\x49\x64',
110
- '\x62\x79\x65\x70\x69\x63\x75\x72\x6c',
111
- '\x66\x72\x6f\x6d\x20\x75\x73\x69\x6e\x67',
112
- '\x2e\x67\x69\x66',
113
- '\x48\x65\x72\x6f\x6b\x75\x5f\x41\x6c\x69',
114
- '\x69\x73\x54\x61\x67\x67\x65\x64\x53\x74',
115
- '\x71\x75\x6f\x74\x65\x64\x4d\x65\x73\x73',
116
- '\x71\x75\x69\x63\x6b\x52\x65\x70\x6c\x79',
117
- '\x61\x64\x76\x53\x65\x63\x72\x65\x74\x4b',
118
- '\x70\x72\x6f\x6d\x69\x73\x69\x66\x79',
119
- '\x20\x63\x61\x6e\x20\x6e\x6f\x74\x20\x65',
120
- '\x67\x72\x6f\x75\x70\x4d\x65\x74\x61\x64',
121
- '\x20\x73\x69\x67\x6e\x61\x6c\x49\x64\x65',
122
- '\x68\x20\x53\x45\x54\x20\x6e\x6f\x69\x73',
123
- '\x6c\x6f\x67\x67\x65\x72',
124
- '\x64\x61\x6e\x69\x77\x61\x73\x61\x2e\x63',
125
- '\x69\x62\x62\x2e\x63\x6f\x2f\x50\x54\x47',
126
- '\x20\x24\x32\x2c\x20\x73\x69\x67\x6e\x65',
127
- '\x6e\x67\x2f\x62\x61\x69\x6c\x65\x79\x73',
128
- '\x72\x65\x61\x63\x74',
129
- '\x70\x6f\x6e\x73\x65\x4d\x65\x73\x73\x61',
130
- '\x65\x4b\x65\x79\x20\x3d\x20\x24\x31\x2c',
131
- '\x2e\x6a\x73',
132
- '\x6d\x64\x61\x6e\x69\x77\x61\x73\x61\x2e',
133
- '\x61\x72\x74\x69\x63\x69\x70\x61\x6e\x74',
134
- '\x6c\x6f\x67\x47\x72\x70\x4a\x49\x44',
135
- '\x69\x73\x54\x61\x67\x67\x65\x64\x56\x69',
136
- '\x20\x52\x65\x70\x6c\x61\x63\x65\x64\x2c',
137
- '\x70\x74\x74',
138
- '\x6e\x6f\x41\x64\x6d\x69\x6e',
139
- '\x50\x52\x45\x46\x49\x58',
140
- '\x72\x65\x73\x69\x7a\x65',
141
- '\x4c\x6f\x67\x67\x65\x72\x43\x68\x61\x74',
142
- '\x73\x74\x61\x72\x74\x69\x6e\x67\x2e\x2e',
143
- '\x57\x4f\x52\x4b\x54\x59\x50\x45',
144
- '\x62\x75\x74\x74\x6f\x6e\x73',
145
- '\x66\x69\x6c\x65\x2e',
146
- '\u26a0\ufe0f\x20\x2a\x55\x6e\x61\x75\x74\x68\x6f',
147
- '\x72\x65\x61\x64\x4d\x65\x73\x73\x61\x67',
148
- '\x2e\x70\x6e\x67',
149
- '\x73\x65\x6e\x64\x4c\x69\x73\x74\x4d\x73',
150
- '\x63\x61\x70\x74\x69\x6f\x6e',
151
- '\x65\x73\x73\x61\x67\x65',
152
- '\x74\x69\x74\x69\x65\x73\x20\x3d\x20\x24',
153
- '\x69\x6c\x65\x50\x69\x63\x74\x75\x72\x65',
154
- '\x73\x69\x67\x6e\x65\x64\x70\x72\x65\x6b',
155
- '\x6e\x73\x6f\x6c\x65\x20\x67\x72\x6f\x75',
156
- '\x63\x6f\x6d\x2f\x63\x68\x61\x6e\x6e\x65',
157
- '\x39\x34\x37\x38\x35\x34\x35\x37\x35\x31',
158
- '\x64\x65\x63\x72\x79\x70\x74',
159
- '\x65\x63\x6f\x6e\x6e\x65\x63\x74\x69\x6e',
160
- '\x68\x74\x74\x70\x73\x3a\x2f\x2f\x77\x77',
161
- '\x20\x0a\u2023\x20\x50\x61\x72\x74\x69\x63',
162
- '\x72\x73\x74',
163
- '\x69\x6e\x70\x75\x74',
164
- '\x61\x74\x61\x62\x61\x73\x65\x2f\x67\x72',
165
- '\x6f\x67\x73\x20\x63\x68\x61\x74\x2e\x0a',
166
- '\x68\x79\x64\x72\x61\x74\x65\x64\x46\x6f',
167
- '\x4d\x4f\x44',
168
- '\x63\x72\x65\x64\x73\x2e\x75\x70\x64\x61',
169
- '\u01eb\u1d1c\u1d07\u1d07\u0274\x20\u1d00\u1d0d\u1d05\u026a',
170
- '\x69\x61\x6c\x20\x73\x69\x74\x65\x20\x3a',
171
- '\x20\x68\x74\x74\x70\x73\x3a\x2f\x2f\x61',
172
- '\x73\x70\x6c\x69\x74',
173
- '\x72\x79\x54\x69\x6d\x65\x6f\x75\x74\x4d',
174
- '\x70\x6c\x79\x4c\x41\x4e\x47',
175
- '\x62\x69\x6e\x64',
176
- '\x20\x0a\u2023\x20\x43\x4c\x49\x45\x4e\x54',
177
- '\x73\x68\x69\x66\x74',
178
- '\x65\x78\x69\x74',
179
- '\ud83d\udca0\x20\x2a\x47\x72\x6f\x75\x70\x20\x50',
180
- '\x73\x69\x67\x6e\x65\x64\x50\x72\x65\x4b',
181
- '\x62\x79\x65\x6e\x6f\x74\x65',
182
- '\x67\x2e\x75\x73',
183
- '\x75\x65\x65\x6e\x41\x6d\x64\x69',
184
- '\x64\x61\x74\x61\x3a\x69\x6d\x61\x67\x65',
185
- '\x73\x20\x74\x65\x78\x74\x2c\x20\x61\x63',
186
- '\x74\x69\x74\x79\x4b\x65\x79',
187
- '\x66\x72\x6f\x6d\x4d\x65',
188
- '\x69\x6d\x65\x73\x74\x61\x6d\x70\x20\x3d',
189
- '\x63\x6f\x6d\x2f\x42\x6c\x61\x63\x6b\x41',
190
- '\x2e\x63\x6f\x6d\x2f\x42\x6c\x61\x63\x6b',
191
- '\x6e\x74\x69\x74\x69\x65\x73\x20\x74\x65',
192
- '\x62\x75\x74\x74\x6f\x6e\x54\x58\x54',
193
- '\x75\x69\x72\x65\x64',
194
- '\x42\x4f\x54\x5f\x4e\x55\x4d\x42\x45\x52',
195
- '\x69\x70\x61\x6e\x74\x73\x3a\x20',
196
- '\x73\x65\x4d\x65\x73\x73\x61\x67\x65',
197
- '\x73\x74\x72\x61\x74\x69\x6f\x6e\x49\x64',
198
- '\x66\x75\x6e\x63\x74\x69\x6f\x6e\x73\x20',
199
- '\x61\x67\x61\x69\x6e\x2e',
200
- '\x20\x57\x65\x62\x73\x69\x74\x65',
201
- '\ud83d\udc68\ud83c\udffb\u200d\ud83c\udfeb\x20\x4a\x6f\x69\x6e\x20\x6f\x75\x72',
202
- '\x73\x74\x61\x74\x75\x73\x43\x6f\x64\x65',
203
- '\x66\x6f\x6f\x74\x65\x72',
204
- '\x2e\x6d\x70\x33',
205
- '\x20\x73\x69\x67\x6e\x65\x64\x49\x64\x65',
206
- '\x37\x30\x33\x2d\x30\x31\x30\x36\x35\x33',
207
- '\x73\x73\x65\x74\x73\x2f\x61\x6d\x64\x69',
208
- '\x70\x53\x74\x61\x74\x65\x4b\x65\x79\x49',
209
- '\x72\x65\x67\x69\x73\x74\x72\x61\x74\x69',
210
- '\x69\x73\x47\x72\x6f\x75\x70',
211
- '\x74\x69\x6e\x67\x73\x44\x42',
212
- '\x2e\x2e\x2f\x2e\x2e\x2f\x2e\x2e\x2f\x6c',
213
- '\x20\x63\x6c\x6f\x73\x65\x64\x2c\x20\x72',
214
- '\x39\x34\x37\x35\x37\x34\x30\x35\x36\x35',
215
- '\x20\x51\x75\x65\x65\x6e\x20\x41\x6d\x64',
216
- '\x74\x65\x78\x74\x2c\x20\x72\x65\x67\x69',
217
- '\x6d\x69\x6d\x65\x74\x79\x70\x65',
218
- '\x63\x72\x65\x64\x73',
219
- '\x73\x74\x61\x72\x74\x73\x57\x69\x74\x68',
220
- '\x63\x6f\x75\x6e\x74\x20\x74\x65\x78\x74',
221
- '\x70\x61\x72\x73\x65',
222
- '\x6e\x6f\x69\x73\x65\x6b\x65\x79',
223
- '\x73\x75\x62\x6a\x65\x63\x74',
224
- '\x72\x65\x70\x6c\x79\x5f\x6d\x65\x73\x73',
225
- '\x20\x43\x4f\x4d\x4d\x41\x4e\x44\x3a\x20',
226
- '\x73\x65\x6c\x65\x63\x74\x65\x64\x52\x6f',
227
- '\x73\x65\x6c\x65\x63\x74\x65\x64\x49\x64',
228
- '\x67\x65\x6e\x4e\x45\x57\x73\x65\x73',
229
- '\x64\x6e\x31\x35\x76\x51',
230
- '\x74\x6f\x20\x75\x73\x65',
231
- '\x6f\x6c\x65\ud83d\udc83\ud83c\udffb\u2665\ufe0f',
232
- '\x69\x62\x62\x2e\x63\x6f\x2f\x30\x56\x72',
233
- '\x77\x65\x6c\x70\x69\x63\x75\x72\x6c',
234
- '\x20\x67\x72\x6f\x75\x70\x20\x66\x72\x6f',
235
- '\x74\x65\x6d\x70\x6c\x61\x74\x65\x42\x75',
236
- '\x65\x4b\x65\x79\x49\x64\x20\x3d\x20\x24',
237
- '\x63\x6f\x6d\x6d\x69\x74\x3b',
238
- '\x53\x74\x61\x74\x65\x4b\x65\x79\x49\x64',
239
- '\x20\x0a\u2023\x20\x4a\x49\x44\x3a\x20',
240
- '\x6d\x61\x6e\x6f\x6a\x2d\x61\x6d\x64\x69',
241
- '\x4c\x4f\x47\x5f\x4a\x49\x44',
242
- '\x6d\x64\x61\x2f\x51\x75\x65\x65\x6e\x41',
243
- '\x5d\x2d\x5b\x47\x52\x50\x3a\x20',
244
- '\x79\x49\x64',
245
- '\x6b\x65\x79\x73',
246
- '\x76\x69\x64\x65\x6f\x4d\x65\x73\x73\x61',
247
- '\x20\x2d\x20\u1d0d\u1d1c\u029f\u1d1b\u026a\x20\u1d05',
248
- '\x69\x73\x4d\x65\x64\x69\x61',
249
- '\x69\x73\x47\x72\x6f\x75\x70\x41\x64\x6d',
250
- '\x6e\x65\x78\x74\x70\x72\x65\x6b\x65\x79',
251
- '\x6f\x70\x65\x72\x61\x74\x65',
252
- '\x6f\x6e\x49\x64',
253
- '\x31\x2e\x30\x2e\x30',
254
- '\x62\x75\x74\x74\x6f\x6e\x73\x4d\x65\x73',
255
- '\x61\x67\x65',
256
- '\x39\x34\x34\x30\x34\x40\x73\x2e\x77\x68',
257
- '\ud83c\udf9e\ufe0f\x20\x41\x4e\x20\x54\x65\x63\x68\x20',
258
- '\x66\x6f\x6f\x74\x65\x72\x54\x58\x54',
259
- '\x20\x55\x73\x61\x67\x65\x2a\x0a\x0a\u2023',
260
- '\x20\x41\x67\x61\x69\x6e\x20\x41\x6e\x64',
261
- '\x74\x2c\x20\x73\x69\x67\x6e\x65\x64\x49',
262
- '\x6f\x70\x65\x6e',
263
- '\x74\x65\x73\x74',
264
- '\ud83d\udcdf\x20\x51\x75\x65\x65\x6e\x20\x41\x6d',
265
- '\x74\x3a\x20',
266
- '\x61\x63\x74\x69\x6f\x6e',
267
- '\x66\x72\x6f\x6d\x20\x6f\x66\x66\x69\x63',
268
- '\x77\x72\x69\x74\x65\x46\x69\x6c\x65',
269
- '\x75\x6e\x6c\x69\x6e\x6b\x53\x79\x6e\x63',
270
- '\x65\x65\x74\x69\x6e\x67\x73\x44\x42',
271
- '\x55\x6e\x75\x70\x6c\x6f\x61\x64\x65\x64',
272
- '\x69\x6d\x61\x67\x65\x2e\x70\x6e\x67',
273
- '\x72\x61\x74\x69\x6f\x6e\x49\x64\x20\x3d',
274
- '\x64\x65\x6c\x65\x74\x65',
275
- '\x6f\x61\x64\x65\x64\x70\x72\x65\x6b\x65',
276
- '\x52\x65\x73\x74\x61\x72\x74\x20\x52\x65',
277
- '\x69\x74\x73\x20\x64\x65\x74\x65\x63\x74',
278
- '\x2f\x61\x70\x70\x73\x2f',
279
- '\x70\x75\x73\x68\x4e\x61\x6d\x65',
280
- '\x63\x6f\x6e\x6e\x44\x4f\x4e\x45',
281
- '\x73\x74\x72\x69\x6e\x67\x69\x66\x79',
282
- '\x2e\x2f\x71\x72\x5f\x63\x6f\x64\x65\x2f',
283
- '\x36\x71\x4a\x58\x2f\x32\x30\x32\x32\x30',
284
- '\x74\x6f\x53\x74\x72\x69\x6e\x67',
285
- '\x62\x6f\x74\x4e\x75\x6d\x62\x65\x72\x4a',
286
- '\x20\x0a\u2023\x20\x47\x72\x6f\x75\x70\x20',
287
- '\x6f\x75\x74\x70\x75\x74',
288
- '\x20\x53\x65\x72\x76\x65\x72\x2c\x20\x72',
289
- '\x2e\x2f\x61\x6d\x64\x69\x5f\x73\x65\x73',
290
- '\x74\x72\x69\x6d',
291
- '\x73\x65\x63\x74\x69\x6f\x6e\x73',
292
- '\x77\x2e\x79\x6f\x75\x74\x75\x62\x65\x2e',
293
- '\x43\x48\x41\x54\x5f\x55\x50\x44\x41\x54',
294
- '\x73\x6c\x69\x63\x65',
295
- '\x70\x61\x72\x74\x69\x63\x69\x70\x61\x6e',
296
- '\x42\x6f\x74\x5f\x4e\x75\x6d\x62\x65\x72',
297
- '\x61\x6e\x6e\x65\x6c',
298
- '\x43\x6f\x6e\x6e\x65\x63\x74\x69\x6f\x6e',
299
- '\x62\x75\x74\x74\x6f\x6e\x73\x52\x65\x73',
300
- '\x64\x65\x62\x75\x67',
301
- '\x72\x65\x6d\x6f\x74\x65\x4a\x69\x64',
302
- '\x36\x2c\x24\x37\x2c\x24\x38\x2c\x24\x39',
303
- '\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67',
304
- '\x65\x72\x74\x79',
305
- '\x69\x5f\x44\x65\x76\x69\x63\x65',
306
- '\x6d\x65\x73\x73\x61\x67\x65\x43\x6f\x6e',
307
- '\x64\x65\x73\x63',
308
- '\x68\x74\x74\x70\x73\x3a\x2f\x2f',
309
- '\x36\x2c\x20\x66\x69\x72\x73\x74\x55\x6e',
310
- '\x34\x32\x50\x79\x46\x6d\x4e\x63',
311
- '\x24\x35\x2c\x20\x6e\x65\x78\x74\x50\x72',
312
- '\x69\x6f\x6e\x2e\x0a\x0a\ud83d\udc83\ud83c\udffb\u2665\ufe0f\x49\x6e',
313
- '\x73\x74\x61\x6c\x6c\x20\x62\x6f\x74\x20',
314
- '\x69\x6d\x65\x73\x74\x61\x6d\x70\x20\x74',
315
- '\x40\x61\x64\x69\x77\x61\x6a\x73\x68\x69',
316
- '\x64\x6e\x31\x35\x76\x51\x3f\x73\x75\x62',
317
- '\x69\x6d\x61\x67\x65',
318
- '\x6e\x5f\x6a\x69\x64\x44\x42',
319
- '\x74\x69\x6d\x65\x64\x4f\x75\x74',
320
- '\x51\x52\x43\x6f\x6e\x6e\x65\x63\x74\x65',
321
- '\x63\x6d\x64\x49\x6e\x66\x6f',
322
- '\x20\x4c\x6f\x73\x74\x20\x66\x72\x6f\x6d',
323
- '\x63\x68\x69\x6c\x64',
324
- '\x5b\x43\x4f\x4d\x4d\x41\x4e\x44\x3a\x20',
325
- '\x67\x65\x74',
326
- '\x72\x65\x61\x64\x46\x69\x6c\x65',
327
- '\x41\x4d\x45\x3a\x20',
328
- '\x72\x65\x70\x6c\x61\x63\x65',
329
- '\x20\x74\x65\x78\x74\x2c\x20\x73\x69\x67',
330
- '\x2c\x20\x6d\x65\x20\x74\x65\x78\x74\x2c',
331
- '\x69\x6c\x65\x73\x2e\x2e\x2e',
332
- '\x20\x74\x65\x78\x74\x2c\x20\x61\x64\x76',
333
- '\x72\x69\x7a\x65\x64\x20\x73\x6f\x75\x72',
334
- '\x42\x75\x74\x74\x6f\x6e',
335
- '\x2f\x6f\x77\x6e\x65\x72\x2e\x6a\x73\x6f',
336
- '\x64\x69\x20\x2d\x20\x57\x69\x6b\x69',
337
- '\x71\x75\x6f\x74\x65\x64',
338
- '\x2e\x68\x65\x72\x6f\x6b\x75\x61\x70\x70',
339
- '\x74\x74\x6f\x6e\x49\x64',
340
- '\x79\x6f\x75\x72\x20\x62\x6f\x74\x20\x6c',
341
- '\x61\x63\x63\x6f\x75\x6e\x74',
342
- '\x46\x46\x21\x2a',
343
- '\x6c\x2f\x55\x43\x5a\x78\x38\x55\x31\x45',
344
- '\x57\x77\x73\x5a\x2f\x32\x30\x32\x32\x30',
345
- '\x64\x69\x73\x70\x6c\x61\x79\x54\x65\x78',
346
- '\x61\x74\x73\x61\x70\x70\x2e\x6e\x65\x74',
347
- '\x73\x65\x6e\x64\x65\x72',
348
- '\x61\x6e\x6e\x65\x64\x20\x79\x6f\x75\x20',
349
- '\x69\x63\x65\ud83d\udc83\u2764',
350
- '\x68\x74\x74\x70\x73\x3a\x2f\x2f\x69\x2e',
351
- '\x75\x70\x64\x61\x74\x65\x57\x41\x43\x4f',
352
- '\x70\x61\x74\x63\x68',
353
- '\x6e\x6f\x69\x73\x65\x4b\x65\x79',
354
- '\x62\x20\x57\x41\x3a\x20',
355
- '\x36\x34\x33\x36\x64\x62\x37\x2f\x72\x61',
356
- '\x73\x74\x72\x65\x61\x6d',
357
- '\x37\x38\x32\x34\x36\x30\x47\x59\x42\x6f\x65\x4a',
358
- '\x66\x6f\x72\x45\x61\x63\x68',
359
- '\x65\x61\x73\x65\x20\x44\x65\x6c\x65\x74',
360
- '\x66\x69\x72\x73\x74\x75\x6e\x75\x70\x6c',
361
- '\x6c\x65\x76\x65\x6c',
362
- '\x40\x67\x2e\x75\x73',
363
- '\x74\x74\x6f\x6e\x52\x65\x70\x6c\x79\x4d',
364
- '\x6f\x74\x65\x72\x54\x65\x78\x74',
365
- '\x61\x74\x61\x62\x61\x73\x65\x2f\x62\x61',
366
- '\x74\x65\x78\x74',
367
- '\x41\x6d\x64\x69\x20\x77\x69\x74\x68\x6f',
368
- '\x76\x2c\x20\ud83d\udccb\x20\x4c\x61\x74\x65\x73',
369
- '\x73\x69\x6f\x6e\x2e\x6a\x73\x6f\x6e',
370
- '\x6f\x6e\x69\x64',
371
- '\x73\x69\x6c\x65\x6e\x74',
372
- '\x51\x75\x65\x65\x6e\x5f\x41\x6d\x64\x69',
373
- '\x67\x2e\x2e\x2e',
374
- '\x4c\x6f\x73\x74',
375
- '\x69\x63\x69\x70\x61\x6e\x74\x73\x2e\x75',
376
- '\x6e\x65\x78\x74\x50\x72\x65\x4b\x65\x79',
377
- '\x70\x72\x69\x76\x61\x74\x65\x2f',
378
- '\x64\x65\x66\x61\x75\x6c\x74\x51\x75\x65',
379
- '\x65\x78\x70\x6f\x72\x74\x73',
380
- '\u26a0\ufe0f\x20\x2a\x44\x65\x76\x65\x6c\x6f\x70',
381
- '\x74\x69\x74\x79\x6b\x65\x79',
382
- '\x70\x20\x77\x69\x74\x68\x20\x69\x64\x3a',
383
- '\x52\x65\x70\x6c\x61\x63\x65\x64',
384
- '\x72\x6f\x77\x73',
385
- '\x39\x34\x37\x35\x39\x35\x35\x31\x32\x39',
386
- '\x74\x6f\x4c\x6f\x77\x65\x72\x43\x61\x73',
387
- '\x39\x34\x37\x35\x37\x36\x37\x32\x38\x37',
388
- '\x52\x45\x41\x44\x5f\x43\x4d\x44',
389
- '\x53\x65\x73\x73\x69\x6f\x6e\x20\x46\x69',
390
- '\x63\x6f\x6e\x6e\x65\x63\x74\x69\x6f\x6e',
391
- '\x5b\x49\x6e\x62\x6f\x78\x5d',
392
- '\x53\x65\x74\x74\x69\x6e\x67\x73',
393
- '\ud83d\udcf2\x20\x4e\x6f\x77\x20\x61\x6c\x6c\x20',
394
- '\x68\x74\x74\x70\x73\x3a\x2f\x2f\x61\x6d',
395
- '\x31\x30\x38\x33\x35\x30\x30\x77\x4a\x4f\x76\x42\x42',
396
- '\x70\x64\x61\x74\x65',
397
- '\x43\x52\x45\x41\x54\x45\x20\x54\x41\x42',
398
- '\x69\x6e\x63\x6c\x75\x64\x65\x73',
399
- '\x77\x65\x6c\x6e\x6f\x74\x65',
400
- '\x73\x65\x6e\x64\x42\x75\x74\x74\x6f\x6e',
401
- '\x67\x72\x6f\x75\x70\x43\x72\x65\x61\x74',
402
- '\x2e\x2e\x2f\x2e\x2e\x2f\x2e\x2e\x2f\x64',
403
- '\x74\x6f\x46\x69\x6c\x65',
404
- '\ud83d\udd16\x20\x56\x65\x72\x73\x69\x6f\x6e\x20',
405
- '\x77\x61\x43\x6f\x6e\x49\x6d\x70\x6f\x72',
406
- '\x66\x69\x72\x73\x74\x55\x6e\x75\x70\x6c',
407
- '\x39\x34\x37\x37\x34\x39\x37\x36\x35\x36',
408
- '\x70\x73\x65\x72\x74',
409
- '\x70\x69\x6e\x6f',
410
- '\x31\x35\x39\x30\x38\x36\x44\x57\x53\x70\x79\x50',
411
- '\x6a\x6f\x69\x6e',
412
- '\x68\x61\x73\x4f\x77\x6e\x50\x72\x6f\x70',
413
- '\x55\x45\x53\x28\x24\x31\x2c\x24\x32\x2c',
414
- '\x67\x72\x6f\x75\x70\x2d\x70\x61\x72\x74',
415
- '\x42\x61\x64\x20\x53\x65\x73\x73\x69\x6f',
416
- '\x59\x6f\x75\x54\x75\x62\x65\x20\x43\x68',
417
- '\x6a\x2d\x4d\x44\x20\x62\x6f\x74\x2e\x2a',
418
- '\x69\x6f\x6e\x3d\x31',
419
- '\x64\x61\x74\x61',
420
- '\x69\x6e\x64\x65\x78',
421
- '\x36\x34\x2c',
422
- '\x79\x69\x64',
423
- '\x2e\x2e\x2f\x2e\x2e\x2f\x2e',
424
- '\x54\x20\x54\x55\x52\x4e\x45\x44\x20\x4f',
425
- '\x0a\u2023\x20\x53\x74\x61\x74\x75\x73\x3a',
426
- '\x61\x6c\x6c\x6f\x77\x65\x64\x4e\x75\x6d',
427
- '\x73\x65\x6c\x65\x63\x74\x65\x64\x42\x75',
428
- '\x69\x64\x65\x6e\x74\x69\x66\x69\x65\x72',
429
- '\x75\x70\x64\x61\x74\x65\x50\x72\x6f\x66',
430
- '\x20\x50\x6c\x65\x61\x73\x65\x20\x73\x63',
431
- '\x75\x74\x20\x70\x65\x72\x6d\x69\x73\x73',
432
- '\x43\x6c\x69\x63\x6b\x20\x68\x65\x72\x65',
433
- '\x44\x69\x73\x63\x6f\x6e\x6e\x65\x63\x74',
434
- '\x72\x48\x61\x73\x50\x72\x65\x4b\x65\x79',
435
- '\x53\x65\x63\x72\x65\x74\x4b\x65\x79\x20',
436
- '\x73\x69\x67\x6e\x65\x64\x49\x64\x65\x6e',
437
- '\x39\x34\x37\x31\x39\x30\x37\x37\x38\x31',
438
- '\x65\x78\x74\x65\x6e\x64\x65\x64\x54\x65',
439
- '\x65\x72\x73\x20\x68\x61\x76\x65\x20\x62',
440
- '\x61\x6e\x20\x74\x68\x65\x20\x51\x52\x20',
441
- '\x32\x33\x30\x31\x34\x38\x36\x43\x77\x51\x58\x5a\x42',
442
- '\x4c\x45\x20\x61\x75\x74\x68\x28\x6e\x6f',
443
- '\x20\x0a\u2023\x20\x43\x48\x41\x54\x20\x4e',
444
- '\x62\x61\x64\x53\x65\x73\x73\x69\x6f\x6e',
445
- '\x20\x74\x65\x78\x74\x29\x3b',
446
- '\x74\x65\x78\x74\x2c\x20\x6e\x65\x78\x74',
447
- '\x74\x72\x75\x65',
448
- '\x74\x69\x74\x69\x65\x73',
449
- '\x70\x72\x69\x6e\x74\x51\x52\x49\x6e\x54',
450
- '\x67\x65\x64\x20\x4f\x75\x74\x2c\x20\x50',
451
- '\x65\x72\x69\x66\x79\x69\x6e\x67\x20\x66',
452
- '\x65\x72\x6d\x69\x6e\x61\x6c',
453
- '\x48\x45\x52\x4f\x4b\x55\x5f\x41\x50\x49',
454
- '\x2e\x6a\x70\x65\x67',
455
- '\x2e\x2e\x2f\x2e\x2e\x2f\x2e\x2e\x2f\x61',
456
- '\x72\x65\x73\x70\x6f\x6e\x73\x65\x54\x79',
457
- '\x61\x64\x76\x73\x65\x63\x72\x65\x74\x6b',
458
- '\x69\x6d\x61\x67\x65\x4d\x65\x73\x73\x61',
459
- '\x20\x73\x75\x70\x70\x6f\x72\x74\x20\x67',
460
- '\x75\x73\x65\x72',
461
- '\x71\x72\x63\x6f\x64\x65',
462
- '\x2e\x6a\x70\x67',
463
- '\x78\x74\x2c\x20\x6c\x61\x73\x74\x41\x63',
464
- '\x73\x74\x69\x63\x6b\x65\x72\x4d\x65\x73',
465
- '\x75\x6e\x74\x20\x3d\x20\x24\x39\x2c\x20',
466
- '\x4e\x61\x6d\x65\x3a\x20',
467
- '\x66\x6f\x6f\x74\x65\x72\x54\x65\x78\x74',
468
- '\x74\x6f\x6b\x65\x6e',
469
- '\x2e\x75\x70\x64\x61\x74\x65',
470
- '\x56\x45\x52\x53\x49\x4f\x4e',
471
- '\x73\x73\x61\x67\x65',
472
- '\x6c\x69\x73\x74\x4d\x65\x73\x73\x61\x67',
473
- '\x64\x20\x3d\x20\x24\x31\x33\x3b',
474
- '\x55\x50\x44\x41\x54\x45\x20\x61\x75\x74',
475
- '\x65\x65\x6e\x20\x41\x6d\x64\x69\x20\x61',
476
- '\x68\x74\x74\x70\x73\x3a\x2f\x2f\x67\x69',
477
- '\x76\x65\x72\x73\x69\x6f\x6e',
478
- '\x68\x65\x61\x64\x65\x72\x54\x79\x70\x65',
479
- '\x63\x6d\x64',
480
- '\x73\x65\x6e\x64\x54\x65\x6d\x70\x6c\x61',
481
- '\x72\x65\x61\x64\x64\x69\x72',
482
- '\x20\x54\x69\x6d\x65\x64\x4f\x75\x74\x2c',
483
- '\x69\x73\x54\x61\x67\x67\x65\x64\x44\x6f',
484
- '\x69\x6e\x73\x65\x72\x74\x57\x41\x43\x4f',
485
- '\x61\x72\x65\x20\x72\x65\x61\x64\x79\x20',
486
- '\x6d\x61\x74\x63\x68',
487
- '\x2f\x70\x6e\x67\x3b\x62\x61\x73\x65\x36',
488
- '\x74\x6f\x44\x61\x74\x61\x55\x52\x4c',
489
- '\x73\x69\x67\x6e\x61\x74\x75\x72\x65',
490
- '\x64\x62\x43\x52\x45\x41\x54\x45',
491
- '\x69\x62\x62\x2e\x63\x6f\x2f\x70\x33\x64',
492
- '\x75\x72\x6c\x42\x75\x74\x74\x6f\x6e',
493
- '\x6d\x64\x69\x20\x76\x34\x20\x2d\x20\x56',
494
- '\x61\x75\x74\x68',
495
- '\x63\x6f\x75\x6e\x74\x53\x79\x6e\x63\x54',
496
- '\x65\x44\x65\x73\x63\x72\x69\x70\x74\x69',
497
- '\x6f\x6e\x6e\x65\x63\x74\x65\x64\x21',
498
- '\x6e\x64\x20\x4d\x61\x6e\x6f\x6a\x2d\x4d',
499
- '\x4d\x73\x67',
500
- '\x69\x2d\x4d\x44\x20',
501
- '\x63\x6d\x64\x42\x6c\x6f\x63\x6b\x42\x79',
502
- '\x72\x65\x70\x6c\x79',
503
- '\x61\x64\x6d\x69\x6e',
504
- '\x20\x4f\x70\x65\x6e\x65\x64\x2c\x20\x50',
505
- '\x65\x6e\x63',
506
- '\x6b\x65\x79\x50\x61\x69\x72',
507
- '\x68\x74\x74\x70\x73\x3a\x2f\x2f\x72\x61',
508
- '\x6b\x65\x79',
509
- '\x6c\x65\x61\x73\x65\x20\x43\x6c\x6f\x73',
510
- '\x20\x52\x65\x63\x6f\x6e\x6e\x65\x63\x74',
511
- '\x74\x68\x65\x6e',
512
- '\x4b\x65\x79\x49\x64',
513
- '\x61\x73\x50\x72\x65\x4b\x65\x79\x73\x20',
514
- '\x6e\x64\x73\x20\x68\x65\x72\x65\x2e',
515
- '\x63\x75\x6d\x65\x6e\x74',
516
- '\x63\x6f\x6d\x2f',
517
- '\x65\x72\x63\x6f\x6e\x74\x65\x6e\x74\x2e',
518
- '\x6d\x70\x6c\x61\x74\x65',
519
- '\x6f\x20\x73\x65\x73\x73\x69\x6f\x6e\x20',
520
- '\x6e\x6f\x74\x41\x64\x6d\x69\x6e',
521
- '\x50\x72\x65\x4b\x65\x79\x49\x64\x20\x74',
522
- '\x62\x72\x6f\x77\x73\x65\x72',
523
- '\x67\x72\x70\x43\x4d\x44\x6f\x6e\x6c\x79',
524
- '\x6d\x65\x73\x73\x61\x67\x65',
525
- '\x69\x73\x54\x61\x67\x67\x65\x64\x49\x6d',
526
- '\x71\x75\x69\x72\x65\x64\x2c\x20\x52\x65',
527
- '\x67\x73\x2e\x6a\x70\x67',
528
- '\x4b\x65\x79',
529
- '\x6c\x6f\x67\x67\x65\x64\x4f\x75\x74',
530
- '\x24\x33\x2c\x20\x72\x65\x67\x69\x73\x74',
531
- '\x75\x72\x6c',
532
- '\x3d\x20\x24\x38\x2c\x20\x61\x63\x63\x6f',
533
- '\x73\x69\x67\x6e\x61\x6c\x49\x64\x65\x6e',
534
- '\x74\x74\x6f\x6e\x73\x2d\x6d\x65\x73\x73',
535
- '\x73\x65\x61\x72\x63\x68',
536
- '\x20\x4d\x75\x6c\x74\x69\x2d\x44\x65\x76',
537
- '\x73\x61\x67\x65',
538
- '\x67\x6f\x74',
539
- '\x61\x72\x72\x61\x79\x62\x75\x66\x66\x65',
540
- '\x6d\x65\x73\x73\x61\x67\x65\x73\x2e\x75',
541
- '\x72\x65\x73\x74\x61\x72\x74\x52\x65\x71',
542
- '\x65\x20\x53\x65\x73\x73\x69\x6f\x6e\x20',
543
- '\x63\x6f\x6e\x74\x65\x78\x74\x49\x6e\x66',
544
- '\x6d\x65\x73\x73\x61\x67\x65\x73',
545
- '\x63\x6f\x6e\x76\x65\x72\x73\x61\x74\x69',
546
- '\x6c\x6f\x67',
547
- '\x6d\x64\x69\x2f\x6d\x61\x73\x74\x65\x72',
548
- '\x61\x6e\x67\x75\x61\x67\x65\x2f\x61\x70',
549
- '\x37\x32\x33\x33\x39\x30\x46\x59\x53\x61\x4a\x71',
550
- '\x55\x74\x66\x38',
551
- '\x70\x72\x65\x66\x69\x78',
552
- '\u1d07\u1d20\u026a\u1d04\u1d07',
553
- '\x35\x33\x39\x65\x31\x30\x36\x65\x63\x33',
554
- '\x74\x65\x6d\x70\x6c\x61\x74\x65\x4d\x65',
555
- '\x69\x73\x52\x65\x70\x6c\x79',
556
- '\x69\x73\x65\x4b\x65\x79\x20\x74\x65\x78',
557
- '\ud83d\udcf3\x20\x2a\x43\x6f\x6d\x6d\x61\x6e\x64',
558
- '\x65\x64\x20\u274c',
559
- '\x4d\x61\x6e\x6f\x6a\x5f\x4d\x75\x6c\x74',
560
- '\x20\x55\x70\x64\x61\x74\x65\x73\x2a\x0a',
561
- '\x41\x45\x53',
562
- '\x70\x72\x69\x76\x61\x74\x65',
563
- '\x65\x78\x74\x2c\x20\x6d\x79\x41\x70\x70',
564
- '\x73\x69\x6e\x67\x6c\x65\x53\x65\x6c\x65',
565
- '\x69\x6e\x67\x2e\x2e\x2e',
566
- '\x70\x75\x62\x6c\x69\x63',
567
- '\x0a\x0a\x54\x68\x69\x73\x20\x69\x73\x20'
568
- ];
569
- _0x4822 = function () {
570
- return _0x3f435c;
571
- };
572
- return _0x4822();
3
+ default: makeWASocket,
4
+ DisconnectReason,
5
+ useSingleFileAuthState,
6
+ useMultiFileAuthState,
7
+ MessageRetryMap,
8
+ getDevice,
9
+ makeInMemoryStore,
10
+ fetchLatestBaileysVersion,
11
+ } = require("@adiwajshing/baileys");
12
+
13
+ const axios = require('axios');
14
+ const CryptoJS = require("crypto-js");
15
+ const fs = require("fs");
16
+ const got = require('got');
17
+ const QRCode = require('qrcode')
18
+ const sharp = require('sharp');
19
+
20
+ const amdiDB = require('../../../assets/amdiDB'); // QueenAmdi Database
21
+ const vars = require('../../../assets/amdiSettings')
22
+
23
+ // <<==== HEROKU ====>>
24
+ const Heroku = require('heroku-client');
25
+ const heroku = new Heroku({
26
+ token: vars.HEROKU_API
27
+ });
28
+ let baseURI = '/apps/' + vars.HEROKU_APP;
29
+
30
+ const { state, saveState } = useSingleFileAuthState("./amdi_session.json");
31
+
32
+ const msgRetryCounterMap = {};
33
+
34
+ // <<==== Language ====>>
35
+ const Language = require('../../../language/applyLANG');
36
+ const Lang = Language.getString('amdiModule');
37
+
38
+ // <==== Temp Store ====>
39
+ let messages = []
40
+ function deleteMessageST(messageID) {
41
+ delete messages[messageID]
573
42
  }
574
- function deleteMessageST(_0x1292a4) {
575
- delete messages[_0x1292a4];
43
+ function saveMessageST(messageID, txt) {
44
+ messages[messageID] = txt
576
45
  }
577
- function saveMessageST(_0x325cd3, _0x49d76f) {
578
- messages[_0x325cd3] = _0x49d76f;
579
- }
580
- function getMessageST(_0x1827c4) {
581
- return messages[_0x1827c4];
46
+ function getMessageST(messageID) {
47
+ return messages[messageID]
48
+
582
49
  }
583
50
  function clearMessagesST() {
584
- messages = [];
51
+ messages = []
585
52
  }
586
- setInterval(clearMessagesST, 0x1d4c0);
587
- const retryMessageHandler = async _0x3f7f23 => {
588
- let _0x1338e3 = getMessageST(_0x3f7f23['\x69\x64']);
589
- deleteMessageST(_0x3f7f23['\x69\x64']);
590
- const _0x1564da = {};
591
- _0x1564da[_0x19f8f7(0x530, 0x449) + '\x6f\x6e'] = _0x1338e3;
592
- function _0x19f8f7(_0x21aaad, _0x3165f8) {
593
- return _0x1ad9ba(_0x21aaad - 0x54a, _0x3165f8);
53
+ setInterval(clearMessagesST, 120000)
54
+
55
+ const retryMessageHandler = async message => {
56
+ let text = getMessageST(message.id)
57
+ deleteMessageST(message.id)
58
+ return {
59
+ conversation: text
594
60
  }
595
- return _0x1564da;
596
- };
61
+ }
62
+
597
63
  function deleteAuth() {
598
- function _0x267726(_0x232a66, _0x59e349) {
599
- return _0x36f406(_0x232a66, _0x59e349 - 0x230);
600
- }
601
- function _0x40bff9(_0x5550b9, _0x30079f) {
602
- return _0x36f406(_0x5550b9, _0x30079f - -0x203);
603
- }
604
64
  try {
605
- fs['\x75\x6e\x6c\x69\x6e\x6b\x53\x79\x6e\x63']('\x2e\x2f\x61\x6d\x64\x69\x5f\x73\x65\x73' + _0x40bff9(0x139, 0x197));
606
- } catch (_0x5b35f8) {
607
- console[_0x40bff9(-0xa6, 0x3e)](_0x40bff9(0x30, 0x57) + _0x267726(0x3fc, 0x456) + _0x267726(0x4d6, 0x4ea));
65
+ fs.unlinkSync("./amdi_session.json");
66
+ } catch (err) {
67
+ console.log("There is no session file.");
608
68
  }
609
69
  }
610
- const P = require(_0x1ad9ba(0x168, 0x226));
611
- let MAIN_LOGGER = P({ '\x74\x69\x6d\x65\x73\x74\x61\x6d\x70': () => '\x2c\x22\x74\x69\x6d\x65\x22\x3a\x22' + new Date()['\x74\x6f\x4a\x53\x4f\x4e']() + '\x22' });
612
- const logger = MAIN_LOGGER[_0x36f406(0x317, 0x36c)]({});
613
- logger[_0x1ad9ba(0x138, 0x105)] = _0x36f406(0x2de, 0x39c);
70
+
71
+ // <<==== Logger ====>>
72
+ const P = require("pino");
73
+ let MAIN_LOGGER = P({ timestamp: () => `,"time":"${new Date().toJSON()}"` });
74
+ const logger = MAIN_LOGGER.child({});
75
+ logger.level = 'silent';
76
+
77
+
78
+ // <<==== AUTH-FETCH ====>>
614
79
  let cred, auth_row_count;
615
80
  async function fetchauth() {
616
- function _0x1755b4(_0x475019, _0x4b2c3c) {
617
- return _0x36f406(_0x4b2c3c, _0x475019 - -0x1fc);
618
- }
619
- function _0x16b689(_0x15609f, _0x28e041) {
620
- return _0x1ad9ba(_0x15609f - 0x50f, _0x28e041);
621
- }
622
81
  try {
623
- auth_result = await amdiDB[_0x1755b4(0x71, 0xcf)](_0x1755b4(0x94, -0x6e) + '\x72\x6f\x6d\x20\x61\x75\x74\x68\x3b'), console[_0x16b689(0x4f6, 0x548)](Lang[_0x16b689(0x538, 0x51e)]), auth_row_count = await auth_result[_0x1755b4(0x69, -0x49)];
624
- let _0x59dd52 = auth_result[_0x16b689(0x65e, 0x72f)][0x0];
625
- auth_row_count == 0x0 ? console[_0x16b689(0x4f6, 0x504)](Lang[_0x1755b4(0x111, 0xfb)]) : (console[_0x1755b4(0x45, -0x7)](Lang[_0x16b689(0x673, 0x707) + '\x74']), cred = {
626
- '\x63\x72\x65\x64\x73': {
627
- '\x6e\x6f\x69\x73\x65\x4b\x65\x79': JSON[_0x1755b4(0x10a, 0x83)](_0x59dd52[_0x1755b4(0x10b, 0x1d5)]),
628
- '\x73\x69\x67\x6e\x65\x64\x49\x64\x65\x6e\x74\x69\x74\x79\x4b\x65\x79': JSON[_0x1755b4(0x10a, 0x1fb)](_0x59dd52['\x73\x69\x67\x6e\x65\x64\x69\x64\x65\x6e' + _0x1755b4(0x1aa, 0x15d)]),
629
- '\x73\x69\x67\x6e\x65\x64\x50\x72\x65\x4b\x65\x79': JSON['\x70\x61\x72\x73\x65'](_0x59dd52[_0x16b689(0x578, 0x558) + '\x65\x79']),
630
- '\x72\x65\x67\x69\x73\x74\x72\x61\x74\x69\x6f\x6e\x49\x64': Number(_0x59dd52[_0x16b689(0x5af, 0x5cd) + _0x1755b4(0x19f, 0x145)]),
631
- '\x61\x64\x76\x53\x65\x63\x72\x65\x74\x4b\x65\x79': _0x59dd52[_0x1755b4(0x1f6, 0x1f0) + '\x65\x79'],
632
- '\x6e\x65\x78\x74\x50\x72\x65\x4b\x65\x79\x49\x64': Number(_0x59dd52[_0x1755b4(0x127, 0x1ee) + '\x69\x64']),
633
- '\x66\x69\x72\x73\x74\x55\x6e\x75\x70\x6c\x6f\x61\x64\x65\x64\x50\x72\x65\x4b\x65\x79\x49\x64': Number(_0x59dd52[_0x1755b4(0x195, 0x1e7) + _0x1755b4(0x140, 0xc2) + _0x1755b4(0x1d3, 0x22d)]),
634
- '\x73\x65\x72\x76\x65\x72\x48\x61\x73\x50\x72\x65\x4b\x65\x79\x73': ![],
635
- '\x61\x63\x63\x6f\x75\x6e\x74': JSON[_0x1755b4(0x10a, 0x15a)](_0x59dd52[_0x16b689(0x633, 0x6dc)]),
636
- '\x6d\x65': JSON[_0x1755b4(0x10a, 0x11c)](_0x59dd52['\x6d\x65']),
637
- '\x73\x69\x67\x6e\x61\x6c\x49\x64\x65\x6e\x74\x69\x74\x69\x65\x73': JSON['\x70\x61\x72\x73\x65'](_0x59dd52['\x73\x69\x67\x6e\x61\x6c\x69\x64\x65\x6e' + _0x1755b4(0x1ed, 0x25e)]),
638
- '\x6c\x61\x73\x74\x41\x63\x63\x6f\x75\x6e\x74\x53\x79\x6e\x63\x54\x69\x6d\x65\x73\x74\x61\x6d\x70': 0x0,
639
- '\x6d\x79\x41\x70\x70\x53\x74\x61\x74\x65\x4b\x65\x79\x49\x64': _0x59dd52['\x6d\x79\x61\x70\x70\x73\x74\x61\x74\x65' + '\x6b\x65\x79\x69\x64']
640
- },
641
- '\x6b\x65\x79\x73': state['\x6b\x65\x79\x73']
642
- }, cred[_0x1755b4(0x107, 0x6f)]['\x6e\x6f\x69\x73\x65\x4b\x65\x79'][_0x16b689(0x506, 0x5ba)] = Buffer[_0x1755b4(0x89, 0x16d)](cred[_0x1755b4(0x107, 0x6e)][_0x16b689(0x63f, 0x69c)][_0x16b689(0x506, 0x49d)]), cred[_0x16b689(0x5b8, 0x68d)][_0x1755b4(0x18e, 0x237)][_0x16b689(0x50a, 0x416)] = Buffer[_0x16b689(0x53a, 0x5c2)](cred[_0x16b689(0x5b8, 0x5af)][_0x1755b4(0x18e, 0x149)][_0x1755b4(0x59, 0x10b)]), cred[_0x16b689(0x5b8, 0x582)][_0x16b689(0x692, 0x663) + _0x1755b4(0xe7, 0xa0)][_0x16b689(0x506, 0x5a2)] = Buffer['\x66\x72\x6f\x6d'](cred['\x63\x72\x65\x64\x73'][_0x16b689(0x692, 0x5c2) + _0x1755b4(0xe7, 0x165)][_0x1755b4(0x55, 0xc3)]), cred['\x63\x72\x65\x64\x73'][_0x1755b4(0x1e1, 0x281) + _0x1755b4(0xe7, 0xee)]['\x70\x75\x62\x6c\x69\x63'] = Buffer[_0x16b689(0x53a, 0x552)](cred[_0x16b689(0x5b8, 0x56d)][_0x16b689(0x692, 0x5d5) + _0x1755b4(0xe7, 0x17f)]['\x70\x75\x62\x6c\x69\x63']), cred[_0x16b689(0x5b8, 0x4ea)][_0x16b689(0x592, 0x4e7) + '\x65\x79'][_0x16b689(0x6d8, 0x7ad)]['\x70\x72\x69\x76\x61\x74\x65'] = Buffer[_0x16b689(0x53a, 0x46d)](cred[_0x16b689(0x5b8, 0x555)][_0x16b689(0x592, 0x652) + '\x65\x79'][_0x16b689(0x6d8, 0x6ce)][_0x1755b4(0x55, -0x84)]), cred[_0x1755b4(0x107, 0x101)]['\x73\x69\x67\x6e\x65\x64\x50\x72\x65\x4b' + '\x65\x79'][_0x1755b4(0x227, 0x2a6)]['\x70\x75\x62\x6c\x69\x63'] = Buffer['\x66\x72\x6f\x6d'](cred[_0x16b689(0x5b8, 0x529)][_0x1755b4(0xe1, 0xb3) + '\x65\x79'][_0x16b689(0x6d8, 0x7d7)][_0x1755b4(0x59, 0x11b)]), cred[_0x1755b4(0x107, 0x200)][_0x1755b4(0xe1, 0x54) + '\x65\x79']['\x73\x69\x67\x6e\x61\x74\x75\x72\x65'] = Buffer['\x66\x72\x6f\x6d'](cred[_0x1755b4(0x107, 0xbb)][_0x16b689(0x592, 0x5c1) + '\x65\x79'][_0x1755b4(0x216, 0x289)]), cred['\x63\x72\x65\x64\x73'][_0x16b689(0x4e9, 0x54c) + '\x74\x69\x74\x69\x65\x73'][0x0][_0x1755b4(0x1d9, 0x207) + _0x1755b4(0x33, -0x11)] = Buffer[_0x16b689(0x53a, 0x55c)](cred[_0x16b689(0x5b8, 0x561)][_0x1755b4(0x38, 0x6c) + _0x16b689(0x69e, 0x61c)][0x0][_0x1755b4(0x1d9, 0x1a4) + _0x1755b4(0x33, 0x76)]));
643
- } catch (_0xa084ad) {
644
- console['\x6c\x6f\x67'](Lang[_0x1755b4(0x217, 0x132)]), await amdiDB['\x71\x75\x65\x72\x79'](_0x16b689(0x66b, 0x76e) + _0x16b689(0x698, 0x5c6) + _0x16b689(0x500, 0x430) + _0x1755b4(0x132, 0x33) + '\x64\x65\x6e\x74\x69\x74\x79\x4b\x65\x79' + _0x1755b4(0x176, 0x1a6) + '\x6e\x65\x64\x50\x72\x65\x4b\x65\x79\x20' + _0x16b689(0x5b6, 0x6a2) + _0x16b689(0x5a3, 0x4ab) + _0x1755b4(0x179, 0x230) + _0x1755b4(0x1e0, 0x2dd) + _0x16b689(0x69c, 0x6e4) + _0x16b689(0x4dd, 0x51d) + '\x65\x78\x74\x2c\x20\x66\x69\x72\x73\x74' + _0x16b689(0x5ed, 0x6d2) + _0x1755b4(0x2c, 0xba) + '\x65\x78\x74\x2c\x20\x73\x65\x72\x76\x65' + _0x16b689(0x690, 0x672) + _0x16b689(0x597, 0x634) + _0x16b689(0x5ba, 0x5ea) + _0x16b689(0x628, 0x688) + _0x1755b4(0xa6, -0x55) + _0x16b689(0x59d, 0x5bd) + _0x16b689(0x6ad, 0x6d1) + _0x16b689(0x6cd, 0x619) + _0x16b689(0x618, 0x5bf) + _0x16b689(0x507, 0x4b7) + _0x1755b4(0x11b, 0x86) + _0x16b689(0x69b, 0x75d)), await fetchauth();
82
+ auth_result = await amdiDB.query('select * from auth;');//checking auth table
83
+ console.log(Lang.existWA)
84
+ auth_row_count = await auth_result.rowCount;
85
+ let data = auth_result.rows[0];
86
+ if (auth_row_count == 0) {
87
+ console.log(Lang.genNEWses)
88
+ } else {
89
+ console.log(Lang.waConImport);
90
+ cred = {
91
+ creds: {
92
+ noiseKey: JSON.parse(data.noisekey),
93
+ signedIdentityKey: JSON.parse(data.signedidentitykey),
94
+ signedPreKey: JSON.parse(data.signedprekey),
95
+ registrationId: Number(data.registrationid),
96
+ advSecretKey: data.advsecretkey,
97
+ nextPreKeyId: Number(data.nextprekeyid),
98
+ firstUnuploadedPreKeyId: Number(data.firstunuploadedprekeyid),
99
+ // serverHasPreKeys: Boolean(data.serverhasprekeys),
100
+ serverHasPreKeys: false,
101
+ account: JSON.parse(data.account),
102
+ me: JSON.parse(data.me),
103
+ signalIdentities: JSON.parse(data.signalidentities),
104
+ lastAccountSyncTimestamp: 0, // To allow bot to read the messages
105
+ // lastAccountSyncTimestamp: Number(data.lastaccountsynctimestampb),
106
+ myAppStateKeyId: data.myappstatekeyid,
107
+ },
108
+ keys: state.keys,
109
+ };
110
+ cred.creds.noiseKey.private = Buffer.from(cred.creds.noiseKey.private);
111
+ cred.creds.noiseKey.public = Buffer.from(cred.creds.noiseKey.public);
112
+ cred.creds.signedIdentityKey.private = Buffer.from(
113
+ cred.creds.signedIdentityKey.private
114
+ );
115
+ cred.creds.signedIdentityKey.public = Buffer.from(
116
+ cred.creds.signedIdentityKey.public
117
+ );
118
+ cred.creds.signedPreKey.keyPair.private = Buffer.from(
119
+ cred.creds.signedPreKey.keyPair.private
120
+ );
121
+ cred.creds.signedPreKey.keyPair.public = Buffer.from(
122
+ cred.creds.signedPreKey.keyPair.public
123
+ );
124
+ cred.creds.signedPreKey.signature = Buffer.from(
125
+ cred.creds.signedPreKey.signature
126
+ );
127
+ cred.creds.signalIdentities[0].identifierKey = Buffer.from(
128
+ cred.creds.signalIdentities[0].identifierKey
129
+ );
130
+ }
131
+ } catch (err) {
132
+ console.log(Lang.dbCREATE);//if login fail create a amdiDB
133
+ //console.log(err);
134
+ await amdiDB.query(
135
+ "CREATE TABLE auth(noiseKey text, signedIdentityKey text, signedPreKey text, registrationId text, advSecretKey text, nextPreKeyId text, firstUnuploadedPreKeyId text, serverHasPreKeys text, account text, me text, signalIdentities text, lastAccountSyncTimestamp text, myAppStateKeyId text);");
136
+ await fetchauth();
645
137
  }
646
138
  }
139
+
647
140
  function updateLogin() {
648
- function _0x5bb67f(_0x526f5c, _0x1204dd) {
649
- return _0x1ad9ba(_0x1204dd - 0x299, _0x526f5c);
650
- }
651
- function _0x214406(_0x45c1a8, _0x134556) {
652
- return _0x1ad9ba(_0x134556 - -0x16f, _0x45c1a8);
141
+ try {
142
+ let noiseKey = JSON.stringify(state.creds.noiseKey);
143
+ let signedIdentityKey = JSON.stringify(state.creds.signedIdentityKey);
144
+ let signedPreKey = JSON.stringify(state.creds.signedPreKey);
145
+ let registrationId = state.creds.registrationId;
146
+ let advSecretKey = state.creds.advSecretKey;
147
+ let nextPreKeyId = state.creds.nextPreKeyId;
148
+ let firstUnuploadedPreKeyId = state.creds.firstUnuploadedPreKeyId;
149
+ let serverHasPreKeys = state.creds.serverHasPreKeys;
150
+ let account = JSON.stringify(state.creds.account);
151
+ let me = JSON.stringify(state.creds.me);
152
+ let signalIdentities = JSON.stringify(state.creds.signalIdentities);
153
+ let lastAccountSyncTimestamp = state.creds.lastAccountSyncTimestamp;
154
+ let myAppStateKeyId = state.creds.myAppStateKeyId; //?
155
+ // INSERT / UPDATE LOGIN DATA
156
+ if (auth_row_count == 0) {
157
+ console.log(Lang.insertWACON);
158
+ amdiDB.query(
159
+ "INSERT INTO auth VALUES($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13);",
160
+ [
161
+ noiseKey, signedIdentityKey, signedPreKey, registrationId, advSecretKey, nextPreKeyId,
162
+ firstUnuploadedPreKeyId, serverHasPreKeys, account, me, signalIdentities, lastAccountSyncTimestamp, myAppStateKeyId,
163
+ ]
164
+ );
165
+ amdiDB.query("commit;");
166
+ console.log(Lang.insertWADone);
167
+ } else {
168
+ console.log(Lang.updateWACON);
169
+ amdiDB.query(
170
+ "UPDATE auth SET noiseKey = $1, signedIdentityKey = $2, signedPreKey = $3, registrationId = $4, advSecretKey = $5, nextPreKeyId = $6, firstUnuploadedPreKeyId = $7, serverHasPreKeys = $8, account = $9, me = $10, signalIdentities = $11, lastAccountSyncTimestamp = $12, myAppStateKeyId = $13;",
171
+ [
172
+ noiseKey, signedIdentityKey, signedPreKey, registrationId, advSecretKey, nextPreKeyId, firstUnuploadedPreKeyId,
173
+ serverHasPreKeys, account, me, signalIdentities, lastAccountSyncTimestamp, myAppStateKeyId,
174
+ ]
175
+ );
176
+ }
177
+ amdiDB.query("commit;");
178
+ } catch { }
179
+ }
180
+
181
+ // <<==== Deployment verify functions ====>>
182
+ const getApps = async (appName, token) => {
183
+ try {
184
+ var config = {
185
+ method: 'get',
186
+ url: 'https://api.heroku.com/apps/' + appName,
187
+ headers: {
188
+ 'Accept': 'application/vnd.heroku+json; version=3',
189
+ 'Authorization': `Bearer ${token}`
190
+ }
191
+ };
192
+ let response = await axios(config);
193
+ return response.data.updated_at;
194
+ } catch (error) {
195
+ console.log(error);
653
196
  }
197
+ }
198
+
199
+ const getBuilds = async (appName, token) => {
654
200
  try {
655
- let _0x134a8d = JSON[_0x5bb67f(0x37e, 0x381)](state[_0x214406(-0x55, -0xc6)][_0x5bb67f(0x336, 0x3c9)]), _0x129a56 = JSON[_0x214406(-0x61, -0x87)](state[_0x214406(-0x10b, -0xc6)][_0x214406(-0xec, 0x14) + _0x5bb67f(0x364, 0x322)]), _0x391aa3 = JSON[_0x5bb67f(0x3c3, 0x381)](state[_0x5bb67f(0x35d, 0x342)]['\x73\x69\x67\x6e\x65\x64\x50\x72\x65\x4b' + '\x65\x79']), _0x34948a = state[_0x214406(-0x3a, -0xc6)][_0x5bb67f(0x274, 0x339) + _0x214406(-0x159, -0xa4)], _0x200d8d = state[_0x5bb67f(0x25d, 0x342)][_0x5bb67f(0x2f5, 0x2dd) + '\x65\x79'], _0x53ee1d = state[_0x5bb67f(0x278, 0x342)][_0x5bb67f(0x369, 0x3e0) + '\x49\x64'], _0x1753f9 = state['\x63\x72\x65\x64\x73'][_0x5bb67f(0x4e1, 0x3fe) + _0x5bb67f(0x31b, 0x2c5) + _0x5bb67f(0x2e6, 0x35c)], _0x5b1971 = state[_0x214406(-0xc4, -0xc6)]['\x73\x65\x72\x76\x65\x72\x48\x61\x73\x50' + '\x72\x65\x4b\x65\x79\x73'], _0x20a038 = JSON[_0x214406(-0x16e, -0x87)](state[_0x214406(-0x1c6, -0xc6)]['\x61\x63\x63\x6f\x75\x6e\x74']), _0x236c7c = JSON[_0x214406(-0x125, -0x87)](state[_0x5bb67f(0x322, 0x342)]['\x6d\x65']), _0x9e6bb = JSON[_0x214406(-0x11, -0x87)](state[_0x214406(-0x11, -0xc6)][_0x5bb67f(0x189, 0x273) + _0x214406(0x56, 0x20)]), _0x588268 = state[_0x5bb67f(0x34a, 0x342)]['\x6c\x61\x73\x74\x41\x63\x63\x6f\x75\x6e' + '\x74\x53\x79\x6e\x63\x54\x69\x6d\x65\x73' + _0x5bb67f(0x329, 0x2c9)], _0x17e4ce = state[_0x5bb67f(0x37e, 0x342)][_0x214406(-0x52, -0x13e) + _0x214406(-0x153, -0x1aa)];
656
- auth_row_count == 0x0 ? (console['\x6c\x6f\x67'](Lang[_0x5bb67f(0x408, 0x44c) + '\x4e']), amdiDB['\x71\x75\x65\x72\x79']('\x49\x4e\x53\x45\x52\x54\x20\x49\x4e\x54' + '\x4f\x20\x61\x75\x74\x68\x20\x56\x41\x4c' + _0x5bb67f(0x3c7, 0x405) + '\x24\x33\x2c\x24\x34\x2c\x24\x35\x2c\x24' + _0x214406(-0xbd, -0x72) + _0x214406(-0x69, -0x13b) + '\x31\x32\x2c\x24\x31\x33\x29\x3b', [
657
- _0x134a8d,
658
- _0x129a56,
659
- _0x391aa3,
660
- _0x34948a,
661
- _0x200d8d,
662
- _0x53ee1d,
663
- _0x1753f9,
664
- _0x5b1971,
665
- _0x20a038,
666
- _0x236c7c,
667
- _0x9e6bb,
668
- _0x588268,
669
- _0x17e4ce
670
- ]), amdiDB[_0x5bb67f(0x30e, 0x2ac)](_0x214406(-0xd6, -0xb3)), console[_0x5bb67f(0x1a5, 0x280)](Lang['\x69\x6e\x73\x65\x72\x74\x57\x41\x44\x6f' + '\x6e\x65'])) : (console[_0x214406(-0x228, -0x188)](Lang[_0x214406(-0xf0, -0x41) + '\x4e']), amdiDB[_0x214406(-0x97, -0x15c)](_0x214406(0xd5, 0x3a) + _0x5bb67f(0x31d, 0x2e2) + _0x5bb67f(0x1fa, 0x2ea) + _0x5bb67f(0x335, 0x335) + '\x6e\x74\x69\x74\x79\x4b\x65\x79\x20\x3d' + _0x5bb67f(0x2a3, 0x2e6) + '\x64\x50\x72\x65\x4b\x65\x79\x20\x3d\x20' + _0x5bb67f(0x2b6, 0x270) + _0x214406(-0x3c, -0x8f) + '\x20\x24\x34\x2c\x20\x61\x64\x76\x53\x65' + '\x63\x72\x65\x74\x4b\x65\x79\x20\x3d\x20' + _0x5bb67f(0x474, 0x39f) + _0x214406(-0xeb, -0xb4) + _0x5bb67f(0x495, 0x39d) + _0x214406(-0x245, -0x15a) + '\x65\x4b\x65\x79\x49\x64\x20\x3d\x20\x24' + _0x214406(-0x26c, -0x170) + _0x5bb67f(0x180, 0x25f) + _0x214406(-0xe7, -0x196) + _0x214406(-0xd4, 0x31) + '\x6d\x65\x20\x3d\x20\x24\x31\x30\x2c\x20' + _0x214406(-0x21a, -0x195) + _0x5bb67f(0x272, 0x300) + '\x31\x31\x2c\x20\x6c\x61\x73\x74\x41\x63' + _0x5bb67f(0x3f5, 0x457) + _0x5bb67f(0x3bc, 0x324) + '\x20\x24\x31\x32\x2c\x20\x6d\x79\x41\x70' + _0x214406(-0x77, -0xd0) + _0x214406(0x8c, 0x39), [
671
- _0x134a8d,
672
- _0x129a56,
673
- _0x391aa3,
674
- _0x34948a,
675
- _0x200d8d,
676
- _0x53ee1d,
677
- _0x1753f9,
678
- _0x5b1971,
679
- _0x20a038,
680
- _0x236c7c,
681
- _0x9e6bb,
682
- _0x588268,
683
- _0x17e4ce
684
- ])), amdiDB[_0x214406(-0x254, -0x15c)](_0x5bb67f(0x3fb, 0x355));
685
- } catch {
201
+ var config = {
202
+ method: 'get',
203
+ url: 'https://api.heroku.com/apps/'+ appName + '/builds',
204
+ headers: {
205
+ 'Accept': 'application/vnd.heroku+json; version=3',
206
+ 'Authorization': `Bearer ${token}`
207
+ }
208
+ };
209
+ let response = await axios(config);
210
+ return response.data;
211
+ } catch (error) {
212
+ console.log(error);
686
213
  }
687
214
  }
688
- const Bot_Number = vars[_0x1ad9ba(0x91, 0x13e)] + (_0x1ad9ba(0x14, 0xe7) + _0x36f406(0x1fa, 0x287)), allowedNumbs = [
689
- _0x1ad9ba(0xa5, -0x3d) + '\x32',
690
- _0x1ad9ba(0x184, 0x1a0) + '\x38',
691
- _0x36f406(0x338, 0x3ac) + '\x33',
692
- _0x36f406(0x3e6, 0x3aa) + '\x39',
693
- _0x1ad9ba(0x166, 0x241) + '\x37',
694
- _0x36f406(0x22d, 0x2c6) + '\x39',
695
- '\x39\x34\x37\x38\x35\x34\x33\x35\x34\x36' + '\x32'
696
- ], footerTXT = _0x1ad9ba(0x78, 0x14e) + _0x36f406(0x31e, 0x320) + _0x36f406(0x325, 0x247), MOD = vars[_0x36f406(0x30e, 0x2d0)], util = require('\x75\x74\x69\x6c'), readdir = util[_0x1ad9ba(0x45, 0xa4)](fs[_0x1ad9ba(0x1b0, 0x2ab)]), readFile = util[_0x1ad9ba(0x45, 0x59)](fs[_0x1ad9ba(0x115, 0x9e)]), {inputSettings, getSettings, getSettingsList} = require('\x2e\x2e\x2f\x6c\x69\x62\x2f\x73\x65\x74' + _0x1ad9ba(0xa2, 0x78)), {getBanJids} = require('\x2e\x2e\x2f\x2e\x2e\x2f\x2e\x2e\x2f\x64' + _0x1ad9ba(0x13c, 0xc1) + _0x1ad9ba(0x10d, 0x6a)), {getWelcome, getBye} = require(_0x36f406(0x3fc, 0x3bb) + _0x36f406(0x30b, 0x2cd) + _0x1ad9ba(0xdd, 0x1a1));
697
- function _0x36f406(_0x24b437, _0x576984) {
698
- return _0x1f27(_0x576984 - 0x3b, _0x24b437);
215
+
216
+ const forkGIT = async () => {
217
+ const HEROKU_APP = vars.HEROKU_APP;
218
+ const token = vars.HEROKU_API
219
+ const latestBuild = await getApps(HEROKU_APP, token);
220
+ const builds = await getBuilds(HEROKU_APP, token);
221
+
222
+ let gitURL = ''
223
+ builds.forEach((data)=> {
224
+ if (data.count == 0) return
225
+ if (data.updated_at.split(':')[0] == latestBuild.split(':')[0]) {
226
+ gitURL = data.source_blob.url
227
+ } else {
228
+ gitURL = 'unauthorized'
229
+ }
230
+ })
231
+
232
+ console.log(gitURL)
233
+
234
+ let forkGit;
235
+ if (gitURL.includes('repos/')) {
236
+ const forkUser = gitURL.split('repos/')[1].split('/QueenAmdi')[0]
237
+ forkGit = forkUser + '/QueenAmdi'
238
+ } else if (gitURL.includes('codeload.github.com/')) {
239
+ const forkUser = gitURL.split('codeload.github.com/')[1].split('/QueenAmdi')[0]
240
+ forkGit = forkUser + '/QueenAmdi'
241
+ } else if (gitURL == 'unauthorized') {
242
+ forkGit = 'unauthorized'
243
+ }
244
+
245
+ return forkGit;
699
246
  }
700
- let commandsPrimary = {}, commandsPrivate = {}, commandsAdmin = {}, reactionPrimary = {}, reactionPrivate = {};
701
- function _0x1ad9ba(_0x2f123b, _0x3824c8) {
702
- return _0x1f27(_0x2f123b - -0x21f, _0x3824c8);
247
+
248
+ // <<==== OWNER and USER ====>>
249
+ const Bot_Number = vars.BOT_NUMBER + '@s.whatsapp.net';
250
+ const allowedNumbs = ["94757405652", "94719077818", "94757672873", "94759551299", "94774976567", "94785457519", "94785435462"];
251
+ const footerTXT = 'Η«α΄œα΄‡α΄‡Ι΄ ᴀᴍᴅΙͺ - α΄α΄œΚŸα΄›Ιͺ ᴅᴇᴠΙͺᴄᴇ'
252
+ const MOD = vars.MOD
253
+ const util = require("util");
254
+ const readdir = util.promisify(fs.readdir);
255
+ const readFile = util.promisify(fs.readFile);
256
+ const { inputSettings, getSettings, getSettingsList } = require('../lib/settingsDB')
257
+ const { getBanJids } = require('../../../database/ban_jidDB');
258
+ const { getWelcome, getBye } = require('../../../database/greetingsDB');
259
+
260
+ // <<==== Verify Deploy ====>>
261
+ const verifyDeploy = async () => {
262
+ const fork = await forkGIT();
263
+
264
+ if (fork == 'unauthorized') {
265
+ console.log('β›” This is not a forked deployment. Please fork original https://github.com/BlackAmda/QueenAmdi repository and deploy.')
266
+ process.exit(1);
267
+ }
268
+
269
+ const response = await got('https://api.github.com/repos/' + fork);
270
+ const json = JSON.parse(response.body);
271
+
272
+ const response_OFC = await got('https://api.github.com/repos/BlackAmda/QueenAmdi');
273
+ const json_OFC = JSON.parse(response_OFC.body);
274
+
275
+ if (!json.source) {
276
+ console.log('β›” This is not a forked deployment. Please fork original https://github.com/BlackAmda/QueenAmdi repository and deploy.')
277
+ process.exit(1);
278
+ }
279
+
280
+ if (json.source) {
281
+ const forkcontributors_url = json.contributors_url
282
+ const forkResponse = await got(forkcontributors_url);
283
+ const forkData = JSON.parse(forkResponse.body);
284
+
285
+ let forkContributors = []
286
+ forkData.forEach((data)=> {
287
+ if (data.count == 0) return
288
+ forkContributors.push(data.login)
289
+ })
290
+
291
+ const contributors_url = json_OFC.contributors_url
292
+ const response = await got(contributors_url);
293
+ const data = JSON.parse(response.body);
294
+
295
+ let contributors = []
296
+ data.forEach((data)=> {
297
+ if (data.count == 0) return
298
+ contributors.push(data.login)
299
+ })
300
+
301
+ function arrayEquals(a, b) {
302
+ return Array.isArray(a) &&
303
+ Array.isArray(b) &&
304
+ a.length === b.length &&
305
+ a.every((val, index) => val === b[index]);
306
+ }
307
+
308
+ const status = arrayEquals(contributors, forkContributors);
309
+
310
+ return status;
311
+ }
703
312
  }
313
+
314
+ // <<==== Plugins Controller ====>>
315
+ let commandsPrimary = {};
316
+ let commandsPrivate = {};
317
+ let commandsAdmin = {};
318
+
319
+ let reactionPrimary = {};
320
+ let reactionPrivate = {};
704
321
  let reactionAdmin = {};
322
+
705
323
  var prefix = '';
706
- /\[(\W*)\]/[_0x1ad9ba(0xd6, 0x1ad)](vars['\x50\x52\x45\x46\x49\x58']) ? prefix = vars[_0x1ad9ba(0x5a, 0x51)][_0x36f406(0x44a, 0x40f)](/\[(\W*)\]/)[0x1][0x0] : prefix = '\x2e';
324
+ if (/\[(\W*)\]/.test(vars.PREFIX)) {
325
+ prefix = vars.PREFIX.match(/\[(\W*)\]/)[1][0];
326
+ } else {
327
+ prefix = '.';
328
+ }
329
+
707
330
  const addCommands = async () => {
708
- let _0x5ec839 = _0x2609a1(0x47, 0x3e) + '\x70\x72\x69\x6d\x61\x72\x79\x2f', _0x138c46 = await readdir(_0x5ec839);
709
- _0x138c46[_0x559fa6(0x737, 0x680)](_0x16806e => {
710
- function _0x30750a(_0x1048f2, _0x5882f7) {
711
- return _0x559fa6(_0x5882f7, _0x1048f2 - -0x6ef);
712
- }
713
- function _0x12db94(_0x464afe, _0x3796d7) {
714
- return _0x559fa6(_0x3796d7, _0x464afe - -0x1a);
331
+ let path = "./plugins/primary/";
332
+ let filenames = await readdir(path);
333
+ filenames.forEach((file) => {
334
+ if (file.endsWith(".js")) {
335
+ let { command } = require('../../.' + path + file);
336
+ let cmdMap = command();
337
+ const cmdInfo = cmdMap.cmdInfo;
338
+ for (let c of Object.keys(cmdInfo)) {
339
+ const cmdObjects = cmdInfo[c];
340
+ commandsPrimary[cmdObjects.cmd] = cmdMap.operate;
341
+ reactionPrimary[cmdObjects.cmd] = cmdObjects.react;
715
342
  }
716
- if (_0x16806e[_0x30750a(-0x192, -0x1cc)]('\x2e\x6a\x73')) {
717
- let {command: _0x3c5c80} = require(_0x12db94(0x6a7, 0x63c) + _0x5ec839 + _0x16806e), _0x364b01 = _0x3c5c80();
718
- const _0x3f93ed = _0x364b01[_0x30750a(-0x94, -0x161)];
719
- for (let _0x179e49 of Object[_0x12db94(0x5f5, 0x6d8)](_0x3f93ed)) {
720
- const _0x4d1ed7 = _0x3f93ed[_0x179e49];
721
- commandsPrimary[_0x4d1ed7[_0x30750a(0xa, 0xce)]] = _0x364b01[_0x30750a(-0xda, -0x145)], reactionPrimary[_0x4d1ed7['\x63\x6d\x64']] = _0x4d1ed7['\x72\x65\x61\x63\x74'];
722
- }
343
+ }
344
+ });
345
+
346
+ path = "./plugins/private/";
347
+ filenames = await readdir(path);
348
+ filenames.forEach((file) => {
349
+ if (file.endsWith(".js")) {
350
+ let { command } = require('../../.' + path + file);
351
+ let cmdMap = command();
352
+ const cmdInfo = cmdMap.cmdInfo;
353
+ for (let c of Object.keys(cmdInfo)) {
354
+ const cmdObjects = cmdInfo[c];
355
+ commandsPrivate[cmdObjects.cmd] = cmdMap.operate;
356
+ reactionPrivate[cmdObjects.cmd] = cmdObjects.react;
723
357
  }
724
- }), _0x5ec839 = _0x559fa6(0x551, 0x551) + _0x559fa6(0x70a, 0x693), _0x138c46 = await readdir(_0x5ec839);
725
- function _0x2609a1(_0x47c741, _0x1aa473) {
726
- return _0x36f406(_0x47c741, _0x1aa473 - -0x222);
727
358
  }
728
- _0x138c46[_0x559fa6(0x5fd, 0x680)](_0x5129a => {
729
- function _0x27b88c(_0x2ecf1a, _0x12a623) {
730
- return _0x2609a1(_0x2ecf1a, _0x12a623 - 0x7f);
359
+ });
360
+
361
+ path = "./plugins/admin/";
362
+ filenames = await readdir(path);
363
+ filenames.forEach((file) => {
364
+ if (file.endsWith(".js")) {
365
+ let { command } = require('../../.' + path + file);
366
+ let cmdMap = command();
367
+ const cmdInfo = cmdMap.cmdInfo;
368
+ for (let c of Object.keys(cmdInfo)) {
369
+ const cmdObjects = cmdInfo[c];
370
+ commandsAdmin[cmdObjects.cmd] = cmdMap.operate;
371
+ reactionAdmin[cmdObjects.cmd] = cmdObjects.react;
731
372
  }
732
- function _0xffe5ff(_0x5275c5, _0x3c0f1a) {
733
- return _0x559fa6(_0x3c0f1a, _0x5275c5 - -0x12c);
373
+ }
374
+ });
375
+
376
+ //deleting the files .webp .jpeg .jpg .mp3 .mp4 .png
377
+ path = "./";
378
+ filenames = await readdir(path);
379
+ filenames.forEach((file) => {
380
+ if (file.endsWith(".webp") || file.endsWith(".jpeg") || file.endsWith(".mp3") || file.endsWith(".mp4") || file.endsWith(".jpg") || file.endsWith(".png") || file.endsWith(".gif")) {
381
+ fs.unlinkSync('../../.' + path + file);
382
+ }
383
+ });
384
+ };
385
+
386
+
387
+ // <<==== Queen Amdi Main Function ====>>
388
+ const QueenAmdi = async () => {
389
+ console.log('Queen Amdi Multi-DeviceπŸ’ƒβ€');
390
+ console.log(`πŸ”– Version : ${Lang.version} [Public]`);
391
+
392
+ addCommands()
393
+ /*
394
+ var herokuUpTime = await getSettings('HEROKU_UP_TIME')
395
+ if (herokuUpTime.input == undefined) {
396
+ const HEROKU_APP = vars.HEROKU_APP;
397
+ const token = vars.HEROKU_API
398
+ const latestBuild = await getApps(HEROKU_APP, token);
399
+ const lastCreateAt = latestBuild.split(':')[0]
400
+ await inputSettings('HEROKU_UP_TIME', lastCreateAt)
401
+
402
+ var gitVerification = await getSettings('GIT_VERIFY')
403
+ if (gitVerification.input == undefined) {
404
+ const status = await verifyDeploy();
405
+ if (status == false) {
406
+ await inputSettings('GIT_VERIFY', 'false')
407
+ console.log('β›” Unauthorized code edits detected. You can not edit source code of Queen Amdi without permission. Please fork original https://github.com/BlackAmda/QueenAmdi repository and deploy.')
408
+ process.exit(1);
409
+ } else if (status == true) {
410
+ await inputSettings('GIT_VERIFY', 'true')
734
411
  }
735
- if (_0x5129a['\x65\x6e\x64\x73\x57\x69\x74\x68'](_0x27b88c(0x1f3, 0x109))) {
736
- let {command: _0x251f51} = require(_0x27b88c(0x323, 0x22d) + _0x5ec839 + _0x5129a), _0xb725ac = _0x251f51();
737
- const _0xb9c96c = _0xb725ac[_0xffe5ff(0x52f, 0x57e)];
738
- for (let _0x51fdf3 of Object[_0xffe5ff(0x4e3, 0x4d4)](_0xb9c96c)) {
739
- const _0x1bad6f = _0xb9c96c[_0x51fdf3];
740
- commandsPrivate[_0x1bad6f[_0xffe5ff(0x5cd, 0x526)]] = _0xb725ac['\x6f\x70\x65\x72\x61\x74\x65'], reactionPrivate[_0x1bad6f[_0x27b88c(0x365, 0x265)]] = _0x1bad6f[_0xffe5ff(0x46e, 0x476)];
412
+ } else if (gitVerification.input == 'false') {
413
+ console.log('β›” Unauthorized code edits detected. You can not edit source code of Queen Amdi without permission. Please fork original https://github.com/BlackAmda/QueenAmdi repository and deploy.')
414
+ process.exit(1);
415
+ }
416
+ } else {
417
+ const HEROKU_APP = vars.HEROKU_APP;
418
+ const token = vars.HEROKU_API
419
+ const latestBuild = await getApps(HEROKU_APP, token);
420
+ const lastUpAt = latestBuild.split(':')[0]
421
+
422
+ if (lastUpAt !== herokuUpTime.input) {
423
+ await inputSettings('HEROKU_UP_TIME', lastUpAt)
424
+
425
+ var gitVerification = await getSettings('GIT_VERIFY')
426
+ if (gitVerification.input == undefined) {
427
+ const status = await verifyDeploy();
428
+ if (status == false) {
429
+ await inputSettings('GIT_VERIFY', 'false')
430
+ console.log('β›” Unauthorized code edits detected. You can not edit source code of Queen Amdi without permission. Please fork original https://github.com/BlackAmda/QueenAmdi repository and deploy.')
431
+ process.exit(1);
432
+ } else if (status == true) {
433
+ await inputSettings('GIT_VERIFY', 'true')
741
434
  }
435
+ } else if (gitVerification.input == 'false') {
436
+ console.log('β›” Unauthorized code edits detected. You can not edit source code of Queen Amdi without permission. Please fork original https://github.com/BlackAmda/QueenAmdi repository and deploy.')
437
+ process.exit(1);
742
438
  }
743
- }), _0x5ec839 = _0x2609a1(-0xb2, 0x3e) + '\x61\x64\x6d\x69\x6e\x2f', _0x138c46 = await readdir(_0x5ec839), _0x138c46['\x66\x6f\x72\x45\x61\x63\x68'](_0x12824e => {
744
- function _0xd519f8(_0xcb37da, _0x4851d5) {
745
- return _0x2609a1(_0x4851d5, _0xcb37da - 0x307);
746
- }
747
- function _0x4bd260(_0x34d3ef, _0x4c9738) {
748
- return _0x2609a1(_0x34d3ef, _0x4c9738 - -0x199);
749
- }
750
- if (_0x12824e[_0x4bd260(-0x146, -0x14f)]('\x2e\x6a\x73')) {
751
- let {command: _0x51fb68} = require(_0x4bd260(-0xc9, 0x15) + _0x5ec839 + _0x12824e), _0x327fc8 = _0x51fb68();
752
- const _0x3d7a6f = _0x327fc8['\x63\x6d\x64\x49\x6e\x66\x6f'];
753
- for (let _0x30accc of Object[_0x4bd260(0x8, -0x9d)](_0x3d7a6f)) {
754
- const _0x16b8ca = _0x3d7a6f[_0x30accc];
755
- commandsAdmin[_0x16b8ca[_0xd519f8(0x4ed, 0x5e1)]] = _0x327fc8[_0x4bd260(-0x74, -0x97)], reactionAdmin[_0x16b8ca[_0x4bd260(-0xb6, 0x4d)]] = _0x16b8ca[_0x4bd260(-0x1b8, -0x112)];
439
+ } else if (lastUpAt == herokuUpTime.input) {
440
+ var gitVerification = await getSettings('GIT_VERIFY')
441
+ if (gitVerification.input == undefined) {
442
+ const status = await verifyDeploy();
443
+ if (status == false) {
444
+ await inputSettings('GIT_VERIFY', 'false')
445
+ console.log('β›” Unauthorized code edits detected. You can not edit source code of Queen Amdi without permission. Please fork original https://github.com/BlackAmda/QueenAmdi repository and deploy.')
446
+ process.exit(1);
447
+ } else if (status == true) {
448
+ await inputSettings('GIT_VERIFY', 'true')
756
449
  }
450
+ } else if (gitVerification.input == 'false') {
451
+ console.log('β›” Unauthorized code edits detected. You can not edit source code of Queen Amdi without permission. Please fork original https://github.com/BlackAmda/QueenAmdi repository and deploy.')
452
+ process.exit(1);
757
453
  }
758
- }), _0x5ec839 = '\x2e\x2f', _0x138c46 = await readdir(_0x5ec839);
759
- function _0x559fa6(_0xe9e588, _0x380daf) {
760
- return _0x36f406(_0xe9e588, _0x380daf - 0x2f1);
761
454
  }
762
- _0x138c46[_0x2609a1(0x6a, 0x16d)](_0x33427a => {
763
- function _0xcf0a3e(_0x3703a9, _0x49d2fc) {
764
- return _0x2609a1(_0x3703a9, _0x49d2fc - 0x241);
455
+ }*/
456
+
457
+ setInterval(deleteAuth, 1000 * 60 * 30);
458
+ await fetchauth();
459
+ if (auth_row_count != 0) {
460
+ state.creds = cred.creds;
461
+ }
462
+
463
+ const { version, isLatest } = await fetchLatestBaileysVersion(); // WA Web version checking
464
+ console.log(`πŸ“Ÿ Currently using Web WA: ${version.join(".")}v, πŸ“‹ Latest: ${isLatest}`);
465
+ let noLogs = P({ level: "silent" }); // Hide the chat logs
466
+
467
+
468
+ const amdiCONN = makeWASocket({
469
+ version,
470
+ logger: noLogs,
471
+ defaultQueryTimeoutMs: undefined,
472
+ printQRInTerminal: false,
473
+ browser: [" Queen Amdi-MD ", "Safari", "1.0.0"],
474
+ msgRetryCounterMap,
475
+ auth: state,
476
+ getMessage: retryMessageHandler
477
+ });
478
+
479
+ const store = makeInMemoryStore({
480
+ logger: P().child({ level: "debug", stream: "store" }),
481
+ });
482
+ store.bind(amdiCONN.ev);
483
+
484
+ // <==== Owner ====>
485
+ const LoggerChat = (text) => {
486
+ amdiCONN.sendMessage(vars.LOG_JID, { text: text })
487
+ }
488
+
489
+ // <==== group-participants.update ====>
490
+ amdiCONN.ev.on('group-participants.update', async (grpData) => {
491
+ var chat_updates = await getSettings('CHAT_UPDATES')
492
+ if (chat_updates.input == 'true') {
493
+ try {
494
+ amdiCONN.groupMetadata(grpData.id).then((res) => {
495
+ // console.log(res)
496
+ LoggerChat(`πŸ’  *Group Participant Updates*\n\nβ€£ Status: ${grpData.action} \nβ€£ Group Name: ${res.subject} \nβ€£ JID: ${grpData.id} \nβ€£ Participants: ${grpData.participants[0]}`);
497
+ })
498
+ } catch (e) {
499
+ return;
765
500
  }
766
- function _0x1160d3(_0x382b72, _0x139e3d) {
767
- return _0x2609a1(_0x139e3d, _0x382b72 - -0x1d8);
501
+ }
502
+
503
+ // console.log(grpData)
504
+ if (grpData.action === 'add') {
505
+ const welcomeData = await getWelcome(grpData.id)
506
+ if (welcomeData == -1 || welcomeData.welnote == 'blank') return
507
+ if (welcomeData !== -1 || welcomeData.welnote !== 'blank') {
508
+ const welcomeButtons = [
509
+ {index: 1, urlButton: {displayText: 'πŸ’ƒπŸ» Official Website', url: 'https://amdaniwasa.com/'}},
510
+ {index: 2, urlButton: {displayText: '🎞️ AN Tech YouTube Channel', url: 'https://www.youtube.com/channel/UCZx8U1EU95-Wn9mH4dn15vQ'}}
511
+ ]
512
+ const welcomeTemplate = {
513
+ caption: welcomeData.welnote,
514
+ footer: footerTXT,
515
+ templateButtons: welcomeButtons,
516
+ image: {url: welcomeData.welpicurl}
517
+ }
518
+ return await amdiCONN.sendMessage(grpData.id, welcomeTemplate)
768
519
  }
769
- (_0x33427a[_0xcf0a3e(0x335, 0x28b)]('\x2e\x77\x65\x62\x70') || _0x33427a[_0xcf0a3e(0x37b, 0x28b)](_0xcf0a3e(0x482, 0x40e)) || _0x33427a[_0xcf0a3e(0x33f, 0x28b)](_0xcf0a3e(0x323, 0x314)) || _0x33427a[_0x1160d3(-0x18e, -0x1db)](_0x1160d3(-0x182, -0xeb)) || _0x33427a['\x65\x6e\x64\x73\x57\x69\x74\x68'](_0x1160d3(-0x3, -0x9e)) || _0x33427a[_0x1160d3(-0x18e, -0x242)](_0x1160d3(-0x13d, -0x60)) || _0x33427a[_0xcf0a3e(0x207, 0x28b)](_0x1160d3(-0x161, -0x14e))) && fs[_0xcf0a3e(0x39f, 0x355)]('\x2e\x2e\x2f\x2e\x2e\x2f\x2e' + _0x5ec839 + _0x33427a);
770
- });
771
- }, QueenAmdi = async () => {
772
- console[_0x51ccd6(-0x107, -0x1c3)]('\x51\x75\x65\x65\x6e\x20\x41\x6d\x64\x69' + _0x1d403d(0x595, 0x609) + _0x51ccd6(0x3e, -0x35)), console[_0x51ccd6(-0x107, -0x1f2)](_0x1d403d(0x71b, 0x704) + '\x3a\x20' + Lang['\x76\x65\x72\x73\x69\x6f\x6e'] + '\x20\x5b\x50\x75\x62\x6c\x69\x63\x5d'), addCommands();
773
- function _0x1d403d(_0x349939, _0x30be89) {
774
- return _0x1ad9ba(_0x349939 - 0x5b8, _0x30be89);
775
520
  }
776
- setInterval(deleteAuth, 0x3e8 * 0x3c * 0x1e), await fetchauth();
777
- auth_row_count != 0x0 && (state[_0x51ccd6(-0x45, 0x32)] = cred[_0x51ccd6(-0x45, -0x77)]);
778
- const {
779
- version: _0x47148e,
780
- isLatest: _0x18dc1e
781
- } = await fetchLatestBaileysVersion();
782
- console[_0x51ccd6(-0x107, -0x14a)](_0x51ccd6(-0xe6, 0x11) + _0x1d403d(0x5c8, 0x6ad) + _0x51ccd6(0x43, 0x148) + _0x47148e[_0x51ccd6(0x7c, 0x27)]('\x2e') + (_0x1d403d(0x6f7, 0x7b5) + _0x1d403d(0x690, 0x596)) + _0x18dc1e);
783
- const _0x65b3e = {};
784
- function _0x51ccd6(_0x37b1e1, _0x533719) {
785
- return _0x36f406(_0x533719, _0x37b1e1 - -0x348);
521
+
522
+ if (grpData.action === 'remove') {
523
+ const byeData = await getBye(grpData.id)
524
+ if (byeData == -1 || byeData.welnote == 'blank') return
525
+ if (byeData !== -1 || byeData.byenote !== 'blank') {
526
+ const byeButtons = [
527
+ {index: 1, urlButton: {displayText: 'πŸ’ƒπŸ» Official Website', url: 'https://amdaniwasa.com/'}},
528
+ {index: 2, urlButton: {displayText: '🎞️ AN Tech YouTube Channel', url: 'https://www.youtube.com/channel/UCZx8U1EU95-Wn9mH4dn15vQ'}}
529
+ ]
530
+ const byeTemplate = {
531
+ caption: byeData.byenote,
532
+ footer: footerTXT,
533
+ templateButtons: byeButtons,
534
+ image: {url: byeData.byepicurl}
535
+ }
536
+ return await amdiCONN.sendMessage(grpData.id, byeTemplate)
537
+ }
786
538
  }
787
- _0x65b3e['\x6c\x65\x76\x65\x6c'] = _0x1d403d(0x6fa, 0x6ce);
788
- let _0x1ee00a = P(_0x65b3e);
789
- const _0xae9514 = {};
790
- _0xae9514[_0x1d403d(0x764, 0x6d7)] = _0x47148e, _0xae9514[_0x1d403d(0x602, 0x545)] = _0x1ee00a, _0xae9514[_0x1d403d(0x701, 0x7b8) + _0x51ccd6(-0x72, -0xfb) + '\x73'] = undefined, _0xae9514[_0x1d403d(0x748, 0x7ba) + _0x51ccd6(0xa5, 0x8d)] = ![], _0xae9514[_0x51ccd6(-0x11f, -0x203)] = [
791
- _0x51ccd6(-0x48, 0x49) + _0x51ccd6(0xd5, 0x12d),
792
- '\x53\x61\x66\x61\x72\x69',
793
- _0x51ccd6(-0x22, -0xac)
794
- ], _0xae9514[_0x51ccd6(-0xb7, 0x2e) + '\x75\x6e\x74\x65\x72\x4d\x61\x70'] = msgRetryCounterMap, _0xae9514[_0x1d403d(0x775, 0x6a4)] = state, _0xae9514[_0x1d403d(0x5f1, 0x5cb)] = retryMessageHandler;
795
- const _0x54f19c = makeWASocket(_0xae9514), _0x354f33 = {};
796
- _0x354f33['\x6c\x65\x76\x65\x6c'] = _0x1d403d(0x6b3, 0x615), _0x354f33[_0x1d403d(0x6eb, 0x617)] = '\x73\x74\x6f\x72\x65';
797
- const _0x451eb6 = makeInMemoryStore({ '\x6c\x6f\x67\x67\x65\x72': P()[_0x51ccd6(0x24, 0x117)](_0x354f33) });
798
- _0x451eb6[_0x1d403d(0x636, 0x650)](_0x54f19c['\x65\x76']);
799
- const _0x1d54fc = _0xc1102a => {
800
- const _0x2b6012 = {};
801
- _0x2b6012[_0x56f210(0x72a, 0x698)] = _0xc1102a;
802
- function _0x5208ad(_0x4bca89, _0x567e7c) {
803
- return _0x51ccd6(_0x567e7c - 0x228, _0x4bca89);
539
+ });
540
+
541
+ // <==== messages.upsert ====>
542
+ amdiCONN.ev.on("messages.upsert", async (m) => {
543
+ try {
544
+ const msg = JSON.parse(JSON.stringify(m)).messages[0];
545
+ if (!msg.message || msg.message.reactionMessage) return; //When demote, add, remove etc run, msg.message will return
546
+ if (msg.key.remoteJid == "status@broadcast") return;
547
+
548
+ const content = JSON.stringify(msg.message);
549
+ const clientJID = msg.key.remoteJid;
550
+ const type = Object.keys(msg.message)[0];
551
+
552
+ const code = "manoj-amdi"
553
+ let url = `https://raw.githubusercontent.com/BlackAmda/QueenAmdi/master/owner.json`
554
+ const response = await got(url);
555
+ const ownerJSON = JSON.parse(response.body);
556
+ const banned_users_MM = ownerJSON.data.Manoj_Multi_Device.banned_user
557
+ const banned_users_QA = ownerJSON.data.Queen_Amdi.banned_user
558
+ const bytes_MM = CryptoJS.AES.decrypt(banned_users_MM, code);
559
+ const bytes_QA = CryptoJS.AES.decrypt(banned_users_QA, code);
560
+ const decrypt_JIDS_MM = bytes_MM.toString(CryptoJS.enc.Utf8);
561
+ const decrypt_JIDS_QA = bytes_QA.toString(CryptoJS.enc.Utf8);
562
+ var abc = decrypt_JIDS_MM.split(',');
563
+ var efg = decrypt_JIDS_QA.split(',');
564
+ const banned_group_MM = ownerJSON.data.Manoj_Multi_Device.banned_group
565
+ const banned_group_QA = ownerJSON.data.Queen_Amdi.banned_group
566
+
567
+
568
+ // <==== reply ====>
569
+ const reply = (replyCL) => {
570
+ amdiCONN.sendMessage(clientJID, { text: replyCL }, { quoted: (fromMe === false ? m.messages[0] : '') })
804
571
  }
805
- function _0x56f210(_0x4a6f40, _0x42111d) {
806
- return _0x51ccd6(_0x4a6f40 - 0x6db, _0x42111d);
572
+
573
+ // <==== Audio Message ====>
574
+ const sendAudioMsg = (audioURL, mimeType, pttStatus) => {
575
+ amdiCONN.sendMessage(
576
+ clientJID,
577
+ { audio: { url: audioURL }, mimetype: mimeType, ptt: pttStatus },
578
+ { quoted: (fromMe === false ? m.messages[0] : '') }
579
+ )
807
580
  }
808
- _0x54f19c[_0x5208ad(0x153, 0x238) + '\x65'](vars[_0x56f210(0x6ad, 0x648)], _0x2b6012);
809
- };
810
- return _0x54f19c['\x65\x76']['\x6f\x6e'](_0x51ccd6(0x7f, 0xb2) + _0x1d403d(0x6fe, 0x7fe) + _0x1d403d(0x713, 0x730), async _0x59d53a => {
811
- function _0x2a5748(_0x99ff30, _0x48bbed) {
812
- return _0x51ccd6(_0x99ff30 - 0x109, _0x48bbed);
581
+
582
+ // <==== Button Message ====>
583
+ const sendButtonMsg = (buttons, text, tagMsg, imageURL) => {
584
+ var buttonMessage = ''
585
+ if (imageURL) {
586
+ buttonMessage = {
587
+ image: {url: imageURL },
588
+ caption: text,
589
+ footer: footerTXT,
590
+ buttons: buttons,
591
+ headerType: 4
592
+ }
593
+ } else if (!imageURL) {
594
+ buttonMessage = {
595
+ text: text,
596
+ footer: footerTXT,
597
+ buttons: buttons,
598
+ headerType: 1
599
+ }
600
+ }
601
+ amdiCONN.sendMessage(clientJID, buttonMessage, { quoted: (tagMsg === true ? (fromMe === false ? m.messages[0] : '') : '') })
602
+ }
603
+
604
+ // <==== Template Message ====>
605
+ const sendTemplate = (buttons, text, tagMsg, imageURL) => {
606
+ var templateMessage = ''
607
+ if (imageURL) {
608
+ templateMessage = {
609
+ caption: text,
610
+ footer: footerTXT,
611
+ templateButtons: buttons,
612
+ image: {url: imageURL}
613
+ }
614
+ } else if (!imageURL) {
615
+ templateMessage = {
616
+ text: text,
617
+ footer: footerTXT,
618
+ templateButtons: buttons
619
+ }
620
+ }
621
+ amdiCONN.sendMessage(clientJID, templateMessage, { quoted: (tagMsg === true ? (fromMe === false ? m.messages[0] : '') : '') })
813
622
  }
814
- var _0x13dd0b = await getSettings(_0x2a5748(0x10f, 0x1f2) + '\x45\x53');
815
- function _0x32b13f(_0x864637, _0x57dcfc) {
816
- return _0x51ccd6(_0x57dcfc - 0x267, _0x864637);
623
+
624
+ // <==== List Message ====>
625
+ const sendListMsg = (listInfo, sections) => {
626
+ var buttonTXT = ''
627
+ if (listInfo.buttonTXT == 'default') { buttonTXT = 'Click here' }
628
+ else { buttonTXT = listInfo.buttonTXT }
629
+
630
+ const listMessage = {
631
+ text: listInfo.text,
632
+ footer: footerTXT,
633
+ title: listInfo.title,
634
+ buttonText: buttonTXT,
635
+ sections
636
+ };
637
+ amdiCONN.sendMessage(clientJID, listMessage, { quoted: (fromMe === false ? m.messages[0] : '') })
817
638
  }
818
- if (_0x13dd0b[_0x32b13f(0x2c2, 0x1eb)] == _0x32b13f(0x24d, 0x307))
819
- try {
820
- _0x54f19c[_0x32b13f(0x276, 0x1c0) + '\x61\x74\x61'](_0x59d53a['\x69\x64'])[_0x32b13f(0x22f, 0x13d)](_0x2147c1 => {
821
- function _0x50431e(_0x2e7a13, _0x58f0a7) {
822
- return _0x2a5748(_0x2e7a13 - -0xd5, _0x58f0a7);
823
- }
824
- function _0x4de43b(_0x399bb1, _0xccd9bc) {
825
- return _0x2a5748(_0xccd9bc - -0x7d, _0x399bb1);
826
- }
827
- _0x1d54fc(_0x4de43b(0xf4, 0x20) + _0x4de43b(-0x40, -0xe) + _0x4de43b(0x69, -0x6d) + _0x4de43b(0x162, 0x116) + '\x20' + _0x59d53a[_0x4de43b(-0x8a, 0x77)] + (_0x50431e(0x33, 0xee) + _0x4de43b(0x17f, 0x13f)) + _0x2147c1[_0x50431e(-0xc, -0xb4)] + _0x50431e(0x4, -0x14) + _0x59d53a['\x69\x64'] + (_0x50431e(-0x4a, -0x114) + _0x4de43b(-0x5e, 0x30)) + _0x59d53a[_0x50431e(0x3c, -0x45) + '\x74\x73'][0x0]);
828
- });
829
- } catch (_0x5f6d75) {
830
- return;
639
+
640
+ // <==== Reaction ====>
641
+ const react = (emoji, reactMsg) => {
642
+ const reactionMessage = {
643
+ react: {
644
+ text: emoji,
645
+ key: reactMsg.key
646
+ }
831
647
  }
832
- if (_0x59d53a[_0x32b13f(0x263, 0x252)] === '\x61\x64\x64') {
833
- const _0x8aa772 = await getWelcome(_0x59d53a['\x69\x64']);
834
- if (_0x8aa772 == -0x1 || _0x8aa772[_0x2a5748(0x179, 0x171)] == _0x32b13f(0x27f, 0x1ab))
835
- return;
836
- if (_0x8aa772 !== -0x1 || _0x8aa772[_0x2a5748(0x179, 0x1d8)] !== _0x2a5748(0x4d, -0x42)) {
837
- const _0x4770f9 = {};
838
- _0x4770f9['\x64\x69\x73\x70\x6c\x61\x79\x54\x65\x78' + '\x74'] = _0x2a5748(0x49, 0x4c) + '\x20\x57\x65\x62\x73\x69\x74\x65', _0x4770f9[_0x2a5748(-0xd, 0xe1)] = '\x68\x74\x74\x70\x73\x3a\x2f\x2f\x61\x6d' + _0x32b13f(0x163, 0x1c4) + _0x32b13f(0x1ed, 0x198);
839
- const _0xca8aad = {};
840
- _0xca8aad[_0x2a5748(0x18e, 0x21c)] = 0x1, _0xca8aad[_0x32b13f(0x309, 0x334)] = _0x4770f9;
841
- const _0x1a5919 = {};
842
- _0x1a5919[_0x32b13f(0x200, 0x2a1) + '\x74'] = _0x2a5748(0xeb, 0x1d3) + _0x2a5748(0x18a, 0xb7) + _0x32b13f(0x1ae, 0x271), _0x1a5919[_0x2a5748(-0xd, -0x100)] = _0x2a5748(0x8a, 0x14c) + _0x32b13f(0x34b, 0x26c) + _0x2a5748(0x86, 0x18) + '\x6c\x2f\x55\x43\x5a\x78\x38\x55\x31\x45' + '\x55\x39\x35\x2d\x57\x6e\x39\x6d\x48\x34' + _0x32b13f(0x20c, 0x22d);
843
- const _0x5dfcb9 = {};
844
- _0x5dfcb9[_0x2a5748(0x18e, 0x1f1)] = 0x2, _0x5dfcb9[_0x32b13f(0x37b, 0x334)] = _0x1a5919;
845
- const _0x5c5a6b = [
846
- _0xca8aad,
847
- _0x5dfcb9
848
- ], _0x46df7b = {};
849
- _0x46df7b[_0x2a5748(0x80, 0x158)] = _0x8aa772[_0x2a5748(0x179, 0x100)], _0x46df7b[_0x2a5748(0xb5, 0x4b)] = footerTXT, _0x46df7b[_0x32b13f(0x2ac, 0x233) + _0x2a5748(0x55, 0x78)] = _0x5c5a6b, _0x46df7b[_0x32b13f(0x2a8, 0x285)] = {}, _0x46df7b[_0x32b13f(0x2a8, 0x285)]['\x75\x72\x6c'] = _0x8aa772[_0x32b13f(0x2bd, 0x231)];
850
- const _0x282f80 = _0x46df7b;
851
- return await _0x54f19c[_0x32b13f(0x225, 0x277) + '\x65'](_0x59d53a['\x69\x64'], _0x282f80);
648
+ amdiCONN.sendMessage(clientJID, reactionMessage)
649
+ }
650
+
651
+ // <==== Admin Fetch ====>
652
+ const writeGroupAdmins = (participants) => {
653
+ admins = [];
654
+ for (let i of participants) {
655
+ ((i.admin == 'admin') || (i.admin == 'superadmin')) ? admins.push(i.id) : "";
852
656
  }
657
+ return admins;
658
+ };
659
+
660
+ // <==== Bot Number ====>
661
+ let botNumberJid = amdiCONN.user.id;
662
+ botNumberJid =
663
+ botNumberJid.slice(0, botNumberJid.search(":")) +
664
+ botNumberJid.slice(botNumberJid.search("@"));
665
+
666
+
667
+ // <==== Message Body Reader ====>
668
+ let msgBody = type === "conversation" && msg.message.conversation.startsWith(prefix)
669
+ ? msg.message.conversation : type == "imageMessage" &&
670
+ msg.message.imageMessage.caption &&
671
+ msg.message.imageMessage.caption.startsWith(prefix)
672
+ ? msg.message.imageMessage.caption : type == "videoMessage" &&
673
+ msg.message.videoMessage.caption &&
674
+ msg.message.videoMessage.caption.startsWith(prefix)
675
+ ? msg.message.videoMessage.caption : type == "extendedTextMessage" &&
676
+ msg.message.extendedTextMessage.text &&
677
+ msg.message.extendedTextMessage.text.startsWith(prefix)
678
+ ? msg.message.extendedTextMessage.text
679
+ : type == "buttonsResponseMessage"
680
+ ? msg.message.buttonsResponseMessage.selectedButtonId
681
+ : type == "templateButtonReplyMessage"
682
+ ? msg.message.templateButtonReplyMessage.selectedId
683
+ : type == "listResponseMessage"
684
+ ? msg.message.listResponseMessage.singleSelectReply.selectedRowId
685
+ : type == "messageContextInfo"
686
+ ? (msg.message.buttonsResponseMessage?.selectedButtonId || msg.message.listResponseMessage?.singleSelectReply.selectedRowId || msg.text)
687
+ : "";
688
+
689
+
690
+ if (msgBody[1] == " ") msgBody = msgBody[0] + msgBody.slice(2);
691
+ const evv = msgBody.trim().split(/ +/).slice(1).join(' ');
692
+ const command = msgBody.slice(1).trim().split(/ +/).shift().toLowerCase();
693
+ const input = msgBody.trim().split(/ +/).slice(1);
694
+ const isCmd = msgBody.startsWith(prefix);
695
+ const isGroup = clientJID.endsWith("@g.us");
696
+ const fromMe = m.messages[0].key.fromMe
697
+ const msgDevice = getDevice(m.messages[0].key.id)
698
+
699
+ let isReply;
700
+ if (m.messages[0].message.hasOwnProperty('extendedTextMessage') &&
701
+ m.messages[0].message.extendedTextMessage.hasOwnProperty('contextInfo') === true &&
702
+ m.messages[0].message.extendedTextMessage.contextInfo.hasOwnProperty('quotedMessage')) {
703
+ isReply = m.messages[0].message.extendedTextMessage.contextInfo.quotedMessage
704
+ } else {
705
+ isReply = false
853
706
  }
854
- if (_0x59d53a[_0x32b13f(0x1d4, 0x252)] === '\x72\x65\x6d\x6f\x76\x65') {
855
- const _0x14b0d8 = await getBye(_0x59d53a['\x69\x64']);
856
- if (_0x14b0d8 == -0x1 || _0x14b0d8[_0x2a5748(0x179, 0x128)] == _0x2a5748(0x4d, 0x95))
857
- return;
858
- if (_0x14b0d8 !== -0x1 || _0x14b0d8[_0x2a5748(0x9f, 0x22)] !== '\x62\x6c\x61\x6e\x6b') {
859
- const _0x3b6add = {};
860
- _0x3b6add[_0x2a5748(0x143, 0x3e) + '\x74'] = _0x2a5748(0x49, -0x65) + _0x32b13f(0x2f9, 0x210), _0x3b6add[_0x32b13f(0x109, 0x151)] = _0x32b13f(0x2a0, 0x2d2) + '\x64\x61\x6e\x69\x77\x61\x73\x61\x2e\x63' + _0x32b13f(0x17e, 0x198);
861
- const _0x1445bb = {};
862
- _0x1445bb['\x69\x6e\x64\x65\x78'] = 0x1, _0x1445bb[_0x2a5748(0x1d6, 0x148)] = _0x3b6add;
863
- const _0x363376 = {};
864
- _0x363376[_0x32b13f(0x33b, 0x2a1) + '\x74'] = '\ud83c\udf9e\ufe0f\x20\x41\x4e\x20\x54\x65\x63\x68\x20' + _0x2a5748(0x18a, 0x258) + '\x61\x6e\x6e\x65\x6c', _0x363376[_0x2a5748(-0xd, 0x60)] = _0x32b13f(0x104, 0x1e8) + _0x32b13f(0x244, 0x26c) + _0x2a5748(0x86, 0x15e) + _0x2a5748(0x141, 0xde) + _0x2a5748(0x34, 0x2d) + _0x32b13f(0x2db, 0x22d);
865
- const _0x5aa38c = {};
866
- _0x5aa38c[_0x2a5748(0x18e, 0x23f)] = 0x2, _0x5aa38c[_0x2a5748(0x1d6, 0x144)] = _0x363376;
867
- const _0x417121 = [
868
- _0x1445bb,
869
- _0x5aa38c
870
- ], _0x451251 = {};
871
- _0x451251[_0x32b13f(0x1b6, 0x1de)] = _0x14b0d8[_0x32b13f(0x19e, 0x1fd)], _0x451251[_0x32b13f(0x2f2, 0x213)] = footerTXT, _0x451251[_0x32b13f(0x323, 0x233) + '\x74\x74\x6f\x6e\x73'] = _0x417121, _0x451251[_0x32b13f(0x2f2, 0x285)] = {}, _0x451251[_0x32b13f(0x2f2, 0x285)][_0x32b13f(0x1c7, 0x151)] = _0x14b0d8[_0x2a5748(0x58, 0x20)];
872
- const _0x357f46 = _0x451251;
873
- return await _0x54f19c[_0x32b13f(0x1ce, 0x277) + '\x65'](_0x59d53a['\x69\x64'], _0x357f46);
707
+ const reply_message = isReply != false ? m.messages[0].message.extendedTextMessage.contextInfo.quotedMessage : false
708
+
709
+ /*if (fromMe == false || !allowedNumbs.includes(senderNumb)) {
710
+ if (msgDevice == 'web') {
711
+ reply('*β›” Other bots are not allowed here!*')
874
712
  }
713
+ }*/
714
+ const exit = async () => {
715
+ process.exit(1);
875
716
  }
876
- }), _0x54f19c['\x65\x76']['\x6f\x6e'](_0x51ccd6(-0x10d, -0x1aa) + _0x51ccd6(0x79, -0x2), async _0x69c583 => {
877
- function _0x1dc7bc(_0x73ae84, _0x272d81) {
878
- return _0x1d403d(_0x73ae84 - -0x596, _0x272d81);
717
+ const warn = async () => {
718
+ await amdiCONN.sendMessage(clientJID, { text: '⚠️ *Unauthorized source code edits detected!* \n\nYou can not edit Queen Amdi without permission.\n\nπŸ’ƒπŸ»β™₯️Install bot from official site : https://amdaniwasa.com/' })
719
+ await amdiCONN.sendMessage(clientJID, { text: '⚠️ *Unauthorized source code edits detected!* \n\nYou can not edit Queen Amdi without permission.\n\nπŸ’ƒπŸ»β™₯️Install bot from official site : https://amdaniwasa.com/' })
720
+ await amdiCONN.sendMessage(clientJID, { text: '⚠️ *Unauthorized source code edits detected!* \n\nYou can not edit Queen Amdi without permission.\n\nπŸ’ƒπŸ»β™₯️Install bot from official site : https://amdaniwasa.com/' })
721
+ await amdiCONN.sendMessage(clientJID, { text: '⚠️ *Unauthorized source code edits detected!* \n\nYou can not edit Queen Amdi without permission.\n\nπŸ’ƒπŸ»β™₯️Install bot from official site : https://amdaniwasa.com/' })
722
+ await amdiCONN.sendMessage(clientJID, { text: '⚠️ *Unauthorized source code edits detected!* \n\nYou can not edit Queen Amdi without permission.\n\nπŸ’ƒπŸ»β™₯️Install bot from official site : https://amdaniwasa.com/' })
723
+ await amdiCONN.sendMessage(clientJID, { text: 'β›” *YOUR BOT TURNED OFF!*' })
879
724
  }
880
- function _0xdfd255(_0x68b95a, _0x1d585e) {
881
- return _0x51ccd6(_0x1d585e - -0x94, _0x68b95a);
725
+
726
+ if (msg.message.hasOwnProperty('templateMessage') && msg.key.fromMe == true) {
727
+ if (msg.message.templateMessage.hydratedTemplate.hydratedFooterText !== footerTXT) {
728
+ warn();
729
+ setTimeout(exit ,8000)
730
+ }
882
731
  }
883
- try {
884
- const _0x73d51f = JSON['\x70\x61\x72\x73\x65'](JSON['\x73\x74\x72\x69\x6e\x67\x69\x66\x79'](_0x69c583))[_0xdfd255(-0xe4, -0x19d)][0x0];
885
- if (!_0x73d51f[_0x1dc7bc(-0xd, -0x3)] || _0x73d51f[_0x1dc7bc(-0xd, 0xd2)]['\x72\x65\x61\x63\x74\x69\x6f\x6e\x4d\x65' + _0xdfd255(0x11f, 0x24)])
886
- return;
887
- if (_0x73d51f[_0xdfd255(-0x2b0, -0x1c1)][_0x1dc7bc(0x11e, 0x90)] == '\x73\x74\x61\x74\x75\x73\x40\x62\x72\x6f' + '\x61\x64\x63\x61\x73\x74')
888
- return;
889
- const _0xe38552 = JSON[_0xdfd255(-0xc, -0x9a)](_0x73d51f[_0xdfd255(-0x26e, -0x1b1)]), _0x5194fe = _0x73d51f[_0xdfd255(-0x16a, -0x1c1)][_0xdfd255(-0x17c, -0x86)], _0x10581e = Object[_0xdfd255(-0x177, -0xbe)](_0x73d51f[_0xdfd255(-0x1c2, -0x1b1)])[0x0], _0x5356be = _0x1dc7bc(0xe1, 0x1d);
890
- let _0x2e7b68 = _0x1dc7bc(-0x1e, -0x11) + '\x77\x2e\x67\x69\x74\x68\x75\x62\x75\x73' + _0x1dc7bc(-0x14, -0xba) + _0xdfd255(-0x135, -0xf6) + _0x1dc7bc(0xe3, 0x66) + _0x1dc7bc(0xa, 0x16) + '\x2f\x6f\x77\x6e\x65\x72\x2e\x6a\x73\x6f' + '\x6e';
891
- const _0x47c97c = await got(_0x2e7b68), _0x393322 = JSON[_0xdfd255(-0x68, -0xd6)](_0x47c97c[_0x1dc7bc(0x30, 0x2a)]), _0xfaa618 = _0x393322[_0xdfd255(-0x85, -0x10)]['\x4d\x61\x6e\x6f\x6a\x5f\x4d\x75\x6c\x74' + '\x69\x5f\x44\x65\x76\x69\x63\x65'][_0xdfd255(-0x17a, -0x161) + '\x72'], _0x253f3b = _0x393322[_0x1dc7bc(0x194, 0x1a2)][_0x1dc7bc(0x165, 0xa7)]['\x62\x61\x6e\x6e\x65\x64\x5f\x75\x73\x65' + '\x72'], _0x85a5d = CryptoJS[_0x1dc7bc(0x18, 0x58)][_0xdfd255(-0x137, -0x115)](_0xfaa618, _0x5356be), _0x19d58d = CryptoJS['\x41\x45\x53'][_0xdfd255(-0x160, -0x115)](_0x253f3b, _0x5356be), _0x2ecbd6 = _0x85a5d[_0x1dc7bc(0x10d, 0x177)](CryptoJS['\x65\x6e\x63'][_0xdfd255(-0x17c, -0x197)]), _0xe82e5e = _0x19d58d['\x74\x6f\x53\x74\x72\x69\x6e\x67'](CryptoJS[_0xdfd255(-0x77, 0x46)][_0xdfd255(-0xe6, -0x197)]);
892
- var _0x4041ab = _0x2ecbd6[_0x1dc7bc(0x9d, 0x170)]('\x2c'), _0x4ef479 = _0xe82e5e['\x73\x70\x6c\x69\x74']('\x2c');
893
- const _0x4ed8ef = _0x393322['\x64\x61\x74\x61']['\x4d\x61\x6e\x6f\x6a\x5f\x4d\x75\x6c\x74' + _0xdfd255(0x5a, -0x82)][_0x1dc7bc(0x31, 0x113) + '\x75\x70'], _0x504500 = _0x393322[_0xdfd255(0x90, -0x10)][_0x1dc7bc(0x165, 0xf4)][_0xdfd255(-0x1bd, -0x173) + '\x75\x70'], _0x13e157 = _0xd9cb54 => {
894
- const _0x21bbf5 = {};
895
- function _0x2e38d0(_0x14e776, _0x2676fd) {
896
- return _0xdfd255(_0x2676fd, _0x14e776 - 0x526);
897
- }
898
- function _0xe81923(_0x4c27f1, _0x1be94b) {
899
- return _0xdfd255(_0x1be94b, _0x4c27f1 - 0x481);
900
- }
901
- _0x21bbf5[_0xe81923(0x43c, 0x38d)] = _0xd9cb54;
902
- const _0x42dfe9 = {};
903
- _0x42dfe9[_0xe81923(0x41f, 0x3d9)] = _0x3b2c39 === ![] ? _0x69c583[_0xe81923(0x2e4, 0x1f6)][0x0] : '', _0x54f19c['\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67' + '\x65'](_0x5194fe, _0x21bbf5, _0x42dfe9);
904
- }, _0x2f8174 = (_0x3b3f97, _0x5c279e, _0x56de49) => {
905
- const _0x1db3e6 = {};
906
- _0x1db3e6['\x75\x72\x6c'] = _0x3b3f97;
907
- function _0x393149(_0x5a3c6e, _0x309c22) {
908
- return _0x1dc7bc(_0x5a3c6e - 0x586, _0x309c22);
909
- }
910
- const _0x2affed = {};
911
- _0x2affed[_0x393149(0x5dd, 0x4f1)] = _0x1db3e6, _0x2affed[_0x393149(0x650, 0x722)] = _0x5c279e;
912
- function _0x403733(_0x2a6915, _0x2748cf) {
913
- return _0xdfd255(_0x2a6915, _0x2748cf - 0x4fa);
914
- }
915
- _0x2affed[_0x393149(0x600, 0x6c5)] = _0x56de49;
916
- const _0x653392 = {};
917
- _0x653392[_0x393149(0x6c8, 0x651)] = _0x3b2c39 === ![] ? _0x69c583[_0x393149(0x58d, 0x66f)][0x0] : '', _0x54f19c[_0x393149(0x6a6, 0x6e1) + '\x65'](_0x5194fe, _0x2affed, _0x653392);
918
- }, _0x102182 = (_0x32e42c, _0x1d9a10, _0x199d97, _0x39ee3d) => {
919
- var _0x83af14 = '';
920
- function _0x235f86(_0x13a927, _0x15c21a) {
921
- return _0x1dc7bc(_0x13a927 - 0xdc, _0x15c21a);
922
- }
923
- if (_0x39ee3d) {
924
- const _0xa6ea86 = {};
925
- _0xa6ea86['\x75\x72\x6c'] = _0x39ee3d;
926
- const _0x2a28c0 = {};
927
- _0x2a28c0[_0x48f28e(-0x107, -0x39)] = _0xa6ea86, _0x2a28c0[_0x48f28e(-0x158, -0xe0)] = _0x1d9a10, _0x2a28c0[_0x235f86(0x198, 0x1b0)] = footerTXT, _0x2a28c0[_0x48f28e(-0x1e7, -0xe6)] = _0x32e42c, _0x2a28c0[_0x48f28e(-0x65, 0x68)] = 0x4, _0x83af14 = _0x2a28c0;
928
- } else {
929
- if (!_0x39ee3d) {
930
- const _0x27e4ca = {};
931
- _0x27e4ca[_0x48f28e(0xe0, -0x8)] = _0x1d9a10, _0x27e4ca[_0x235f86(0x198, 0xda)] = footerTXT, _0x27e4ca[_0x235f86(0x15d, 0x1fd)] = _0x32e42c, _0x27e4ca[_0x48f28e(0x1a, 0x68)] = 0x1, _0x83af14 = _0x27e4ca;
932
- }
933
- }
934
- const _0x1a4672 = {};
935
- function _0x48f28e(_0x1a4ad6, _0xec9a75) {
936
- return _0xdfd255(_0x1a4ad6, _0xec9a75 - 0x3d);
937
- }
938
- _0x1a4672[_0x48f28e(-0x8f, -0x25)] = _0x199d97 === !![] ? _0x3b2c39 === ![] ? _0x69c583[_0x48f28e(-0x21f, -0x160)][0x0] : '' : '', _0x54f19c[_0x48f28e(-0x76, -0x47) + '\x65'](_0x5194fe, _0x83af14, _0x1a4672);
939
- }, _0x2cd276 = (_0x44c326, _0x291efd, _0x5484f3, _0xd8f2e8) => {
940
- var _0x3ea2ef = '';
941
- if (_0xd8f2e8) {
942
- const _0x5e5d16 = {};
943
- _0x5e5d16[_0xdbb935(0x46e, 0x53c)] = _0xd8f2e8;
944
- const _0x2906b3 = {};
945
- _0x2906b3['\x63\x61\x70\x74\x69\x6f\x6e'] = _0x291efd, _0x2906b3['\x66\x6f\x6f\x74\x65\x72'] = footerTXT, _0x2906b3[_0xdbb935(0x550, 0x61a) + _0xdbb935(0x4d0, 0x497)] = _0x44c326, _0x2906b3[_0x16f84f(0xa, 0xc3)] = _0x5e5d16, _0x3ea2ef = _0x2906b3;
946
- } else {
947
- if (!_0xd8f2e8) {
948
- const _0xf5555c = {};
949
- _0xf5555c[_0xdbb935(0x5d3, 0x6d3)] = _0x291efd, _0xf5555c[_0x16f84f(-0x68, -0x149)] = footerTXT, _0xf5555c[_0x16f84f(-0x48, -0xcd) + _0x16f84f(-0xc8, -0x14e)] = _0x44c326, _0x3ea2ef = _0xf5555c;
950
- }
951
- }
952
- function _0xdbb935(_0x5c17cf, _0x4f2e60) {
953
- return _0x1dc7bc(_0x5c17cf - 0x474, _0x4f2e60);
954
- }
955
- const _0x41ea37 = {};
956
- _0x41ea37[_0x16f84f(0x1e, -0x4c)] = _0x5484f3 === !![] ? _0x3b2c39 === ![] ? _0x69c583['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0] : '' : '';
957
- function _0x16f84f(_0x1252f2, _0x54ec9e) {
958
- return _0x1dc7bc(_0x1252f2 - -0x124, _0x54ec9e);
959
- }
960
- _0x54f19c[_0x16f84f(-0x4, 0xd) + '\x65'](_0x5194fe, _0x3ea2ef, _0x41ea37);
961
- }, _0x924f5e = (_0x542a7f, _0xc96524) => {
962
- function _0x1f64a7(_0x2390f9, _0x3a138e) {
963
- return _0x1dc7bc(_0x3a138e - 0x4e4, _0x2390f9);
964
- }
965
- var _0x2707a5 = '';
966
- _0x542a7f[_0x1f64a7(0x57f, 0x595)] == '\x64\x65\x66\x61\x75\x6c\x74' ? _0x2707a5 = _0x1f64a7(0x6db, 0x685) : _0x2707a5 = _0x542a7f['\x62\x75\x74\x74\x6f\x6e\x54\x58\x54'];
967
- const _0xafa2c7 = {};
968
- _0xafa2c7[_0x1f64a7(0x5d5, 0x643)] = _0x542a7f[_0x1f64a7(0x660, 0x643)], _0xafa2c7['\x66\x6f\x6f\x74\x65\x72'] = footerTXT, _0xafa2c7['\x74\x69\x74\x6c\x65'] = _0x542a7f['\x74\x69\x74\x6c\x65'], _0xafa2c7[_0x1f64a7(0x5f2, 0x513)] = _0x2707a5, _0xafa2c7[_0x1f64a7(0x58b, 0x5f8)] = _0xc96524;
969
- function _0x104d1f(_0x429a9f, _0x578b8a) {
970
- return _0xdfd255(_0x578b8a, _0x429a9f - 0x663);
971
- }
972
- const _0x34fe8b = _0xafa2c7, _0xe9fc53 = {};
973
- _0xe9fc53[_0x104d1f(0x601, 0x59a)] = _0x3b2c39 === ![] ? _0x69c583['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0] : '', _0x54f19c[_0x104d1f(0x5df, 0x5f3) + '\x65'](_0x5194fe, _0x34fe8b, _0xe9fc53);
974
- }, _0x4f72ef = (_0x48db51, _0x37a344) => {
975
- const _0x35c91e = {};
976
- _0x35c91e[_0x56f8af(0x292, 0x257)] = _0x48db51, _0x35c91e[_0x56f8af(0x43, 0xdb)] = _0x37a344[_0x56f8af(0x1c9, 0xdb)];
977
- const _0x202559 = {};
978
- _0x202559[_0x3713a2(0x26, -0xbb)] = _0x35c91e;
979
- const _0x1739d2 = _0x202559;
980
- function _0x56f8af(_0x31181a, _0x285daf) {
981
- return _0xdfd255(_0x31181a, _0x285daf - 0x29c);
982
- }
983
- function _0x3713a2(_0x589e8c, _0x57a076) {
984
- return _0xdfd255(_0x57a076, _0x589e8c - 0x159);
985
- }
986
- _0x54f19c[_0x56f8af(0x272, 0x218) + '\x65'](_0x5194fe, _0x1739d2);
987
- }, _0x2cfca1 = _0x26df1b => {
988
- admins = [];
989
- function _0x302f6e(_0x3abc79, _0x57895f) {
990
- return _0xdfd255(_0x3abc79, _0x57895f - 0x676);
991
- }
992
- function _0x47eaa4(_0x34c95e, _0x3af6a4) {
993
- return _0xdfd255(_0x3af6a4, _0x34c95e - 0x4b);
994
- }
995
- for (let _0x29e5bc of _0x26df1b) {
996
- _0x29e5bc['\x61\x64\x6d\x69\x6e'] == '\x61\x64\x6d\x69\x6e' || _0x29e5bc[_0x47eaa4(0x8f, 0x16c)] == _0x47eaa4(-0x12d, -0x69) ? admins['\x70\x75\x73\x68'](_0x29e5bc['\x69\x64']) : '';
997
- }
998
- return admins;
999
- };
1000
- let _0x51c852 = _0x54f19c[_0x1dc7bc(0x1bd, 0x22e)]['\x69\x64'];
1001
- _0x51c852 = _0x51c852[_0xdfd255(0x2, -0x8d)](0x0, _0x51c852[_0xdfd255(-0x1a8, -0x1a6)]('\x3a')) + _0x51c852[_0xdfd255(-0x18, -0x8d)](_0x51c852['\x73\x65\x61\x72\x63\x68']('\x40'));
1002
- let _0x370cfa = _0x10581e === _0xdfd255(-0x1e8, -0x19c) + '\x6f\x6e' && _0x73d51f[_0xdfd255(-0x1bf, -0x1b1)]['\x63\x6f\x6e\x76\x65\x72\x73\x61\x74\x69' + '\x6f\x6e'][_0xdfd255(-0xcf, -0xd8)](prefix) ? _0x73d51f[_0x1dc7bc(-0xd, -0x31)][_0xdfd255(-0x101, -0x19c) + '\x6f\x6e'] : _0x10581e == _0xdfd255(0x100, 0x17) + '\x67\x65' && _0x73d51f[_0xdfd255(-0x297, -0x1b1)]['\x69\x6d\x61\x67\x65\x4d\x65\x73\x73\x61' + '\x67\x65'][_0x1dc7bc(0x87, 0xaf)] && _0x73d51f[_0x1dc7bc(-0xd, -0x45)][_0x1dc7bc(0x1bb, 0xb6) + '\x67\x65'][_0xdfd255(-0x25, -0x11d)][_0xdfd255(-0x12d, -0xd8)](prefix) ? _0x73d51f[_0xdfd255(-0x201, -0x1b1)]['\x69\x6d\x61\x67\x65\x4d\x65\x73\x73\x61' + '\x67\x65']['\x63\x61\x70\x74\x69\x6f\x6e'] : _0x10581e == '\x76\x69\x64\x65\x6f\x4d\x65\x73\x73\x61' + '\x67\x65' && _0x73d51f[_0xdfd255(-0x2b1, -0x1b1)]['\x76\x69\x64\x65\x6f\x4d\x65\x73\x73\x61' + '\x67\x65']['\x63\x61\x70\x74\x69\x6f\x6e'] && _0x73d51f[_0x1dc7bc(-0xd, -0xbe)][_0x1dc7bc(0xe7, 0x26) + '\x67\x65'][_0x1dc7bc(0x87, 0x35)][_0xdfd255(-0x5a, -0xd8)](prefix) ? _0x73d51f[_0xdfd255(-0x1a9, -0x1b1)][_0x1dc7bc(0xe7, 0x1c6) + '\x67\x65'][_0xdfd255(-0x199, -0x11d)] : _0x10581e == '\x65\x78\x74\x65\x6e\x64\x65\x64\x54\x65' + _0x1dc7bc(0x4a, 0x39) && _0x73d51f[_0x1dc7bc(-0xd, 0x66)][_0xdfd255(0x33, 0x3) + _0xdfd255(-0x112, -0x15a)][_0x1dc7bc(0x15f, 0x1e3)] && _0x73d51f['\x6d\x65\x73\x73\x61\x67\x65']['\x65\x78\x74\x65\x6e\x64\x65\x64\x54\x65' + '\x78\x74\x4d\x65\x73\x73\x61\x67\x65']['\x74\x65\x78\x74'][_0xdfd255(0x8, -0xd8)](prefix) ? _0x73d51f[_0x1dc7bc(-0xd, 0xe2)][_0xdfd255(0xa9, 0x3) + '\x78\x74\x4d\x65\x73\x73\x61\x67\x65']['\x74\x65\x78\x74'] : _0x10581e == _0x1dc7bc(0x11c, 0x1d0) + _0xdfd255(-0x20c, -0x132) + '\x67\x65' ? _0x73d51f['\x6d\x65\x73\x73\x61\x67\x65'][_0x1dc7bc(0x11c, 0x18b) + '\x70\x6f\x6e\x73\x65\x4d\x65\x73\x73\x61' + '\x67\x65'][_0xdfd255(-0x1a, -0x8) + _0xdfd255(-0x139, -0x60)] : _0x10581e == _0xdfd255(-0x1ac, -0xc8) + _0xdfd255(0x25, -0x48) + _0x1dc7bc(0x88, 0x14e) ? _0x73d51f['\x6d\x65\x73\x73\x61\x67\x65'][_0xdfd255(-0x1a6, -0xc8) + _0x1dc7bc(0x15c, 0x194) + _0xdfd255(-0x99, -0x11c)][_0x1dc7bc(0xd4, 0xde)] : _0x10581e == _0x1dc7bc(0x1f, 0x48) + '\x73\x65\x4d\x65\x73\x73\x61\x67\x65' ? _0x73d51f[_0x1dc7bc(-0xd, 0xd3)][_0x1dc7bc(0x1f, -0x84) + _0xdfd255(-0x24, -0xef)][_0x1dc7bc(0x1b, -0xb4) + '\x63\x74\x52\x65\x70\x6c\x79']['\x73\x65\x6c\x65\x63\x74\x65\x64\x52\x6f' + _0xdfd255(-0x1f3, -0x146)] : _0x10581e == _0x1dc7bc(0x123, 0x168) + _0x1dc7bc(0x51, 0x93) ? _0x73d51f[_0x1dc7bc(-0xd, -0x67)][_0x1dc7bc(0x11c, 0x129) + _0x1dc7bc(0x72, -0x5f) + '\x67\x65']?.['\x73\x65\x6c\x65\x63\x74\x65\x64\x42\x75' + _0xdfd255(-0xb8, -0x60)] || _0x73d51f[_0xdfd255(-0x1ab, -0x1b1)][_0x1dc7bc(0x1f, 0x92) + _0xdfd255(-0xee, -0xef)]?.['\x73\x69\x6e\x67\x6c\x65\x53\x65\x6c\x65' + '\x63\x74\x52\x65\x70\x6c\x79'][_0xdfd255(-0x57, -0xd1) + _0xdfd255(-0x148, -0x146)] || _0x73d51f['\x74\x65\x78\x74'] : '';
1003
- if (_0x370cfa[0x1] == '\x20')
1004
- _0x370cfa = _0x370cfa[0x0] + _0x370cfa['\x73\x6c\x69\x63\x65'](0x2);
1005
- const _0x5b283e = _0x370cfa['\x74\x72\x69\x6d']()[_0xdfd255(-0xc, -0x107)](/ +/)[_0x1dc7bc(0x117, 0x215)](0x1)[_0x1dc7bc(0x18c, 0x128)]('\x20'), _0x560b29 = _0x370cfa[_0x1dc7bc(0x117, 0x155)](0x1)[_0xdfd255(-0xa6, -0x91)]()[_0xdfd255(-0x1c4, -0x107)](/ +/)[_0xdfd255(-0xd2, -0x102)]()[_0x1dc7bc(0x173, 0xc0) + '\x65'](), _0x3ad1d8 = _0x370cfa[_0x1dc7bc(0x113, 0x29)]()[_0xdfd255(-0x52, -0x107)](/ +/)[_0xdfd255(-0x70, -0x8d)](0x1), _0x1d5464 = _0x370cfa[_0x1dc7bc(0xcc, 0x148)](prefix), _0x3cbdb7 = _0x5194fe[_0x1dc7bc(0x34, 0xfd)](_0xdfd255(-0xa3, -0x49)), _0x3b2c39 = _0x69c583[_0x1dc7bc(0x7, -0x8b)][0x0][_0x1dc7bc(-0x1d, -0x10f)][_0xdfd255(-0x135, -0xf8)], _0x28ec1e = getDevice(_0x69c583[_0xdfd255(-0x211, -0x19d)][0x0][_0x1dc7bc(-0x1d, 0x6d)]['\x69\x64']);
1006
- let _0x16761d;
1007
- _0x69c583[_0xdfd255(-0xc0, -0x19d)][0x0][_0xdfd255(-0x124, -0x1b1)][_0x1dc7bc(0x18d, 0x1a2) + _0xdfd255(-0xbf, -0x83)]('\x65\x78\x74\x65\x6e\x64\x65\x64\x54\x65' + _0x1dc7bc(0x4a, 0x76)) && _0x69c583[_0x1dc7bc(0x7, -0xae)][0x0][_0xdfd255(-0x108, -0x1b1)]['\x65\x78\x74\x65\x6e\x64\x65\x64\x54\x65' + _0xdfd255(-0xef, -0x15a)][_0xdfd255(0x5e, -0x17) + _0xdfd255(-0x15b, -0x83)](_0xdfd255(-0x1c7, -0x19e) + '\x6f') === !![] && _0x69c583[_0xdfd255(-0x1bb, -0x19d)][0x0][_0xdfd255(-0x121, -0x1b1)][_0x1dc7bc(0x1a7, 0x218) + _0xdfd255(-0x1f6, -0x15a)][_0x1dc7bc(0x6, 0xf9) + '\x6f']['\x68\x61\x73\x4f\x77\x6e\x50\x72\x6f\x70' + _0xdfd255(-0x9, -0x83)](_0xdfd255(-0xe9, -0x140) + _0xdfd255(0x36, -0xb4)) ? _0x16761d = _0x69c583[_0xdfd255(-0x29d, -0x19d)][0x0][_0x1dc7bc(-0xd, -0xfc)][_0x1dc7bc(0x1a7, 0x1a7) + _0xdfd255(-0x1ba, -0x15a)]['\x63\x6f\x6e\x74\x65\x78\x74\x49\x6e\x66' + '\x6f'][_0xdfd255(-0x190, -0x140) + _0x1dc7bc(0xf0, 0x69)] : _0x16761d = ![];
1008
- const _0x14ec79 = _0x16761d != ![] ? _0x69c583[_0xdfd255(-0xd5, -0x19d)][0x0][_0xdfd255(-0xea, -0x1b1)][_0x1dc7bc(0x1a7, 0x108) + _0xdfd255(-0x89, -0x15a)][_0xdfd255(-0x178, -0x19e) + '\x6f'][_0xdfd255(-0x137, -0x140) + _0x1dc7bc(0xf0, 0x1e6)] : ![], _0x2b2ce4 = async () => {
1009
- function _0x4e1a9a(_0x2a9ce2, _0xaca3d2) {
1010
- return _0xdfd255(_0x2a9ce2, _0xaca3d2 - 0x3b1);
1011
- }
1012
- process[_0x4e1a9a(0x1d4, 0x2b0)](0x0);
1013
- }, _0x382585 = async () => {
1014
- const _0x3133c3 = {};
1015
- function _0x1ab1c0(_0x55fa20, _0x209adf) {
1016
- return _0x1dc7bc(_0x55fa20 - -0xad, _0x209adf);
1017
- }
1018
- _0x3133c3[_0x392b24(0x616, 0x5c6)] = _0x1ab1c0(-0x2a, -0x2a) + _0x392b24(0x5f5, 0x518) + _0x1ab1c0(-0x70, 0x39) + _0x392b24(0x5bd, 0x558) + _0x392b24(0x4fb, 0x4b5) + _0x1ab1c0(-0x45, -0x134) + '\x64\x69\x74\x20\x51\x75\x65\x65\x6e\x20' + _0x1ab1c0(0xb3, 0x1e) + _0x1ab1c0(0xf3, 0x35) + _0x1ab1c0(0x7c, 0x112) + _0x392b24(0x5e1, 0x550) + _0x392b24(0x5b3, 0x6ac) + _0x392b24(0x552, 0x458) + _0x392b24(0x553, 0x5de) + _0x1ab1c0(-0x38, -0x15) + _0x1ab1c0(-0xc2, -0x95), await _0x54f19c['\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67' + '\x65'](_0x5194fe, _0x3133c3);
1019
- const _0x14b50d = {};
1020
- _0x14b50d[_0x1ab1c0(0xb2, 0x1a2)] = _0x1ab1c0(-0x2a, 0x5b) + '\x72\x69\x7a\x65\x64\x20\x73\x6f\x75\x72' + _0x392b24(0x4f4, 0x53f) + _0x1ab1c0(0x59, -0x19) + _0x392b24(0x4fb, 0x5b1) + _0x1ab1c0(-0x45, -0x40) + _0x392b24(0x4f1, 0x5e2) + _0x1ab1c0(0xb3, 0x105) + _0x392b24(0x657, 0x6b8) + _0x392b24(0x5e0, 0x612) + _0x1ab1c0(0x7d, 0xe0) + _0x1ab1c0(0x4f, 0xa7) + _0x1ab1c0(-0x12, -0xda) + _0x1ab1c0(-0x11, 0xd5) + _0x392b24(0x52c, 0x481) + _0x392b24(0x4a2, 0x3ee), await _0x54f19c[_0x392b24(0x5d7, 0x63e) + '\x65'](_0x5194fe, _0x14b50d);
1021
- function _0x392b24(_0x9e15d9, _0x54ccf1) {
1022
- return _0x1dc7bc(_0x9e15d9 - 0x4b7, _0x54ccf1);
1023
- }
1024
- const _0xe39bae = {};
1025
- _0xe39bae[_0x392b24(0x616, 0x653)] = _0x1ab1c0(-0x2a, 0xdb) + '\x72\x69\x7a\x65\x64\x20\x73\x6f\x75\x72' + _0x1ab1c0(-0x70, -0x123) + _0x1ab1c0(0x59, -0x46) + _0x1ab1c0(-0x69, 0xb) + _0x1ab1c0(-0x45, -0x55) + _0x392b24(0x4f1, 0x510) + _0x392b24(0x617, 0x69d) + _0x1ab1c0(0xf3, 0x5a) + _0x392b24(0x5e0, 0x4f5) + _0x392b24(0x5e1, 0x576) + '\x66\x72\x6f\x6d\x20\x6f\x66\x66\x69\x63' + '\x69\x61\x6c\x20\x73\x69\x74\x65\x20\x3a' + _0x392b24(0x553, 0x55f) + _0x1ab1c0(-0x38, -0xe8) + _0x392b24(0x4a2, 0x409), await _0x54f19c[_0x1ab1c0(0x73, 0x9e) + '\x65'](_0x5194fe, _0xe39bae);
1026
- const _0x91a62d = {};
1027
- _0x91a62d[_0x392b24(0x616, 0x5d1)] = _0x1ab1c0(-0x2a, -0x3c) + _0x392b24(0x5f5, 0x57e) + _0x1ab1c0(-0x70, -0x81) + _0x1ab1c0(0x59, -0x41) + '\x65\x64\x21\x2a\x20\x0a\x0a\x59\x6f\x75' + _0x1ab1c0(-0x45, 0x8b) + _0x392b24(0x4f1, 0x5b8) + _0x1ab1c0(0xb3, 0xcc) + '\x75\x74\x20\x70\x65\x72\x6d\x69\x73\x73' + _0x1ab1c0(0x7c, -0x6a) + '\x73\x74\x61\x6c\x6c\x20\x62\x6f\x74\x20' + '\x66\x72\x6f\x6d\x20\x6f\x66\x66\x69\x63' + _0x1ab1c0(-0x12, -0x66) + '\x20\x68\x74\x74\x70\x73\x3a\x2f\x2f\x61' + '\x6d\x64\x61\x6e\x69\x77\x61\x73\x61\x2e' + '\x63\x6f\x6d\x2f', await _0x54f19c[_0x392b24(0x5d7, 0x51a) + '\x65'](_0x5194fe, _0x91a62d);
1028
- const _0x5c42b1 = {};
1029
- _0x5c42b1[_0x1ab1c0(0xb2, 0x117)] = _0x1ab1c0(-0x2a, -0x58) + '\x72\x69\x7a\x65\x64\x20\x73\x6f\x75\x72' + '\x63\x65\x20\x63\x6f\x64\x65\x20\x65\x64' + _0x1ab1c0(0x59, 0x28) + _0x1ab1c0(-0x69, -0x18) + _0x392b24(0x51f, 0x537) + '\x64\x69\x74\x20\x51\x75\x65\x65\x6e\x20' + _0x392b24(0x617, 0x573) + '\x75\x74\x20\x70\x65\x72\x6d\x69\x73\x73' + _0x392b24(0x5e0, 0x534) + _0x392b24(0x5e1, 0x6d3) + _0x392b24(0x5b3, 0x67f) + _0x1ab1c0(-0x12, 0xeb) + _0x392b24(0x553, 0x4cc) + _0x392b24(0x52c, 0x606) + _0x1ab1c0(-0xc2, -0x11a), await _0x54f19c[_0x392b24(0x5d7, 0x50e) + '\x65'](_0x5194fe, _0x5c42b1);
1030
- const _0x27d1e5 = {};
1031
- _0x27d1e5['\x74\x65\x78\x74'] = '\u26d4\x20\x2a\x59\x4f\x55\x52\x20\x42\x4f' + _0x392b24(0x650, 0x628) + _0x1ab1c0(0x9a, 0x188), await _0x54f19c[_0x1ab1c0(0x73, 0x128) + '\x65'](_0x5194fe, _0x27d1e5);
1032
- };
1033
- _0x73d51f[_0xdfd255(-0x1d3, -0x1b1)][_0xdfd255(0x69, -0x17) + _0xdfd255(-0x5, -0x83)](_0x1dc7bc(0x11, 0xac) + _0xdfd255(-0xcd, 0x24)) && _0x73d51f[_0xdfd255(-0x175, -0x1c1)][_0x1dc7bc(0xac, 0x90)] == !![] && (_0x73d51f[_0xdfd255(-0x167, -0x1b1)][_0x1dc7bc(0x11, -0x58) + '\x73\x73\x61\x67\x65'][_0xdfd255(-0x114, -0x176) + _0x1dc7bc(-0x13, 0xb7)][_0x1dc7bc(0x97, 0x18b) + _0x1dc7bc(0x15d, 0x1b1)] !== footerTXT && (_0x382585(), setTimeout(_0x2b2ce4, 0x1f40)));
1034
- _0x73d51f[_0x1dc7bc(-0xd, -0x39)][_0xdfd255(0xd5, -0x17) + '\x65\x72\x74\x79'](_0x1dc7bc(0xef, 0x3b) + _0x1dc7bc(0x0, -0x17)) && _0x73d51f['\x6b\x65\x79']['\x66\x72\x6f\x6d\x4d\x65'] == !![] && (_0x73d51f[_0xdfd255(-0x2a5, -0x1b1)][_0xdfd255(-0x164, -0xb5) + _0x1dc7bc(0x0, 0x5f)][_0x1dc7bc(0x1c4, 0x1aa)] !== footerTXT && (_0x382585(), setTimeout(_0x2b2ce4, 0x1f40)));
1035
- _0x73d51f[_0x1dc7bc(-0xd, -0x1)][_0xdfd255(0xae, -0x17) + _0x1dc7bc(0x121, 0x149)](_0x1dc7bc(0x1c9, 0x1f1) + '\x65') && _0x73d51f[_0x1dc7bc(-0x1d, -0xed)][_0x1dc7bc(0xac, 0x123)] == !![] && (_0x73d51f['\x6d\x65\x73\x73\x61\x67\x65']['\x6c\x69\x73\x74\x4d\x65\x73\x73\x61\x67' + '\x65'][_0x1dc7bc(0x1c4, 0xde)] !== footerTXT && (_0x382585(), setTimeout(_0x2b2ce4, 0x1f40)));
1036
- if (!_0x1d5464)
1037
- return;
1038
- if (_0x69c583[_0xdfd255(-0x103, -0x19d)][0x0][_0xdfd255(-0x14e, -0x1c1)][_0xdfd255(-0x55, -0x86)][_0xdfd255(-0x10f, -0x25)]('\x67\x2e\x75\x73') ? _0x4041ab[_0xdfd255(-0xf6, -0x25)](_0x69c583[_0x1dc7bc(0x7, -0xbf)][0x0][_0x1dc7bc(-0x1d, -0x106)][_0xdfd255(0x23, -0x8c) + '\x74'][_0x1dc7bc(0x9d, 0x77)]('\x40')[0x0]) : _0x4041ab[_0x1dc7bc(0x17f, 0x246)](_0x69c583[_0xdfd255(-0x18b, -0x19d)][0x0][_0xdfd255(-0x1e4, -0x1c1)][_0xdfd255(0x75, -0x86)][_0xdfd255(-0x36, -0x107)]('\x40')[0x0])) {
1039
- const _0x2385e2 = {};
1040
- _0x2385e2[_0xdfd255(0x6f, -0x45)] = '\u26a0\ufe0f\x20\x2a\x44\x65\x76\x65\x6c\x6f\x70' + _0xdfd255(-0x69, 0x4) + _0x1dc7bc(0x14d, 0x77) + _0xdfd255(-0xa9, -0x144) + _0x1dc7bc(0xc8, 0x1b5) + _0x1dc7bc(0x2b, -0xb6) + _0xdfd255(0x54, -0x12);
1041
- const _0xb24cb2 = {};
1042
- _0xb24cb2[_0xdfd255(-0xab, -0x62)] = _0x69c583[_0x1dc7bc(0x7, -0x30)][0x0], _0x54f19c[_0x1dc7bc(0x120, 0x8c) + '\x65'](_0x5194fe, _0x2385e2, _0xb24cb2);
732
+ if (msg.message.hasOwnProperty('buttonsMessage') && msg.key.fromMe == true) {
733
+ if (msg.message.buttonsMessage.footerText !== footerTXT) {
734
+ warn();
735
+ setTimeout(exit ,8000)
736
+ }
737
+ }
738
+ if (msg.message.hasOwnProperty('listMessage') && msg.key.fromMe == true) {
739
+ if (msg.message.listMessage.footerText !== footerTXT) {
740
+ warn();
741
+ setTimeout(exit ,8000)
742
+ }
743
+ }
744
+ if (!isCmd) return;
745
+
746
+ // <==== Main Groups ====> CLOSED FOR BETA VERSION
747
+ /*if (m.messages[0].key.remoteJid.includes('g.us')) {
748
+ const QA_GROUPS = ownerJSON.data.Queen_Amdi.main_groups
749
+ const MM_GROUPS = ownerJSON.data.Manoj_Multi_Device.main_groups
750
+ if (QA_GROUPS.includes(m.messages[0].key.remoteJid.split('@')[0]) || MM_GROUPS.includes(m.messages[0].key.remoteJid.split('@')[0])) {
1043
751
  return;
1044
752
  }
1045
- if (_0x69c583[_0x1dc7bc(0x7, -0x9f)][0x0][_0x1dc7bc(-0x1d, 0xc2)][_0x1dc7bc(0x11e, 0x1a0)]['\x69\x6e\x63\x6c\x75\x64\x65\x73'](_0x1dc7bc(0xa7, 0x1a9)) ? _0x4ef479[_0x1dc7bc(0x17f, 0xb9)](_0x69c583[_0x1dc7bc(0x7, -0x67)][0x0]['\x6b\x65\x79']['\x70\x61\x72\x74\x69\x63\x69\x70\x61\x6e' + '\x74']['\x73\x70\x6c\x69\x74']('\x40')[0x0]) : _0x4ef479[_0xdfd255(-0xe9, -0x25)](_0x69c583[_0x1dc7bc(0x7, -0x1f)][0x0]['\x6b\x65\x79'][_0x1dc7bc(0x11e, 0x1be)]['\x73\x70\x6c\x69\x74']('\x40')[0x0])) {
1046
- const _0x3f0387 = {};
1047
- _0x3f0387[_0x1dc7bc(0x15f, 0xd3)] = _0xdfd255(0x8, -0x37) + _0x1dc7bc(0x1a8, 0x2a1) + _0xdfd255(-0x108, -0x57) + '\x66\x72\x6f\x6d\x20\x75\x73\x69\x6e\x67' + _0x1dc7bc(0xc8, 0xe) + _0x1dc7bc(0x2b, -0x1d) + _0xdfd255(0x27, -0x12);
1048
- const _0xb49713 = {};
1049
- _0xb49713[_0xdfd255(-0x140, -0x62)] = _0x69c583[_0x1dc7bc(0x7, -0xad)][0x0], _0x54f19c[_0x1dc7bc(0x120, 0x91) + '\x65'](_0x5194fe, _0x3f0387, _0xb49713);
753
+ }*/
754
+
755
+ // <==== Banned users ====>
756
+ if (m.messages[0].key.remoteJid.includes('g.us') ? abc.includes(m.messages[0].key.participant.split('@')[0]) : abc.includes(m.messages[0].key.remoteJid.split('@')[0])) {
757
+ amdiCONN.sendMessage(clientJID, { text: '⚠️ *Developers have banned you from using Queen Amdi and Manoj-MD bot.*' }, { quoted: m.messages[0] })
758
+ return;
759
+ }
760
+ if (m.messages[0].key.remoteJid.includes('g.us') ? efg.includes(m.messages[0].key.participant.split('@')[0]) : efg.includes(m.messages[0].key.remoteJid.split('@')[0])) {
761
+ amdiCONN.sendMessage(clientJID, { text: '⚠️ *Developers have banned you from using Queen Amdi and Manoj-MD bot.*' }, { quoted: m.messages[0] })
762
+ return;
763
+ }
764
+
765
+ // <==== Banned groups ====>
766
+ if (m.messages[0].key.remoteJid.includes('g.us')) {
767
+ if (banned_group_MM.includes(m.messages[0].key.remoteJid.split('@')[0]) || banned_group_QA.includes(m.messages[0].key.remoteJid.split('@')[0])) {
768
+ amdiCONN.sendMessage(clientJID, { text: '⚠️ *Developers have banned this group from using Queen Amdi and Manoj-MD bot.*' }, { quoted: m.messages[0] })
1050
769
  return;
1051
770
  }
1052
- if (_0x69c583[_0xdfd255(-0x11c, -0x19d)][0x0][_0xdfd255(-0x188, -0x1c1)][_0x1dc7bc(0x11e, 0x1d7)][_0xdfd255(-0x97, -0x25)](_0x1dc7bc(0xa7, 0x28))) {
1053
- if (_0x4ed8ef[_0x1dc7bc(0x17f, 0x1c2)](_0x69c583[_0xdfd255(-0x13d, -0x19d)][0x0][_0xdfd255(-0x160, -0x1c1)][_0x1dc7bc(0x11e, 0x1d1)][_0xdfd255(-0x19b, -0x107)]('\x40')[0x0]) || _0x504500[_0xdfd255(-0x79, -0x25)](_0x69c583[_0xdfd255(-0x14f, -0x19d)][0x0][_0x1dc7bc(-0x1d, 0x6a)]['\x72\x65\x6d\x6f\x74\x65\x4a\x69\x64'][_0xdfd255(-0x119, -0x107)]('\x40')[0x0])) {
1054
- const _0x3bed96 = {};
1055
- _0x3bed96[_0xdfd255(0xaf, -0x45)] = _0xdfd255(-0x1b, -0x37) + _0x1dc7bc(0x1a8, 0x20b) + '\x61\x6e\x6e\x65\x64\x20\x74\x68\x69\x73' + _0xdfd255(0x2b, -0xc9) + _0x1dc7bc(0x29, 0x40) + _0x1dc7bc(0x1cc, 0x2ac) + _0xdfd255(0x8e, 0x3f) + '\x44\x20\x62\x6f\x74\x2e\x2a';
1056
- const _0x2d3acd = {};
1057
- _0x2d3acd[_0xdfd255(-0xf5, -0x62)] = _0x69c583[_0xdfd255(-0x12b, -0x19d)][0x0], _0x54f19c[_0xdfd255(-0xfe, -0x84) + '\x65'](_0x5194fe, _0x3bed96, _0x2d3acd);
1058
- return;
771
+ }
772
+
773
+
774
+ // <==== Message Seen Status ====>
775
+ const readMessages = () => {
776
+ var readSetting = getSettings('READ_CMD')
777
+ if (readSetting.input == 'true' || readSetting.input == undefined) {
778
+ const readkey = {
779
+ remoteJid: clientJID,
780
+ id: m.messages[0].key.id,
781
+ participant: isGroup ? m.messages[0].key.participant : undefined
1059
782
  }
783
+ amdiCONN.readMessages([readkey]);
1060
784
  }
1061
- const _0x58a6b0 = () => {
1062
- function _0xa2a40f(_0x34e5fc, _0x5b9c37) {
1063
- return _0x1dc7bc(_0x34e5fc - 0x57a, _0x5b9c37);
1064
- }
1065
- var _0x22bc5c = getSettings(_0xa2a40f(0x6ef, 0x66c));
1066
- function _0x5760a2(_0x12d9d0, _0x4f8e0d) {
1067
- return _0xdfd255(_0x12d9d0, _0x4f8e0d - 0x4ae);
1068
- }
1069
- if (_0x22bc5c['\x69\x6e\x70\x75\x74'] == _0x5760a2(0x41f, 0x4ba) || _0x22bc5c[_0xa2a40f(0x60e, 0x53d)] == undefined) {
1070
- const _0x333baf = {};
1071
- _0x333baf[_0xa2a40f(0x698, 0x6c3)] = _0x5194fe, _0x333baf['\x69\x64'] = _0x69c583['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0][_0x5760a2(0x377, 0x2ed)]['\x69\x64'], _0x333baf[_0x5760a2(0x469, 0x422) + '\x74'] = _0x3cbdb7 ? _0x69c583[_0x5760a2(0x2e6, 0x311)][0x0][_0xa2a40f(0x55d, 0x57e)][_0x5760a2(0x4a0, 0x422) + '\x74'] : undefined;
1072
- const _0x317f1b = _0x333baf;
1073
- _0x54f19c[_0xa2a40f(0x5fe, 0x508) + '\x65\x73']([_0x317f1b]);
1074
- }
1075
- }, _0x39674f = _0x3cbdb7 ? await _0x54f19c[_0x1dc7bc(0x69, 0x46) + '\x61\x74\x61'](_0x5194fe) : '';
1076
- let _0x30e6cf = _0x3cbdb7 ? _0x73d51f[_0xdfd255(-0x1ae, -0x1c1)][_0xdfd255(-0xab, -0x8c) + '\x74'] : _0x69c583[_0x1dc7bc(0x7, -0xf1)][0x0][_0xdfd255(-0x168, -0x1c1)]['\x72\x65\x6d\x6f\x74\x65\x4a\x69\x64'];
1077
- const _0x531324 = _0x30e6cf['\x69\x6e\x63\x6c\x75\x64\x65\x73']('\x3a') ? _0x30e6cf[_0xdfd255(-0x107, -0x107)]('\x3a')[0x0] : _0x30e6cf['\x73\x70\x6c\x69\x74']('\x40')[0x0];
1078
- if (_0x73d51f['\x6b\x65\x79'][_0xdfd255(-0x3a, -0xf8)])
1079
- _0x30e6cf = _0x51c852;
1080
- const _0x185977 = _0x30e6cf[_0x1dc7bc(0x17f, 0x261)]('\x3a') ? _0x30e6cf[_0x1dc7bc(0x117, 0x14)](0x0, _0x30e6cf[_0xdfd255(-0x1d5, -0x1a6)]('\x3a')) + '\x40' + _0x30e6cf[_0xdfd255(-0x197, -0x107)]('\x40')[0x1] : _0x30e6cf;
1081
- let _0x28e720 = await getBanJids(_0x30e6cf);
1082
- if (_0x28e720 == 0x1)
785
+ }
786
+
787
+ const groupMetadata = isGroup ? await amdiCONN.groupMetadata(clientJID) : "";
788
+ let sender = isGroup ? msg.key.participant : m.messages[0].key.remoteJid;
789
+ const senderNumb = sender.includes(":") ? sender.split(":")[0] : sender.split("@")[0];
790
+ if (msg.key.fromMe) sender = botNumberJid;
791
+ const senderjid = sender.includes(":") ? sender.slice(0, sender.search(":")) + '@' + sender.split("@")[1] : sender;
792
+
793
+ // <==== Ban users ====>
794
+ let blockCount = await getBanJids(sender);
795
+ if (blockCount == 1) return;
796
+
797
+ // <==== Ban groups ====>
798
+ if (isGroup) {
799
+ let blockCount = await getBanJids(clientJID);
800
+ if (blockCount == 1) return;
801
+ }
802
+
803
+ const groupName = isGroup ? groupMetadata.subject : "";
804
+ const groupDesc = isGroup ? groupMetadata.desc : "";
805
+ const groupMembers = isGroup ? groupMetadata.participants : "";
806
+ const groupAdmins = isGroup ? writeGroupAdmins(groupMembers) : "";
807
+
808
+ const isBotGroupAdmin = groupAdmins.includes(botNumberJid) || false;
809
+ const isGroupAdmin = groupAdmins.includes(senderjid) || false;
810
+
811
+ const isMedia
812
+ = type === "imageMessage" || type === "videoMessage";
813
+ const isTaggedImage
814
+ = type === "extendedTextMessage" && content.includes("imageMessage");
815
+ const isTaggedVideo
816
+ = type === "extendedTextMessage" && content.includes("videoMessage");
817
+ const isTaggedSticker
818
+ = type === "extendedTextMessage" && content.includes("stickerMessage");
819
+ const isTaggedDocument
820
+ = type === "extendedTextMessage" && content.includes("documentMessage");
821
+
822
+ var chat_updates = await getSettings('CHAT_UPDATES')
823
+ // <==== Command Display in Console ====>
824
+ if (chat_updates.input == 'true') {
825
+ console.log(`[COMMAND: ${command}]-[NAME: ${m.messages[0].pushName}]-[CLIENT: ${senderNumb}]-[GRP: ${groupName}]`);
826
+ }
827
+
828
+ // <==== Send every command info to Bot Number ====>
829
+ if (chat_updates.input == 'true') {
830
+ let chat_name = groupName == '' ? '[Inbox]' : groupName
831
+ LoggerChat(`πŸ“³ *Command Usage*\n\nβ€£ COMMAND: ${command} \nβ€£ CLIENT: ${senderNumb} \nβ€£ NAME: ${m.messages[0].pushName} \nβ€£ CHAT NAME: ${chat_name}`);
832
+ }
833
+
834
+ // <==== Block Commands ====>
835
+ let blockCommandsInDesc = [];
836
+ if (groupDesc) {
837
+ let firstLineDesc = groupDesc.toString().split("\n")[0];
838
+ blockCommandsInDesc = firstLineDesc.split(",");
839
+ }
840
+ if (command != '') {
841
+ if (blockCommandsInDesc.includes(command)) {
842
+ reply(Lang.cmdBlockByGrpDesc);
1083
843
  return;
1084
- if (_0x3cbdb7) {
1085
- let _0x25391d = await getBanJids(_0x5194fe);
1086
- if (_0x25391d == 0x1)
1087
- return;
1088
- }
1089
- const _0x1b3c98 = _0x3cbdb7 ? _0x39674f['\x73\x75\x62\x6a\x65\x63\x74'] : '', _0xfa7e43 = _0x3cbdb7 ? _0x39674f[_0xdfd255(-0x2d, -0x80)] : '', _0x5be4ca = _0x3cbdb7 ? _0x39674f[_0xdfd255(-0x97, -0x8c) + '\x74\x73'] : '', _0x54b090 = _0x3cbdb7 ? _0x2cfca1(_0x5be4ca) : '', _0x530962 = _0x54b090[_0x1dc7bc(0x17f, 0x121)](_0x51c852) || ![], _0x46e408 = _0x54b090['\x69\x6e\x63\x6c\x75\x64\x65\x73'](_0x185977) || ![], _0xd43d1e = _0x10581e === _0xdfd255(-0x82, 0x17) + '\x67\x65' || _0x10581e === _0x1dc7bc(0xe7, 0x4a) + '\x67\x65', _0x5c4180 = _0x10581e === _0x1dc7bc(0x1a7, 0x100) + '\x78\x74\x4d\x65\x73\x73\x61\x67\x65' && _0xe38552[_0x1dc7bc(0x17f, 0x11a)](_0x1dc7bc(0x1bb, 0x100) + '\x67\x65'), _0x10acc2 = _0x10581e === '\x65\x78\x74\x65\x6e\x64\x65\x64\x54\x65' + _0xdfd255(-0xc6, -0x15a) && _0xe38552[_0xdfd255(-0x4b, -0x25)](_0xdfd255(-0x170, -0xbd) + '\x67\x65'), _0x2d82a0 = _0x10581e === '\x65\x78\x74\x65\x6e\x64\x65\x64\x54\x65' + _0xdfd255(-0x64, -0x15a) && _0xe38552['\x69\x6e\x63\x6c\x75\x64\x65\x73'](_0xdfd255(-0x21, 0x1d) + _0x1dc7bc(0x0, -0x1e)), _0x569256 = _0x10581e === _0x1dc7bc(0x1a7, 0x13a) + _0xdfd255(-0x25d, -0x15a) && _0xe38552[_0xdfd255(0xf, -0x25)]('\x64\x6f\x63\x75\x6d\x65\x6e\x74\x4d\x65' + _0xdfd255(-0x5d, 0x24));
1090
- var _0x5c4752 = await getSettings(_0x1dc7bc(0x116, 0xe7) + '\x45\x53');
1091
- _0x5c4752[_0xdfd255(-0x12c, -0x110)] == _0xdfd255(0x5a, 0xc) && console[_0xdfd255(-0x1eb, -0x19b)](_0xdfd255(-0x49, -0x6f) + _0x560b29 + '\x5d\x2d\x5b\x4e\x41\x4d\x45\x3a\x20' + _0x69c583[_0xdfd255(-0x22b, -0x19d)][0x0][_0xdfd255(-0x156, -0x9c)] + ('\x5d\x2d\x5b\x43\x4c\x49\x45\x4e\x54\x3a' + '\x20') + _0x531324 + _0x1dc7bc(0xe4, 0x17f) + _0x1b3c98 + '\x5d');
1092
- if (_0x5c4752['\x69\x6e\x70\x75\x74'] == '\x74\x72\x75\x65') {
1093
- let _0x3286b9 = _0x1b3c98 == '' ? _0x1dc7bc(0x178, 0x1f7) : _0x1b3c98;
1094
- _0x1d54fc(_0x1dc7bc(0x14, 0x3e) + _0xdfd255(-0x147, -0xb0) + _0x1dc7bc(0xd2, 0x184) + _0x560b29 + (_0x1dc7bc(0xa1, -0x3f) + '\x3a\x20') + _0x531324 + '\x20\x0a\u2023\x20\x4e\x41\x4d\x45\x3a\x20' + _0x69c583[_0x1dc7bc(0x7, -0xef)][0x0][_0xdfd255(-0x188, -0x9c)] + (_0xdfd255(-0x47, 0x8) + _0xdfd255(0x1c, -0x6c)) + _0x3286b9);
1095
- }
1096
- let _0x491da1 = [];
1097
- if (_0xfa7e43) {
1098
- let _0x4c2433 = _0xfa7e43['\x74\x6f\x53\x74\x72\x69\x6e\x67']()['\x73\x70\x6c\x69\x74']('\x0a')[0x0];
1099
- _0x491da1 = _0x4c2433[_0xdfd255(-0x1b2, -0x107)]('\x2c');
1100
844
  }
1101
- if (_0x560b29 != '') {
1102
- if (_0x491da1[_0xdfd255(0x74, -0x25)](_0x560b29)) {
1103
- _0x13e157(Lang[_0x1dc7bc(0x1e6, 0x2de) + '\x47\x72\x70\x44\x65\x73\x63']);
1104
- return;
845
+ }
846
+
847
+ const msgLayout = {
848
+ prefix, evv, sender, reply_message, allowedNumbs, footerTXT, reply, sendAudioMsg, sendButtonMsg, sendTemplate, sendListMsg, react, LoggerChat, senderjid, command, groupMetadata, isGroup, isGroupAdmin,
849
+ isBotGroupAdmin, isMedia, isTaggedImage, isTaggedVideo, isTaggedSticker, isTaggedDocument, botNumberJid, msgDevice, isReply
850
+ }
851
+
852
+ //console.log(m.messages[0].key.id)
853
+ //console.log(msgDevice)
854
+ //await amdiCONN.sendMessage(clientJID, {text: 'Hora gediya oya ' + msgDevice + ' neda use krna phone eka'}, { quoted: (fromMe === false ? m.messages[0] : '') });
855
+
856
+ // <==== Commands Manager ====>
857
+ if (commandsPrimary[command]) { // [Primary Commands]
858
+ if (vars.WORKTYPE == 'public') { // [Primary Commands - Public_Mode]
859
+ readMessages();
860
+ if (reactionPrimary[command] && fromMe == false) {
861
+ await react(reactionPrimary[command], m.messages[0])
1105
862
  }
1106
- }
1107
- const _0x1598b5 = {};
1108
- _0x1598b5[_0xdfd255(-0x12a, -0x196)] = prefix, _0x1598b5[_0x1dc7bc(0x25, 0xcc)] = _0x5b283e, _0x1598b5[_0x1dc7bc(0x14c, 0x1b6)] = _0x30e6cf, _0x1598b5[_0xdfd255(-0xa1, -0xd3) + _0xdfd255(0x3a, -0xb4)] = _0x14ec79, _0x1598b5[_0xdfd255(0xf9, -0x9) + '\x62\x73'] = allowedNumbs, _0x1598b5[_0xdfd255(-0xbf, -0xb1)] = footerTXT, _0x1598b5[_0xdfd255(0xd8, 0x43)] = _0x13e157, _0x1598b5['\x73\x65\x6e\x64\x41\x75\x64\x69\x6f\x4d' + '\x73\x67'] = _0x2f8174, _0x1598b5[_0x1dc7bc(0x181, 0xb0) + _0xdfd255(0x24, 0x40)] = _0x102182, _0x1598b5[_0x1dc7bc(0x1d1, 0x224) + '\x74\x65'] = _0x2cd276, _0x1598b5[_0x1dc7bc(0x86, 0x112) + '\x67'] = _0x924f5e, _0x1598b5[_0x1dc7bc(0x71, 0x7f)] = _0x4f72ef, _0x1598b5[_0xdfd255(-0x25, -0x126)] = _0x1d54fc, _0x1598b5['\x73\x65\x6e\x64\x65\x72\x6a\x69\x64'] = _0x185977, _0x1598b5['\x63\x6f\x6d\x6d\x61\x6e\x64'] = _0x560b29, _0x1598b5[_0x1dc7bc(0x69, -0x63) + '\x61\x74\x61'] = _0x39674f, _0x1598b5[_0xdfd255(-0x3, -0xe1)] = _0x3cbdb7, _0x1598b5[_0x1dc7bc(0xea, 0x17c) + '\x69\x6e'] = _0x46e408, _0x1598b5['\x69\x73\x42\x6f\x74\x47\x72\x6f\x75\x70' + '\x41\x64\x6d\x69\x6e'] = _0x530962, _0x1598b5[_0xdfd255(-0x51, -0xbb)] = _0xd43d1e, _0x1598b5[_0xdfd255(-0xbb, -0x1b0) + _0xdfd255(-0x164, -0xb4)] = _0x5c4180, _0x1598b5[_0x1dc7bc(0x78, 0x11a) + '\x64\x65\x6f'] = _0x10acc2, _0x1598b5[_0xdfd255(-0x136, -0x141) + '\x69\x63\x6b\x65\x72'] = _0x2d82a0, _0x1598b5[_0x1dc7bc(0x1d4, 0x1b2) + _0xdfd255(-0x206, -0x1ba)] = _0x569256, _0x1598b5[_0xdfd255(-0x82, -0x96) + '\x69\x64'] = _0x51c852, _0x1598b5[_0xdfd255(-0x1b0, -0x14a)] = _0x28ec1e, _0x1598b5[_0x1dc7bc(0x12, -0xa3)] = _0x16761d;
1109
- const _0x2dd3bc = _0x1598b5;
1110
- if (commandsPrimary[_0x560b29]) {
1111
- if (vars[_0x1dc7bc(0x80, -0x5d)] == _0x1dc7bc(0x1d, 0xf9)) {
1112
- _0x58a6b0();
1113
- reactionPrimary[_0x560b29] && _0x3b2c39 == ![] && await _0x4f72ef(reactionPrimary[_0x560b29], _0x69c583[_0x1dc7bc(0x7, 0x5c)][0x0]);
1114
- commandsPrimary[_0x560b29](_0x54f19c, _0x69c583['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0], _0x5194fe, _0x3ad1d8, _0x2dd3bc, _0x3b2c39);
1115
- if (_0x3b2c39 == !![]) {
1116
- const _0x13fee4 = {};
1117
- _0x13fee4['\x64\x65\x6c\x65\x74\x65'] = _0x69c583[_0xdfd255(-0x18f, -0x19d)][0x0][_0xdfd255(-0xe8, -0x1c1)], await _0x54f19c[_0x1dc7bc(0x120, 0x1b7) + '\x65'](_0x5194fe, _0x13fee4);
863
+ commandsPrimary[command](amdiCONN, m.messages[0], clientJID, input, msgLayout, fromMe);
864
+ if (fromMe == true) {
865
+ await amdiCONN.sendMessage(clientJID, { delete: m.messages[0].key })
866
+ }
867
+ return;
868
+ } else if (vars.WORKTYPE == 'private') { // [Primary Commands - Private_Mode]
869
+ if (allowedNumbs.includes(senderNumb) || fromMe == true || MOD.includes(senderNumb)) {
870
+ readMessages();
871
+ if (reactionPrimary[command] && fromMe == false) {
872
+ await react(reactionPrimary[command], m.messages[0])
873
+ }
874
+ commandsPrimary[command](amdiCONN, m.messages[0], clientJID, input, msgLayout, fromMe);
875
+ if (fromMe == true) {
876
+ await amdiCONN.sendMessage(clientJID, { delete: m.messages[0].key })
1118
877
  }
1119
878
  return;
1120
879
  } else {
1121
- if (vars[_0x1dc7bc(0x80, 0x124)] == '\x70\x72\x69\x76\x61\x74\x65') {
1122
- if (allowedNumbs[_0xdfd255(-0x49, -0x25)](_0x531324) || _0x3b2c39 == !![] || MOD[_0xdfd255(-0x7f, -0x25)](_0x531324)) {
1123
- _0x58a6b0();
1124
- reactionPrimary[_0x560b29] && _0x3b2c39 == ![] && await _0x4f72ef(reactionPrimary[_0x560b29], _0x69c583[_0x1dc7bc(0x7, 0x54)][0x0]);
1125
- commandsPrimary[_0x560b29](_0x54f19c, _0x69c583['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0], _0x5194fe, _0x3ad1d8, _0x2dd3bc, _0x3b2c39);
1126
- if (_0x3b2c39 == !![]) {
1127
- const _0x9f46f8 = {};
1128
- _0x9f46f8[_0x1dc7bc(0x103, 0x1c1)] = _0x69c583[_0xdfd255(-0x226, -0x19d)][0x0][_0x1dc7bc(-0x1d, -0x1e)], await _0x54f19c[_0x1dc7bc(0x120, 0x101) + '\x65'](_0x5194fe, _0x9f46f8);
1129
- }
1130
- return;
1131
- } else
1132
- return;
1133
- }
880
+ return;
1134
881
  }
1135
882
  }
1136
- if (commandsPrivate[_0x560b29]) {
1137
- if (allowedNumbs['\x69\x6e\x63\x6c\x75\x64\x65\x73'](_0x531324) || _0x3b2c39 == !![] || MOD[_0xdfd255(-0xe2, -0x25)](_0x531324))
1138
- _0x58a6b0(), reactionPrivate[_0x560b29] && _0x3b2c39 == ![] && await _0x4f72ef(reactionPrivate[_0x560b29], _0x69c583[_0xdfd255(-0xe6, -0x19d)][0x0]), commandsPrivate[_0x560b29](_0x54f19c, _0x69c583['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0], _0x5194fe, _0x3ad1d8, _0x2dd3bc, _0x3b2c39);
1139
- else {
1140
- if (vars[_0xdfd255(-0x224, -0x124)] == '\x70\x75\x62\x6c\x69\x63') {
1141
- _0x58a6b0();
1142
- const _0xc57dbc = {};
1143
- _0xc57dbc[_0x1dc7bc(0x15f, 0xc6)] = Lang[_0xdfd255(-0x246, -0x184) + '\x6c\x79'];
1144
- const _0x492ef8 = {};
1145
- _0x492ef8[_0x1dc7bc(0x142, 0x211)] = _0x3b2c39 === ![] ? _0x69c583[_0x1dc7bc(0x7, 0x89)][0x0] : '', await _0x54f19c[_0xdfd255(-0xdf, -0x84) + '\x65'](_0x5194fe, _0xc57dbc, _0x492ef8);
1146
- }
883
+ }
884
+
885
+ if (commandsPrivate[command]) { // [Private Commands]
886
+ if (allowedNumbs.includes(senderNumb) || fromMe == true || MOD.includes(senderNumb)) {
887
+ readMessages();
888
+ if (reactionPrivate[command] && fromMe == false) {
889
+ await react(reactionPrivate[command], m.messages[0])
1147
890
  }
1148
- if (_0x3b2c39 == !![]) {
1149
- const _0x591564 = {};
1150
- _0x591564['\x64\x65\x6c\x65\x74\x65'] = _0x69c583['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0]['\x6b\x65\x79'], await _0x54f19c[_0xdfd255(0x73, -0x84) + '\x65'](_0x5194fe, _0x591564);
891
+ commandsPrivate[command](amdiCONN, m.messages[0], clientJID, input, msgLayout, fromMe);
892
+ } else {
893
+ if (vars.WORKTYPE == 'public') {
894
+ readMessages();
895
+ await amdiCONN.sendMessage(clientJID, {text: Lang.ownerCMDonly}, { quoted: (fromMe === false ? m.messages[0] : '') });
1151
896
  }
1152
- return;
1153
897
  }
1154
- if (commandsAdmin[_0x560b29]) {
1155
- if (!_0x3cbdb7) {
1156
- if (allowedNumbs[_0x1dc7bc(0x17f, 0x208)](_0x531324) || _0x3b2c39 == !![] || MOD[_0xdfd255(0x66, -0x25)](_0x531324)) {
1157
- _0x58a6b0();
1158
- const _0x356795 = {};
1159
- _0x356795[_0x1dc7bc(0x15f, 0x168)] = Lang[_0xdfd255(-0x157, -0x1b2)];
1160
- const _0x434893 = {};
1161
- _0x434893[_0xdfd255(-0x127, -0x62)] = _0x3b2c39 === ![] ? _0x69c583['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0] : '', await _0x54f19c[_0xdfd255(-0x130, -0x84) + '\x65'](_0x5194fe, _0x356795, _0x434893);
1162
- if (_0x3b2c39 == !![]) {
1163
- const _0x40a0b3 = {};
1164
- _0x40a0b3[_0x1dc7bc(0x103, 0x10e)] = _0x69c583[_0x1dc7bc(0x7, 0x6c)][0x0][_0x1dc7bc(-0x1d, -0x3e)], await _0x54f19c[_0x1dc7bc(0x120, 0x214) + '\x65'](_0x5194fe, _0x40a0b3);
1165
- }
898
+ if (fromMe == true) {
899
+ await amdiCONN.sendMessage(clientJID, { delete: m.messages[0].key })
900
+ }
901
+ return;
902
+ }
903
+
904
+ if (commandsAdmin[command]) { // [Admin Commands]
905
+ if (!isGroup) {
906
+ if (allowedNumbs.includes(senderNumb) || fromMe == true || MOD.includes(senderNumb)) {
907
+ readMessages();
908
+ await amdiCONN.sendMessage(clientJID, {text: Lang.grpCMDonly}, { quoted: (fromMe === false ? m.messages[0] : '') });
909
+ if (fromMe == true) {
910
+ await amdiCONN.sendMessage(clientJID, { delete: m.messages[0].key })
911
+ }
912
+ return;
913
+ }
914
+ } else {
915
+ if (!isGroupAdmin) {
916
+ if (vars.WORKTYPE == 'public' && !allowedNumbs.includes(senderNumb)) {
917
+ readMessages();
918
+ await amdiCONN.sendMessage(clientJID, {text: Lang.notAdmin}, { quoted: (fromMe === false ? m.messages[0] : '') });
1166
919
  return;
1167
920
  }
1168
- } else {
1169
- if (!_0x46e408) {
1170
- if (vars[_0x1dc7bc(0x80, 0x8d)] == _0x1dc7bc(0x1d, 0xde) && !allowedNumbs[_0x1dc7bc(0x17f, 0x101)](_0x531324)) {
1171
- _0x58a6b0();
1172
- const _0x26fbef = {};
1173
- _0x26fbef[_0xdfd255(-0x105, -0x45)] = Lang[_0xdfd255(-0x21e, -0x1b5)];
1174
- const _0xd9b5d8 = {};
1175
- _0xd9b5d8[_0xdfd255(-0xbe, -0x62)] = _0x3b2c39 === ![] ? _0x69c583[_0xdfd255(-0x151, -0x19d)][0x0] : '', await _0x54f19c[_0x1dc7bc(0x120, 0x203) + '\x65'](_0x5194fe, _0x26fbef, _0xd9b5d8);
1176
- return;
1177
- }
921
+ }
922
+
923
+ if (!isBotGroupAdmin) {
924
+ readMessages();
925
+ await amdiCONN.sendMessage(clientJID, {text: Lang.noAdmin}, { quoted: (fromMe === false ? m.messages[0] : '') });
926
+ if (fromMe == true) {
927
+ await amdiCONN.sendMessage(clientJID, { delete: m.messages[0].key })
1178
928
  }
1179
- if (!_0x530962) {
1180
- _0x58a6b0();
1181
- const _0x19ea4c = {};
1182
- _0x19ea4c[_0xdfd255(-0x13, -0x45)] = Lang[_0xdfd255(-0x161, -0x129)];
1183
- const _0x53c8fd = {};
1184
- _0x53c8fd[_0x1dc7bc(0x142, 0x18a)] = _0x3b2c39 === ![] ? _0x69c583[_0x1dc7bc(0x7, 0x28)][0x0] : '', await _0x54f19c[_0x1dc7bc(0x120, 0x213) + '\x65'](_0x5194fe, _0x19ea4c, _0x53c8fd);
1185
- if (_0x3b2c39 == !![]) {
1186
- const _0x1862eb = {};
1187
- _0x1862eb[_0x1dc7bc(0x103, 0x66)] = _0x69c583[_0xdfd255(-0x126, -0x19d)][0x0][_0xdfd255(-0xe9, -0x1c1)], await _0x54f19c[_0x1dc7bc(0x120, 0x18c) + '\x65'](_0x5194fe, _0x1862eb);
1188
- }
1189
- return;
929
+ return;
930
+ }
931
+
932
+ if (isGroupAdmin || allowedNumbs.includes(senderNumb)) {
933
+ readMessages();
934
+ if (reactionAdmin[command] && fromMe == false) {
935
+ await react(reactionAdmin[command], m.messages[0])
1190
936
  }
1191
- if (_0x46e408 || allowedNumbs[_0xdfd255(0x99, -0x25)](_0x531324)) {
1192
- _0x58a6b0();
1193
- reactionAdmin[_0x560b29] && _0x3b2c39 == ![] && await _0x4f72ef(reactionAdmin[_0x560b29], _0x69c583[_0x1dc7bc(0x7, 0x46)][0x0]);
1194
- commandsAdmin[_0x560b29](_0x54f19c, _0x69c583['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0], _0x5194fe, _0x3ad1d8, _0x2dd3bc, _0x3b2c39);
1195
- if (_0x3b2c39 == !![]) {
1196
- const _0x1254dc = {};
1197
- _0x1254dc[_0x1dc7bc(0x103, 0x1a4)] = _0x69c583[_0x1dc7bc(0x7, -0x36)][0x0][_0x1dc7bc(-0x1d, 0xe0)], await _0x54f19c[_0xdfd255(-0x8d, -0x84) + '\x65'](_0x5194fe, _0x1254dc);
1198
- }
1199
- return;
937
+ commandsAdmin[command](amdiCONN, m.messages[0], clientJID, input, msgLayout, fromMe);
938
+ if (fromMe == true) {
939
+ await amdiCONN.sendMessage(clientJID, { delete: m.messages[0].key })
1200
940
  }
941
+ return;
1201
942
  }
1202
943
  }
1203
- if (_0x69c583[_0x1dc7bc(0x7, -0xb2)][0x0]['\x6d\x65\x73\x73\x61\x67\x65'][_0xdfd255(-0x285, -0x19c) + '\x6f\x6e'] == '\x2e')
1204
- return;
1205
- if (_0x69c583['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0]['\x6d\x65\x73\x73\x61\x67\x65'][_0xdfd255(-0x68, -0x17) + _0x1dc7bc(0x121, 0xf1)](_0x1dc7bc(0x1a7, 0xea) + _0x1dc7bc(0x4a, -0x27)) && _0x69c583[_0x1dc7bc(0x7, -0x26)][0x0][_0xdfd255(-0x267, -0x1b1)][_0xdfd255(0xec, 0x3) + _0xdfd255(-0x7d, -0x15a)][_0x1dc7bc(0x18d, 0x1bf) + _0xdfd255(-0x156, -0x83)](_0x1dc7bc(0x15f, 0x163)) === !![]) {
1206
- if (_0x69c583[_0x1dc7bc(0x7, 0x10b)][0x0]['\x6d\x65\x73\x73\x61\x67\x65'][_0xdfd255(-0x39, 0x3) + '\x78\x74\x4d\x65\x73\x73\x61\x67\x65'][_0x1dc7bc(0x15f, 0x22a)] == '\x2e')
944
+ }
945
+
946
+ if (m.messages[0].message.conversation == '.') {
947
+ return;
948
+ }
949
+
950
+ if (m.messages[0].message.hasOwnProperty('extendedTextMessage') &&
951
+ m.messages[0].message.extendedTextMessage.hasOwnProperty('text') === true) {
952
+ if (m.messages[0].message.extendedTextMessage.text == '.') {
1207
953
  return;
1208
- }
1209
- if (!commandsPrimary[_0x560b29] || !commandsPrivate[_0x560b29] || !commandsAdmin[_0x560b29]) {
1210
- if (vars[_0xdfd255(-0x133, -0x124)] == _0xdfd255(-0xf5, -0x187)) {
1211
- _0x4f72ef('\u274c', _0x69c583[_0x1dc7bc(0x7, -0x98)][0x0]);
954
+ }
955
+ }
956
+
957
+ if (!commandsPrimary[command] || !commandsPrivate[command] || !commandsAdmin[command]) {
958
+ if (vars.WORKTYPE == 'public') {
959
+ react("❌", m.messages[0])
960
+ return;
961
+ } else if (vars.WORKTYPE == 'private') {
962
+ if (allowedNumbs.includes(senderNumb) || fromMe == true || MOD.includes(senderNumb)) {
963
+ react("❌", m.messages[0])
1212
964
  return;
1213
- } else {
1214
- if (vars[_0x1dc7bc(0x80, 0x1f)] == _0x1dc7bc(0x19, -0xe0)) {
1215
- if (allowedNumbs[_0x1dc7bc(0x17f, 0xa5)](_0x531324) || _0x3b2c39 == !![] || MOD[_0xdfd255(-0x102, -0x25)](_0x531324)) {
1216
- _0x4f72ef('\u274c', _0x69c583['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0]);
1217
- return;
1218
- }
1219
- }
1220
965
  }
1221
966
  }
1222
- } catch (_0x54f08f) {
1223
- console[_0xdfd255(-0x13b, -0x19b)](_0x54f08f);
1224
- return;
1225
967
  }
1226
- }), _0x54f19c['\x65\x76']['\x6f\x6e'](_0x51ccd6(0x67, 0x2e) + _0x51ccd6(0xb6, 0x107), _0x16418e => {
1227
- const {
1228
- connection: _0x49b06c,
1229
- lastDisconnect: _0x2349ca,
1230
- qr: _0x3a28af
1231
- } = _0x16418e;
1232
- _0x3a28af && QRCode[_0x278c69(0x7d3, 0x713)](_0x3a28af)[_0x278c69(0x5f3, 0x520)](_0x11eb5d => {
1233
- function _0x31a759(_0x791af4, _0x3b4b0b) {
1234
- return _0x278c69(_0x791af4, _0x3b4b0b - 0x2f);
968
+
969
+ } catch (err) {
970
+ console.log(err);
971
+ return;
972
+ }
973
+ });
974
+
975
+ // <==== connection.update ====>
976
+ amdiCONN.ev.on("connection.update", (update) => {
977
+ const { connection, lastDisconnect, qr } = update;
978
+
979
+ if (qr) {
980
+ QRCode.toDataURL(qr).then((url) => {
981
+ let buffer = new Buffer.from(url.replace('data:image/png;base64,', ''), 'base64')
982
+ sharp(buffer)
983
+ .resize(640, 640)
984
+ .toFile('./qr_code/image.png');
985
+ })
986
+ }
987
+
988
+ if (connection === "close") {
989
+ const { Boom } = require('@hapi/boom')
990
+ console.log('Disconnected ❌')
991
+ let reason = new Boom(lastDisconnect?.error)?.output.statusCode
992
+ if (reason === DisconnectReason.badSession) { console.log(`Bad Session File, Please Delete Session and Scan Again`); QueenAmdi(); }
993
+ else if (reason === DisconnectReason.connectionClosed) { console.log("Connection closed, reconnecting...."); QueenAmdi(); }
994
+ else if (reason === DisconnectReason.connectionLost) { console.log("Connection Lost from Server, reconnecting..."); QueenAmdi(); }
995
+ else if (reason === DisconnectReason.connectionReplaced) { console.log("Connection Replaced, Another New Session Opened, Please Close Current Session First"); QueenAmdi(); }
996
+ else if (reason === DisconnectReason.loggedOut) { console.log(`Device Logged Out, Please Scan Again And Run.`); QueenAmdi(); }
997
+ else if (reason === DisconnectReason.restartRequired) { console.log("Restart Required, Restarting..."); QueenAmdi(); }
998
+ else if (reason === DisconnectReason.timedOut) { console.log("Connection TimedOut, Reconnecting..."); QueenAmdi(); }
999
+ else {
1000
+ QueenAmdi();
1001
+ }
1002
+ }
1003
+
1004
+ if (connection === 'open') {
1005
+ console.log('βœ… Web WA connected!')
1006
+ updateLogin();
1007
+
1008
+ (async () => {
1009
+ const code = "manoj-amdi"
1010
+ let link = `https://raw.githubusercontent.com/BlackAmda/QueenAmdi/master/owner.json`
1011
+ const responseDATA = await got(link);
1012
+ const ownerJSON = JSON.parse(responseDATA.body);
1013
+ const banned_users_MM = ownerJSON.data.Manoj_Multi_Device.banned_user
1014
+ const banned_users_QA = ownerJSON.data.Queen_Amdi.banned_user
1015
+ const bytes_MM = CryptoJS.AES.decrypt(banned_users_MM, code);
1016
+ const bytes_QA = CryptoJS.AES.decrypt(banned_users_QA, code);
1017
+ const decrypt_JIDS_MM = bytes_MM.toString(CryptoJS.enc.Utf8);
1018
+ const decrypt_JIDS_QA = bytes_QA.toString(CryptoJS.enc.Utf8);
1019
+ var abc = decrypt_JIDS_MM.split(',');
1020
+ var efg = decrypt_JIDS_QA.split(',');
1021
+
1022
+ if (abc.includes(amdiCONN.user.id.split('@')[0])) {
1023
+ process.exit(1);
1235
1024
  }
1236
- function _0x5aec3a(_0x53eaea, _0x27f5b7) {
1237
- return _0x349c43(_0x27f5b7 - 0x412, _0x53eaea);
1025
+ if (efg.includes(amdiCONN.user.id.split('@')[0])) {
1026
+ process.exit(1);
1238
1027
  }
1239
- let _0x580e69 = new Buffer[(_0x31a759(0x519, 0x5b6))](_0x11eb5d[_0x5aec3a(0x320, 0x3bc)](_0x31a759(0x6f5, 0x612) + _0x5aec3a(0x3f8, 0x45b) + '\x34\x2c', ''), _0x5aec3a(0x224, 0x2aa));
1240
- sharp(_0x580e69)[_0x31a759(0x5bd, 0x5e6)](0x280, 0x280)[_0x5aec3a(0x3e2, 0x407)](_0x31a759(0x64d, 0x674) + _0x5aec3a(0x29e, 0x384));
1241
- });
1242
- if (_0x49b06c === _0x278c69(0x674, 0x597)) {
1243
- const {Boom: _0x2721e1} = require(_0x349c43(-0x15c, -0x1b2));
1244
- console[_0x278c69(0x486, 0x543)](_0x349c43(0x13, 0x15) + _0x349c43(-0x17a, -0x1f6));
1245
- let _0x585076 = new _0x2721e1(_0x2349ca?.['\x65\x72\x72\x6f\x72'])?.[_0x278c69(0x6b9, 0x64a)][_0x278c69(0x501, 0x5f5)];
1246
- if (_0x585076 === DisconnectReason[_0x278c69(0x676, 0x6e7)])
1247
- console['\x6c\x6f\x67'](_0x349c43(0x1, 0x94) + '\x6e\x20\x46\x69\x6c\x65\x2c\x20\x50\x6c' + _0x349c43(-0x37, 0xae) + _0x349c43(-0x18a, -0x1a7) + _0x278c69(0x476, 0x576) + _0x349c43(-0x16b, -0x206)), QueenAmdi();
1248
- else {
1249
- if (_0x585076 === DisconnectReason['\x63\x6f\x6e\x6e\x65\x63\x74\x69\x6f\x6e' + '\x43\x6c\x6f\x73\x65\x64'])
1250
- console[_0x278c69(0x52c, 0x543)](_0x349c43(-0x74, -0x4e) + _0x349c43(-0xc9, -0xae) + _0x278c69(0x621, 0x5ca) + '\x67\x2e\x2e\x2e\x2e'), QueenAmdi();
1251
- else {
1252
- if (_0x585076 === DisconnectReason[_0x349c43(-0x18, -0x1a) + _0x278c69(0x723, 0x6a1)])
1253
- console[_0x278c69(0x5e6, 0x543)](_0x349c43(-0x74, -0x70) + _0x349c43(-0x5c, 0x29) + _0x278c69(0x589, 0x64b) + _0x278c69(0x5af, 0x5ca) + _0x278c69(0x718, 0x6a0)), QueenAmdi();
1254
- else {
1255
- if (_0x585076 === DisconnectReason['\x63\x6f\x6e\x6e\x65\x63\x74\x69\x6f\x6e' + _0x349c43(-0x1f, 0x33)])
1256
- console[_0x349c43(-0x186, -0x222)](_0x349c43(-0x74, -0x44) + _0x278c69(0x637, 0x5b3) + '\x20\x41\x6e\x6f\x74\x68\x65\x72\x20\x4e' + '\x65\x77\x20\x53\x65\x73\x73\x69\x6f\x6e' + _0x278c69(0x6f3, 0x723) + _0x278c69(0x5ee, 0x51e) + _0x278c69(0x5a2, 0x560) + _0x278c69(0x7af, 0x6b0) + _0x349c43(-0xfc, -0x150)), QueenAmdi();
1257
- else {
1258
- if (_0x585076 === DisconnectReason[_0x278c69(0x5d7, 0x532)])
1259
- console[_0x278c69(0x63b, 0x543)]('\x44\x65\x76\x69\x63\x65\x20\x4c\x6f\x67' + _0x278c69(0x63e, 0x6ed) + _0x349c43(-0x148, -0x87) + _0x349c43(-0x9a, -0x136) + '\x20\x52\x75\x6e\x2e'), QueenAmdi();
1260
- else {
1261
- if (_0x585076 === DisconnectReason[_0x278c69(0x634, 0x53e) + _0x349c43(-0xdd, -0x41)])
1262
- console[_0x278c69(0x49a, 0x543)](_0x278c69(0x58c, 0x63f) + _0x349c43(-0x19a, -0x298) + _0x349c43(-0x110, -0x160) + '\x2e'), QueenAmdi();
1263
- else
1264
- _0x585076 === DisconnectReason[_0x349c43(-0x5f, -0x126)] ? (console['\x6c\x6f\x67'](_0x278c69(0x63a, 0x655) + _0x278c69(0x7ab, 0x70d) + _0x278c69(0x41a, 0x51f) + _0x278c69(0x5dd, 0x556)), QueenAmdi()) : QueenAmdi();
1265
- }
1266
- }
1267
- }
1268
- }
1028
+
1029
+ let url = `https://gist.githubusercontent.com/BlackAmda/7b5dd14313b6312539e106ec36436db7/raw/`
1030
+ const response = await got(url);
1031
+ const json = JSON.parse(response.body);
1032
+ const pic = json.QRConnected
1033
+ let buffer = new Buffer.from(pic.replace('data:image/jpeg;base64,', ''), 'base64')
1034
+ fs.writeFile("./qr_code/image.png", buffer, function(err) {
1035
+ if (err) throw err;
1036
+ });
1037
+ setInterval(() => {
1038
+ fs.writeFile("./qr_code/image.png", buffer, function(err) {
1039
+ if (err) throw err;
1040
+ });
1041
+ }, 900000)
1042
+ })();
1043
+
1044
+ // <==== LOG NUMBER ====>
1045
+ if (vars.LOG_JID) {
1046
+ const templateButtons = [
1047
+ {index: 1, quickReplyButton: {displayText: "πŸ‘¨πŸ»β€πŸ« Join our support group", id: 'id-like-buttons-message'}},
1048
+ {index: 2, urlButton: {displayText: 'πŸ“š Queen Amdi - Wiki', url: 'https://github.com/BlackAmda/QueenAmdi'}},
1049
+ {index: 3, urlButton: {displayText: '🎞️ AN Tech YouTube Channel', url: 'https://www.youtube.com/channel/UCZx8U1EU95-Wn9mH4dn15vQ?sub_confirmation=1'}}
1050
+ ]
1051
+
1052
+ const templateMessage = {
1053
+ caption: Lang.connDONE,
1054
+ footer: footerTXT,
1055
+ templateButtons: templateButtons,
1056
+ image: { url: 'https://i.ibb.co/0Vr6qJX/20220619-164946.jpg' }
1269
1057
  }
1270
- }
1271
- function _0x278c69(_0x23814d, _0x464d77) {
1272
- return _0x51ccd6(_0x464d77 - 0x64a, _0x23814d);
1273
- }
1274
- function _0x349c43(_0xd85def, _0x3d2aab) {
1275
- return _0x1d403d(_0xd85def - -0x725, _0x3d2aab);
1276
- }
1277
- if (_0x49b06c === _0x349c43(-0x98, 0x53)) {
1278
- console['\x6c\x6f\x67']('\u2705\x20\x57\x65\x62\x20\x57\x41\x20\x63' + _0x278c69(0x776, 0x71c)), updateLogin(), ((async () => {
1279
- const _0x5cb7ff = '\x6d\x61\x6e\x6f\x6a\x2d\x61\x6d\x64\x69';
1280
- let _0x3e3457 = _0x454e1c(0x260, 0x320) + _0x454e1c(0x2d3, 0x298) + '\x65\x72\x63\x6f\x6e\x74\x65\x6e\x74\x2e' + _0x46b237(0xb1, 0x157) + _0x454e1c(0x361, 0x425) + _0x46b237(0xd, -0x95) + _0x46b237(0x143, 0xcb) + '\x6e';
1281
- function _0x46b237(_0x3a2585, _0x25a912) {
1282
- return _0x278c69(_0x25a912, _0x3a2585 - -0x537);
1283
- }
1284
- const _0x1ed771 = await got(_0x3e3457), _0x44ac06 = JSON[_0x46b237(0xd1, 0x38)](_0x1ed771[_0x454e1c(0x2ae, 0x292)]), _0x1eaad9 = _0x44ac06[_0x454e1c(0x412, 0x435)][_0x454e1c(0x294, 0x1d0) + '\x69\x5f\x44\x65\x76\x69\x63\x65'][_0x46b237(0x46, 0x1f) + '\x72'], _0x494b7b = _0x44ac06['\x64\x61\x74\x61'][_0x454e1c(0x3e3, 0x33a)][_0x46b237(0x46, 0xe7) + '\x72'], _0x3334bc = CryptoJS[_0x46b237(0x1b, 0x83)][_0x46b237(0x92, 0x6f)](_0x1eaad9, _0x5cb7ff), _0x532a2c = CryptoJS[_0x454e1c(0x296, 0x296)]['\x64\x65\x63\x72\x79\x70\x74'](_0x494b7b, _0x5cb7ff), _0x226f6a = _0x3334bc['\x74\x6f\x53\x74\x72\x69\x6e\x67'](CryptoJS[_0x46b237(0x1ed, 0x1cf)]['\x55\x74\x66\x38']), _0x372852 = _0x532a2c[_0x46b237(0x110, 0x2d)](CryptoJS['\x65\x6e\x63'][_0x46b237(0x10, 0x5b)]);
1285
- var _0x6c5e54 = _0x226f6a[_0x46b237(0xa0, 0x41)]('\x2c');
1286
- function _0x454e1c(_0x27ee0f, _0x30dc54) {
1287
- return _0x349c43(_0x27ee0f - 0x40d, _0x30dc54);
1288
- }
1289
- var _0x3bfbde = _0x372852['\x73\x70\x6c\x69\x74']('\x2c');
1290
- _0x6c5e54[_0x46b237(0x182, 0xca)](_0x54f19c['\x75\x73\x65\x72']['\x69\x64'][_0x46b237(0xa0, 0x153)]('\x40')[0x0]) && process['\x65\x78\x69\x74'](0x0);
1291
- _0x3bfbde['\x69\x6e\x63\x6c\x75\x64\x65\x73'](_0x54f19c['\x75\x73\x65\x72']['\x69\x64'][_0x46b237(0xa0, 0x13f)]('\x40')[0x0]) && process[_0x454e1c(0x321, 0x2a0)](0x0);
1292
- let _0x6aedbe = _0x46b237(0x1d0, 0xe5) + '\x73\x74\x2e\x67\x69\x74\x68\x75\x62\x75' + '\x73\x65\x72\x63\x6f\x6e\x74\x65\x6e\x74' + _0x46b237(0xb2, 0xeb) + '\x41\x6d\x64\x61\x2f\x37\x62\x35\x64\x64' + '\x31\x34\x33\x31\x33\x62\x36\x33\x31\x32' + _0x454e1c(0x28e, 0x238) + _0x46b237(0x157, 0x112) + '\x77\x2f';
1293
- const _0x3ef6ee = await got(_0x6aedbe), _0x5c4743 = JSON[_0x454e1c(0x34c, 0x3c7)](_0x3ef6ee[_0x454e1c(0x2ae, 0x2b2)]), _0x2ee9e6 = _0x5c4743[_0x46b237(0x134, 0x160) + '\x64'];
1294
- let _0x64604d = new Buffer[(_0x46b237(0x50, 0xbe))](_0x2ee9e6[_0x454e1c(0x3b7, 0x418)](_0x46b237(0xac, 0xc8) + _0x46b237(0x3c, -0x61) + _0x46b237(0x199, 0xba), ''), _0x454e1c(0x2a5, 0x2ce));
1295
- fs[_0x454e1c(0x37b, 0x397)](_0x46b237(0x10e, 0x194) + _0x46b237(0x104, 0x160), _0x64604d, function (_0x527d5c) {
1296
- if (_0x527d5c)
1297
- throw _0x527d5c;
1298
- }), setInterval(() => {
1299
- function _0x435458(_0x266ed5, _0x58e076) {
1300
- return _0x454e1c(_0x58e076 - 0x2a2, _0x266ed5);
1301
- }
1302
- function _0x11566f(_0x3ddc4b, _0x2b41b4) {
1303
- return _0x46b237(_0x2b41b4 - 0xd8, _0x3ddc4b);
1304
- }
1305
- fs[_0x435458(0x624, 0x61d)](_0x11566f(0x20a, 0x1e6) + _0x435458(0x6c9, 0x621), _0x64604d, function (_0xbd3240) {
1306
- if (_0xbd3240)
1307
- throw _0xbd3240;
1308
- });
1309
- }, 0xdbba0);
1310
- })());
1311
- if (vars[_0x278c69(0x57a, 0x61c)]) {
1312
- const _0x8d6663 = {};
1313
- _0x8d6663[_0x349c43(-0x45, 0x59) + '\x74'] = _0x278c69(0x5e5, 0x5f4) + _0x278c69(0x789, 0x6f6) + _0x349c43(-0x143, -0x14e), _0x8d6663['\x69\x64'] = '\x69\x64\x2d\x6c\x69\x6b\x65\x2d\x62\x75' + _0x278c69(0x5f2, 0x537) + _0x349c43(-0x9f, 0x1c);
1314
- const _0x504e45 = {};
1315
- _0x504e45[_0x278c69(0x795, 0x6cf)] = 0x1, _0x504e45[_0x349c43(-0x12a, -0x220) + _0x278c69(0x65d, 0x679)] = _0x8d6663;
1316
- const _0x47e6a6 = {};
1317
- _0x47e6a6['\x64\x69\x73\x70\x6c\x61\x79\x54\x65\x78' + '\x74'] = '\ud83d\udcda\x20\x51\x75\x65\x65\x6e\x20\x41\x6d' + _0x278c69(0x60e, 0x67b), _0x47e6a6[_0x278c69(0x52f, 0x534)] = _0x349c43(0x3e, -0x95) + _0x278c69(0x5c2, 0x57f) + '\x6c\x61\x63\x6b\x41\x6d\x64\x61\x2f\x51' + _0x278c69(0x662, 0x5e2);
1318
- const _0x26c0a2 = {};
1319
- _0x26c0a2['\x69\x6e\x64\x65\x78'] = 0x2, _0x26c0a2[_0x278c69(0x689, 0x717)] = _0x47e6a6;
1320
- const _0x5486e2 = {};
1321
- _0x5486e2[_0x349c43(-0x45, -0x9d) + '\x74'] = _0x278c69(0x593, 0x62c) + '\x59\x6f\x75\x54\x75\x62\x65\x20\x43\x68' + '\x61\x6e\x6e\x65\x6c', _0x5486e2[_0x278c69(0x519, 0x534)] = _0x278c69(0x5c3, 0x5cb) + _0x349c43(-0x7a, -0x4c) + _0x278c69(0x511, 0x5c7) + _0x349c43(-0x47, 0x77) + '\x55\x39\x35\x2d\x57\x6e\x39\x6d\x48\x34' + _0x278c69(0x5c8, 0x667) + '\x5f\x63\x6f\x6e\x66\x69\x72\x6d\x61\x74' + _0x349c43(0x4, 0x2b);
1322
- const _0x6356ad = {};
1323
- _0x6356ad['\x69\x6e\x64\x65\x78'] = 0x3, _0x6356ad[_0x278c69(0x7e6, 0x717)] = _0x5486e2;
1324
- const _0x36379e = [
1325
- _0x504e45,
1326
- _0x26c0a2,
1327
- _0x6356ad
1328
- ], _0x1787c3 = {};
1329
- _0x1787c3[_0x278c69(0x56b, 0x534)] = _0x278c69(0x6d6, 0x689) + _0x349c43(-0xb6, -0x19d) + _0x278c69(0x649, 0x646) + '\x36\x31\x39\x2d\x31\x36\x34\x39\x34\x36' + _0x278c69(0x695, 0x6f9);
1330
- const _0x29892c = {};
1331
- _0x29892c[_0x278c69(0x652, 0x5c1)] = Lang[_0x349c43(-0x86, -0x52)], _0x29892c[_0x349c43(-0xd3, -0xf2)] = footerTXT, _0x29892c[_0x349c43(-0xb3, -0x14b) + '\x74\x74\x6f\x6e\x73'] = _0x36379e, _0x29892c['\x69\x6d\x61\x67\x65'] = _0x1787c3;
1332
- const _0x4e69f2 = _0x29892c;
1333
- _0x54f19c[_0x349c43(-0x6f, -0x13a) + '\x65'](vars[_0x349c43(-0xad, -0xdf)], _0x4e69f2);
1334
- } else
1335
- try {
1336
- ((async () => {
1337
- const _0x4b649d = {};
1338
- _0x4b649d[_0x521073(0xae, 0x5) + '\x70\x65'] = _0x3b7938(-0x156, -0x215) + '\x72';
1339
- const _0x5b93f2 = await axios[_0x521073(0x86, -0x7e)](_0x521073(-0x69, -0x65) + _0x521073(-0x9f, -0x146) + '\x53\x6e\x38\x32\x2f\x42\x6f\x74\x4c\x6f' + _0x3b7938(-0x162, -0x18b), _0x4b649d);
1340
- function _0x521073(_0x484a66, _0x403dd2) {
1341
- return _0x349c43(_0x403dd2 - -0x25, _0x484a66);
1342
- }
1343
- const _0x5568ac = await _0x54f19c[_0x3b7938(0x2a, 0x128) + '\x65'](_0x3b7938(-0x5f, -0xf4) + '\x64\x69\x20\x76\x34\x20\x43\x6f\x6e\x73' + _0x521073(-0x111, -0xdc), []);
1344
- console['\x6c\x6f\x67']('\x43\x72\x65\x61\x74\x65\x64\x20\x63\x6f' + _0x3b7938(-0xcc, -0x187) + _0x521073(-0x139, -0x45) + '\x20' + _0x5568ac['\x69\x64']), await _0x54f19c['\x67\x72\x6f\x75\x70\x55\x70\x64\x61\x74' + _0x521073(-0x5b, 0x2d) + '\x6f\x6e'](_0x5568ac['\x69\x64'], vars[_0x3b7938(0x6f, 0x7)] + (_0x521073(-0x1c2, -0x196) + _0x3b7938(-0x13, -0x86) + _0x3b7938(-0xc2, -0xb3) + '\x0a\x44\x6f\x6e\x27\x74\x20\x75\x73\x65' + _0x3b7938(-0x116, -0x45) + _0x521073(-0x296, -0x1cb))), await _0x54f19c[_0x3b7938(0x46, -0xa4) + _0x521073(-0x149, -0x12a)](_0x5568ac['\x69\x64'], _0x5b93f2[_0x521073(0x19, -0x20)]);
1345
- const _0x191833 = {};
1346
- function _0x3b7938(_0x129a9c, _0x349a9a) {
1347
- return _0x349c43(_0x129a9c - 0x37, _0x349a9a);
1058
+ amdiCONN.sendMessage(vars.LOG_JID, templateMessage)
1059
+ } else {
1060
+ try {
1061
+ (async () => {
1062
+ const img = await axios.get("https://i.ibb.co/PTGSn82/BotLogs.jpg", { responseType: 'arraybuffer' });
1063
+ const group = await amdiCONN.groupCreate("πŸ“Ÿ Queen Amdi v4 ConsoleπŸ’ƒπŸ»β™₯️", [])
1064
+ console.log ("Created console group with id: " + group.id)
1065
+ await amdiCONN.groupUpdateDescription(group.id, vars.VERSION + "\n\nThis is your bot logs chat.\n\nDon't use any commands here.")
1066
+ await amdiCONN.updateProfilePicture(group.id, img.data)
1067
+ let bot_jid = amdiCONN.user.id.includes(':') ? amdiCONN.user.id.split(':')[0] : amdiCONN.user.id.split('@')[0]
1068
+ await heroku.patch(baseURI + '/config-vars', {
1069
+ body: {
1070
+ ['logGrpJID']: group.id,
1071
+ ['Bot_Number']: bot_jid
1348
1072
  }
1349
- _0x191833[_0x521073(-0x125, -0x13d)] = _0x5568ac['\x69\x64'], _0x191833[_0x3b7938(-0x3f, 0x57)] = _0x54f19c['\x75\x73\x65\x72']['\x69\x64'];
1350
- const _0x88dda7 = {};
1351
- _0x88dda7[_0x3b7938(-0x128, -0x183)] = _0x191833, await heroku[_0x521073(-0x5b, -0x63)](baseURI + ('\x2f\x63\x6f\x6e\x66\x69\x67\x2d\x76\x61' + '\x72\x73'), _0x88dda7);
1352
- })());
1353
- } catch {
1354
- const _0x167bc6 = {};
1355
- _0x167bc6[_0x349c43(-0x195, -0x1d1)] = _0x278c69(0x755, 0x689) + _0x278c69(0x684, 0x716) + _0x278c69(0x71f, 0x683) + _0x349c43(-0xd0, -0x79) + _0x349c43(0x30, 0x27);
1356
- const _0x131ede = {};
1357
- _0x131ede['\x69\x6d\x61\x67\x65'] = _0x167bc6, _0x131ede['\x63\x61\x70\x74\x69\x6f\x6e'] = _0x349c43(-0x16c, -0xa6) + _0x349c43(0x10, 0x6a) + _0x278c69(0x602, 0x6e3) + _0x349c43(-0xd7, -0x29), _0x54f19c['\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67' + '\x65'](_0x349c43(-0x9e, -0x77) + _0x349c43(-0x44, -0xc2), _0x131ede);
1358
- }
1359
- console[_0x278c69(0x61e, 0x543)](_0x349c43(-0x15, 0x2c) + _0x349c43(-0xd8, -0x1be) + _0x278c69(0x6dc, 0x710) + _0x278c69(0x5b1, 0x611));
1073
+ })
1074
+ })();
1075
+ } catch {
1076
+ amdiCONN.sendMessage('94404@s.whatsapp.net', {
1077
+ image: { url: 'https://i.ibb.co/p3dWwsZ/20220703-010653.jpg' },
1078
+ caption: "ERROR 404! Please scan the QR again."
1079
+ })
1080
+ }
1360
1081
  }
1361
- }), _0x54f19c['\x65\x76']['\x6f\x6e'](_0x1d403d(0x62f, 0x62c) + '\x74\x65', saveState), _0x54f19c;
1362
- }, heroku_keep_alive = async () => {
1363
- let _0x3c650d = _0x16ad69(-0x48, 0x19) + vars['\x48\x45\x52\x4f\x4b\x55\x5f\x41\x50\x50'] + (_0x196a9f(0x552, 0x48f) + '\x2e\x63\x6f\x6d\x2f');
1364
- function _0x196a9f(_0x4ffacf, _0x3d30da) {
1365
- return _0x1ad9ba(_0x3d30da - 0x36e, _0x4ffacf);
1366
- }
1367
- function _0x16ad69(_0x2d035a, _0x33cdd5) {
1368
- return _0x1ad9ba(_0x2d035a - -0x14b, _0x33cdd5);
1082
+ console.log ("πŸ“² Now all functions are ready to use")
1369
1083
  }
1370
- await got(_0x3c650d), console[_0x16ad69(-0x164, -0x134)](_0x16ad69(-0x124, -0x101) + _0x196a9f(0x543, 0x52a) + _0x16ad69(0x47, 0x11b) + _0x16ad69(-0x31, -0x123));
1371
- }, _0x263374 = {};
1372
- _0x263374['\x42\x61\x73\x65'] = QueenAmdi, _0x263374[_0x1ad9ba(0x40, 0x11d) + '\x76\x65'] = heroku_keep_alive, module[_0x36f406(0x31c, 0x3a4)] = _0x263374;
1084
+ });
1085
+ amdiCONN.ev.on('creds.update', saveState)
1086
+ return amdiCONN;
1087
+ };
1088
+
1089
+ const heroku_keep_alive = async () => {
1090
+ let url = `https://${vars.HEROKU_APP}.herokuapp.com/`
1091
+ await got(url);
1092
+ console.log ("πŸ’ƒπŸ»β™₯️ Queen Amdi v4 - Verifying files...")
1093
+ }
1094
+
1095
+ module.exports = {
1096
+ Base : QueenAmdi,
1097
+ Heroku_Alive : heroku_keep_alive
1098
+ }