queenamdi-functions-beta 0.0.27 β 0.1.0
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.
- package/base/amdiModule.js +1014 -1311
- package/base/qrDisplay.js +9 -79
- package/default.js +2 -1
- package/index.js +2 -1
- package/lib/amdiMenu.js +152 -0
- package/lib/settingsDB.js +86 -164
- package/package.json +1 -1
package/base/amdiModule.js
CHANGED
@@ -1,1395 +1,1098 @@
|
|
1
|
-
|
2
|
-
const _0x1aec9d = _0x7657d();
|
3
|
-
function _0x3fd001(_0x49c49a, _0x9bafc5) {
|
4
|
-
return _0x3d39(_0x9bafc5 - 0xe5, _0x49c49a);
|
5
|
-
}
|
6
|
-
function _0x1191bb(_0x3e64af, _0x161399) {
|
7
|
-
return _0x3d39(_0x161399 - 0x2c8, _0x3e64af);
|
8
|
-
}
|
9
|
-
while (!![]) {
|
10
|
-
try {
|
11
|
-
const _0x29e6be = -parseInt(_0x3fd001(0x210, 0x2e3)) / 0x1 * (-parseInt(_0x3fd001(0x37f, 0x2ee)) / 0x2) + parseInt(_0x1191bb(0x4a3, 0x4b4)) / 0x3 * (-parseInt(_0x1191bb(0x4e3, 0x4e4)) / 0x4) + parseInt(_0x1191bb(0x5fe, 0x50e)) / 0x5 * (parseInt(_0x3fd001(0x452, 0x3d6)) / 0x6) + -parseInt(_0x1191bb(0x5a1, 0x574)) / 0x7 * (-parseInt(_0x3fd001(0x429, 0x3ae)) / 0x8) + parseInt(_0x1191bb(0x67b, 0x58b)) / 0x9 * (parseInt(_0x1191bb(0x52e, 0x480)) / 0xa) + -parseInt(_0x3fd001(0x41f, 0x371)) / 0xb + parseInt(_0x1191bb(0x3a1, 0x46f)) / 0xc * (-parseInt(_0x1191bb(0x640, 0x588)) / 0xd);
|
12
|
-
if (_0x29e6be === _0xe6de5a)
|
13
|
-
break;
|
14
|
-
else
|
15
|
-
_0x1aec9d['push'](_0x1aec9d['shift']());
|
16
|
-
} catch (_0x1f52f4) {
|
17
|
-
_0x1aec9d['push'](_0x1aec9d['shift']());
|
18
|
-
}
|
19
|
-
}
|
20
|
-
}(_0x1efd, 0x297f5));
|
1
|
+
// <<==== Baileys ====>>
|
21
2
|
const {
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
const
|
33
|
-
|
34
|
-
const
|
35
|
-
|
36
|
-
|
37
|
-
|
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]
|
38
42
|
}
|
39
|
-
function saveMessageST(
|
40
|
-
messages[
|
43
|
+
function saveMessageST(messageID, txt) {
|
44
|
+
messages[messageID] = txt
|
41
45
|
}
|
42
|
-
function getMessageST(
|
43
|
-
return messages[
|
46
|
+
function getMessageST(messageID) {
|
47
|
+
return messages[messageID]
|
48
|
+
|
44
49
|
}
|
45
50
|
function clearMessagesST() {
|
46
|
-
messages = []
|
47
|
-
}
|
48
|
-
function _0x3d39(_0x4ec515, _0x30768b) {
|
49
|
-
const _0x1efde1 = _0x1efd();
|
50
|
-
return _0x3d39 = function (_0x3d39ef, _0x121aa2) {
|
51
|
-
_0x3d39ef = _0x3d39ef - 0x182;
|
52
|
-
let _0x3fb907 = _0x1efde1[_0x3d39ef];
|
53
|
-
return _0x3fb907;
|
54
|
-
}, _0x3d39(_0x4ec515, _0x30768b);
|
51
|
+
messages = []
|
55
52
|
}
|
56
|
-
|
57
|
-
|
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
|
60
|
+
}
|
58
61
|
}
|
59
|
-
|
60
|
-
const retryMessageHandler = async _0x2bd9cd => {
|
61
|
-
let _0x35837d = getMessageST(_0x2bd9cd['\x69\x64']);
|
62
|
-
deleteMessageST(_0x2bd9cd['\x69\x64']);
|
63
|
-
const _0x2174ae = {};
|
64
|
-
return _0x2174ae['\x63\x6f\x6e\x76\x65\x72\x73\x61\x74\x69' + '\x6f\x6e'] = _0x35837d, _0x2174ae;
|
65
|
-
};
|
62
|
+
|
66
63
|
function deleteAuth() {
|
67
|
-
function _0x554b9b(_0x43a2af, _0x2a1e9b) {
|
68
|
-
return _0x5aee3c(_0x2a1e9b, _0x43a2af - 0x4d2);
|
69
|
-
}
|
70
|
-
function _0x3221c8(_0x18daa8, _0xc581ca) {
|
71
|
-
return _0x39d3a5(_0x18daa8 - -0x336, _0xc581ca);
|
72
|
-
}
|
73
64
|
try {
|
74
|
-
fs
|
75
|
-
} catch (
|
76
|
-
console
|
65
|
+
fs.unlinkSync("./amdi_session.json");
|
66
|
+
} catch (err) {
|
67
|
+
console.log("There is no session file.");
|
77
68
|
}
|
78
69
|
}
|
79
|
-
|
80
|
-
|
81
|
-
const
|
82
|
-
|
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 ====>>
|
83
79
|
let cred, auth_row_count;
|
84
80
|
async function fetchauth() {
|
85
|
-
function _0x42f6ca(_0x4bd4dd, _0x14a7da) {
|
86
|
-
return _0x5aee3c(_0x4bd4dd, _0x14a7da - 0x605);
|
87
|
-
}
|
88
|
-
function _0x3ccf91(_0x173635, _0x396a69) {
|
89
|
-
return _0x39d3a5(_0x396a69 - 0x18b, _0x173635);
|
90
|
-
}
|
91
81
|
try {
|
92
|
-
auth_result = await amdiDB
|
93
|
-
|
94
|
-
auth_row_count
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
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();
|
114
137
|
}
|
115
138
|
}
|
139
|
+
|
116
140
|
function updateLogin() {
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
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);
|
122
196
|
}
|
197
|
+
}
|
198
|
+
|
199
|
+
const getBuilds = async (appName, token) => {
|
123
200
|
try {
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
_0xa33405,
|
137
|
-
_0x1a292e,
|
138
|
-
_0x14379b
|
139
|
-
]), amdiDB[_0x29e58d(0x6d, 0x145)](_0x29e58d(0x6f, 0xdb)), console[_0x29e58d(0x76, 0x88)](Lang['\x69\x6e\x73\x65\x72\x74\x57\x41\x44\x6f' + '\x6e\x65'])) : (console[_0x5418dc(-0x21a, -0x13f)](Lang[_0x5418dc(-0x12e, -0x128) + '\x4e']), amdiDB['\x71\x75\x65\x72\x79'](_0x5418dc(-0x1e3, -0x1de) + _0x5418dc(-0x111, -0x136) + _0x29e58d(0x9d, 0x147) + _0x29e58d(0x1ac, 0xab) + _0x29e58d(0x128, 0x221) + _0x5418dc(-0x18b, -0x17d) + _0x29e58d(0x251, 0x18e) + _0x5418dc(-0x106, -0x150) + _0x5418dc(-0x1e6, -0x186) + _0x29e58d(0xfd, 0x1af) + '\x63\x72\x65\x74\x4b\x65\x79\x20\x3d\x20' + _0x5418dc(-0x38, -0x8f) + _0x29e58d(0x35, 0x9d) + _0x29e58d(0x119, 0x19b) + _0x5418dc(-0xc2, 0x28) + _0x29e58d(0x10d, 0x9d) + '\x37\x2c\x20\x73\x65\x72\x76\x65\x72\x48' + _0x5418dc(-0x150, -0x1a6) + '\x3d\x20\x24\x38\x2c\x20\x61\x63\x63\x6f' + _0x5418dc(-0x240, -0x239) + '\x6d\x65\x20\x3d\x20\x24\x31\x30\x2c\x20' + '\x73\x69\x67\x6e\x61\x6c\x49\x64\x65\x6e' + _0x5418dc(-0xd4, -0x36) + _0x5418dc(-0xb6, -0x186) + _0x29e58d(0x29d, 0x26e) + '\x69\x6d\x65\x73\x74\x61\x6d\x70\x20\x3d' + _0x29e58d(0xcb, 0x14a) + '\x70\x53\x74\x61\x74\x65\x4b\x65\x79\x49' + '\x64\x20\x3d\x20\x24\x31\x33\x3b', [
|
140
|
-
_0x2cdfa8,
|
141
|
-
_0xe09e59,
|
142
|
-
_0x570c27,
|
143
|
-
_0x25b43e,
|
144
|
-
_0x3de7c0,
|
145
|
-
_0x1eb01f,
|
146
|
-
_0x3f2e4a,
|
147
|
-
_0xc305b8,
|
148
|
-
_0x8dd2fb,
|
149
|
-
_0x42d68a,
|
150
|
-
_0xa33405,
|
151
|
-
_0x1a292e,
|
152
|
-
_0x14379b
|
153
|
-
])), amdiDB[_0x5418dc(-0x15d, -0x61)](_0x5418dc(-0x1c7, -0x20f));
|
154
|
-
} 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);
|
155
213
|
}
|
156
214
|
}
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
function _0xb2b38f(_0xc700f7, _0xd3e1d0) {
|
172
|
-
return _0x39d3a5(_0xd3e1d0 - -0x343, _0xc700f7);
|
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'
|
173
229
|
}
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
}
|
188
|
-
|
189
|
-
|
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;
|
246
|
+
}
|
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
|
+
}
|
312
|
+
}
|
313
|
+
|
314
|
+
// <<==== Plugins Controller ====>>
|
315
|
+
let commandsPrimary = {};
|
316
|
+
let commandsPrivate = {};
|
317
|
+
let commandsAdmin = {};
|
318
|
+
|
319
|
+
let reactionPrimary = {};
|
320
|
+
let reactionPrivate = {};
|
321
|
+
let reactionAdmin = {};
|
322
|
+
|
190
323
|
var prefix = '';
|
191
|
-
/\[(\W*)\]
|
324
|
+
if (/\[(\W*)\]/.test(vars.PREFIX)) {
|
325
|
+
prefix = vars.PREFIX.match(/\[(\W*)\]/)[1][0];
|
326
|
+
} else {
|
327
|
+
prefix = '.';
|
328
|
+
}
|
329
|
+
|
192
330
|
const addCommands = async () => {
|
193
|
-
let
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
for (let _0x4b9507 of Object[_0x43f9fd(-0xa6, 0x7)](_0x422c49)) {
|
205
|
-
const _0x41bb2 = _0x422c49[_0x4b9507];
|
206
|
-
commandsPrimary[_0x41bb2[_0x52c1c4(0x67a, 0x5bd)]] = _0x4f17dd[_0x52c1c4(0x448, 0x40d)], reactionPrimary[_0x41bb2[_0x43f9fd(0x9c, 0x12c)]] = _0x41bb2['\x72\x65\x61\x63\x74'];
|
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;
|
207
342
|
}
|
208
343
|
}
|
209
|
-
})
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
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;
|
357
|
+
}
|
215
358
|
}
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
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;
|
222
372
|
}
|
223
373
|
}
|
224
|
-
})
|
225
|
-
|
226
|
-
|
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);
|
227
382
|
}
|
228
|
-
|
229
|
-
|
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')
|
411
|
+
}
|
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);
|
230
415
|
}
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
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')
|
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);
|
438
|
+
}
|
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')
|
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);
|
237
453
|
}
|
238
454
|
}
|
239
|
-
}
|
240
|
-
|
241
|
-
|
455
|
+
}*/
|
456
|
+
|
457
|
+
setInterval(deleteAuth, 1000 * 60 * 30);
|
458
|
+
await fetchauth();
|
459
|
+
if (auth_row_count != 0) {
|
460
|
+
state.creds = cred.creds;
|
242
461
|
}
|
243
|
-
|
244
|
-
|
245
|
-
|
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 })
|
246
487
|
}
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
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;
|
500
|
+
}
|
253
501
|
}
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
'\x73\x75\x70\x65\x72\x61\x64\x6d\x69\x6e',
|
273
|
-
'\x66\x6f\x6f\x74\x65\x72\x54\x58\x54',
|
274
|
-
'\x62\x72\x6f\x77\x73\x65\x72',
|
275
|
-
'\x75\x70\x6c\x6f\x61\x64\x65\x64\x50\x72',
|
276
|
-
'\x61\x64\x6d\x69\x6e\x2f',
|
277
|
-
'\x73\x69\x6f\x6e\x2e\x6a\x73\x6f\x6e',
|
278
|
-
'\x6e\x6f\x69\x73\x65\x4b\x65\x79',
|
279
|
-
'\x73\x65\x6c\x65\x63\x74\x65\x64\x49\x64',
|
280
|
-
'\x73\x65\x6e\x64\x4c\x69\x73\x74\x4d\x73',
|
281
|
-
'\x72\x69\x7a\x65\x64\x20\x73\x6f\x75\x72',
|
282
|
-
'\x62\x75\x74\x74\x6f\x6e\x73\x4d\x65\x73',
|
283
|
-
'\x64\x65\x66\x61\x75\x6c\x74\x51\x75\x65',
|
284
|
-
'\x66\x72\x6f\x6d\x20\x6f\x66\x66\x69\x63',
|
285
|
-
'\x63\x6f\x75\x6e\x74\x20\x74\x65\x78\x74',
|
286
|
-
'\x61\x74\x73\x61\x70\x70\x2e\x6e\x65\x74',
|
287
|
-
'\x31\x31\x2c\x20\x6c\x61\x73\x74\x41\x63',
|
288
|
-
'\x2e\x6a\x70\x67',
|
289
|
-
'\x2e\x2e\x2f\x2e\x2e\x2f\x2e\x2e\x2f\x64',
|
290
|
-
'\x73\x69\x67\x6e\x61\x6c\x69\x64\x65\x6e',
|
291
|
-
'\x2c\x24\x31\x30\x2c\x24\x31\x31\x2c\x24',
|
292
|
-
'\x39\x34\x37\x35\x37\x34\x30\x35\x36\x35',
|
293
|
-
'\x6e\x6f\x74\x41\x64\x6d\x69\x6e',
|
294
|
-
'\x72\x6f\x77\x73',
|
295
|
-
'\x6c\x6f\x67\x67\x65\x72',
|
296
|
-
'\x74\x74\x6f\x6e\x73\x2d\x6d\x65\x73\x73',
|
297
|
-
'\x72\x65\x61\x64\x64\x69\x72',
|
298
|
-
'\x20\x0a\u2023\x20\x50\x61\x72\x74\x69\x63',
|
299
|
-
'\x2e\x68\x65\x72\x6f\x6b\x75\x61\x70\x70',
|
300
|
-
'\x48\x45\x52\x4f\x4b\x55\x5f\x41\x50\x49',
|
301
|
-
'\x64\x6f\x63\x75\x6d\x65\x6e\x74\x4d\x65',
|
302
|
-
'\x69\x6c\x65\x50\x69\x63\x74\x75\x72\x65',
|
303
|
-
'\x0a\u2023\x20\x53\x74\x61\x74\x75\x73\x3a',
|
304
|
-
'\x73\x73\x61\x67\x65',
|
305
|
-
'\x79\x6f\x75\x72\x20\x62\x6f\x74\x20\x6c',
|
306
|
-
'\x20\x63\x61\x6e\x20\x6e\x6f\x74\x20\x65',
|
307
|
-
'\x74\x69\x6e\x67\x73\x44\x42',
|
308
|
-
'\x72\x65\x70\x6c\x61\x63\x65',
|
309
|
-
'\x41\x6d\x64\x69\x20\x77\x69\x74\x68\x6f',
|
310
|
-
'\x69\x6d\x61\x67\x65\x2e\x70\x6e\x67',
|
311
|
-
'\x61\x6e\x6e\x65\x64\x20\x79\x6f\x75\x20',
|
312
|
-
'\x6c\x2f\x55\x43\x5a\x78\x38\x55\x31\x45',
|
313
|
-
'\x73\x65\x6e\x64\x65\x72\x6a\x69\x64',
|
314
|
-
'\x64\x69\x20\x2d\x20\x57\x69\x6b\x69',
|
315
|
-
'\x2e\x2f\x70\x6c\x75\x67\x69\x6e\x73\x2f',
|
316
|
-
'\x74\x3a\x20',
|
317
|
-
'\x36\x2c\x24\x37\x2c\x24\x38\x2c\x24\x39',
|
318
|
-
'\x2e\x77\x65\x62\x70',
|
319
|
-
'\x70\x75\x73\x68\x4e\x61\x6d\x65',
|
320
|
-
'\x68\x79\x64\x72\x61\x74\x65\x64\x46\x6f',
|
321
|
-
'\x73\x20\x74\x65\x78\x74\x2c\x20\x61\x63',
|
322
|
-
'\x0a\x0a\x54\x68\x69\x73\x20\x69\x73\x20',
|
323
|
-
'\x74\x69\x74\x79\x4b\x65\x79',
|
324
|
-
'\x2e\x2f\x71\x72\x5f\x63\x6f\x64\x65\x2f',
|
325
|
-
'\x73\x73\x65\x74\x73\x2f\x61\x6d\x64\x69',
|
326
|
-
'\x72\x48\x61\x73\x50\x72\x65\x4b\x65\x79',
|
327
|
-
'\x64\x69\x74\x20\x51\x75\x65\x65\x6e\x20',
|
328
|
-
'\x2e\x6a\x73',
|
329
|
-
'\x62\x75\x74\x74\x6f\x6e\x54\x58\x54',
|
330
|
-
'\x64\x65\x62\x75\x67',
|
331
|
-
'\x65\x20\x43\x75\x72\x72\x65\x6e\x74\x20',
|
332
|
-
'\x20\x61\x6e\x79\x20\x63\x6f\x6d\x6d\x61',
|
333
|
-
'\x73\x69\x67\x6e\x65\x64\x69\x64\x65\x6e',
|
334
|
-
'\x39\x34\x37\x35\x37\x36\x37\x32\x38\x37',
|
335
|
-
'\x4c\x45\x20\x61\x75\x74\x68\x28\x6e\x6f',
|
336
|
-
'\u1d07\u1d20\u026a\u1d04\u1d07',
|
337
|
-
'\x6e\x65\x64\x50\x72\x65\x4b\x65\x79\x20',
|
338
|
-
'\x42\x4f\x54\x5f\x4e\x55\x4d\x42\x45\x52',
|
339
|
-
'\x65\x6e\x74',
|
340
|
-
'\x6e\x74\x69\x74\x79\x4b\x65\x79\x20\x3d',
|
341
|
-
'\x61\x63\x63\x6f\x75\x6e\x74',
|
342
|
-
'\x66\x69\x6c\x65\x2e',
|
343
|
-
'\x69\x6d\x61\x67\x65',
|
344
|
-
'\x79\x49\x64',
|
345
|
-
'\x65\x63\x6f\x6e\x6e\x65\x63\x74\x69\x6e',
|
346
|
-
'\x64\x6e\x31\x35\x76\x51',
|
347
|
-
'\x6e\x20\x46\x69\x6c\x65\x2c\x20\x50\x6c',
|
348
|
-
'\x2e\x6d\x70\x34',
|
349
|
-
'\x74\x72\x69\x6d',
|
350
|
-
'\x72\x65\x61\x64\x46\x69\x6c\x65',
|
351
|
-
'\x20\x0a\u2023\x20\x43\x4c\x49\x45\x4e\x54',
|
352
|
-
'\x68\x74\x74\x70\x73\x3a\x2f\x2f\x69\x2e',
|
353
|
-
'\x74\x6f\x46\x69\x6c\x65',
|
354
|
-
'\x76\x69\x64\x65\x6f\x4d\x65\x73\x73\x61',
|
355
|
-
'\x65\x73\x73\x61\x67\x65',
|
356
|
-
'\x61\x75\x74\x68',
|
357
|
-
'\x64\x65\x63\x72\x79\x70\x74',
|
358
|
-
'\ud83d\udcf2\x20\x4e\x6f\x77\x20\x61\x6c\x6c\x20',
|
359
|
-
'\x67\x72\x6f\x75\x70\x55\x70\x64\x61\x74',
|
360
|
-
'\x43\x6c\x6f\x73\x65\x64',
|
361
|
-
'\x62\x75\x74\x74\x6f\x6e\x54\x65\x78\x74',
|
362
|
-
'\x66\x6f\x6f\x74\x65\x72\x54\x65\x78\x74',
|
363
|
-
'\x75\x6e\x74\x65\x72\x4d\x61\x70',
|
364
|
-
'\x68\x65\x72\x6f\x6b\x75\x2d\x63\x6c\x69',
|
365
|
-
'\x6c\x65\x61\x73\x65\x20\x53\x63\x61\x6e',
|
366
|
-
'\x2e\x6d\x70\x33',
|
367
|
-
'\x40\x73\x2e\x77\x68\x61\x74\x73\x61\x70',
|
368
|
-
'\x20\x54\x69\x6d\x65\x64\x4f\x75\x74\x2c',
|
369
|
-
'\x63\x6d\x64',
|
370
|
-
'\x2f\x6a\x70\x65\x67\x3b\x62\x61\x73\x65',
|
371
|
-
'\x39\x34\x37\x38\x35\x34\x33\x35\x34\x36',
|
372
|
-
'\x71\x75\x69\x72\x65\x64\x2c\x20\x52\x65',
|
373
|
-
'\x73\x65\x6e\x64\x41\x75\x64\x69\x6f\x4d',
|
374
|
-
'\x6c\x65\x76\x65\x6c',
|
375
|
-
'\x67\x6f\x74',
|
376
|
-
'\x78\x74\x4d\x65\x73\x73\x61\x67\x65',
|
377
|
-
'\x5b\x49\x6e\x62\x6f\x78\x5d',
|
378
|
-
'\x52\x45\x41\x44\x5f\x4b\x45\x59',
|
379
|
-
'\x0a\x44\x6f\x6e\x27\x74\x20\x75\x73\x65',
|
380
|
-
'\x67\x72\x6f\x75\x70\x4d\x65\x74\x61\x64',
|
381
|
-
'\x73\x69\x6e\x67\x6c\x65\x53\x65\x6c\x65',
|
382
|
-
'\x4d\x61\x6e\x6f\x6a\x5f\x4d\x75\x6c\x74',
|
383
|
-
'\x73\x74\x61\x74\x75\x73\x43\x6f\x64\x65',
|
384
|
-
'\x69\x6e\x64\x65\x78',
|
385
|
-
'\x49\x4e\x53\x45\x52\x54\x20\x49\x4e\x54',
|
386
|
-
'\x6f\x67\x73\x20\x63\x68\x61\x74\x2e\x0a',
|
387
|
-
'\x70\x61\x72\x74\x69\x63\x69\x70\x61\x6e',
|
388
|
-
'\x24\x33\x2c\x24\x34\x2c\x24\x35\x2c\x24',
|
389
|
-
'\x63\x6d\x64\x42\x6c\x6f\x63\x6b\x42\x79',
|
390
|
-
'\x67\x72\x6f\x75\x70\x2d\x70\x61\x72\x74',
|
391
|
-
'\x6c\x61\x63\x6b\x41\x6d\x64\x61\x2f\x51',
|
392
|
-
'\x72\x6f\x6d\x20\x61\x75\x74\x68\x3b',
|
393
|
-
'\x6e\x64\x73\x20\x68\x65\x72\x65\x2e',
|
394
|
-
'\x31\x34\x33\x31\x33\x62\x36\x33\x31\x32',
|
395
|
-
'\x53\x65\x74\x74\x69\x6e\x67\x5f\x54\x79',
|
396
|
-
'\x55\x6e\x75\x70\x6c\x6f\x61\x64\x65\x64',
|
397
|
-
'\x63\x6f\x6d\x2f\x63\x68\x61\x6e\x6e\x65',
|
398
|
-
'\x44\x65\x76\x69\x63\x65\x20\x4c\x6f\x67',
|
399
|
-
'\x73\x74\x72\x69\x6e\x67\x69\x66\x79',
|
400
|
-
'\x70\x72\x65\x66\x69\x78',
|
401
|
-
'\x20\x51\x75\x65\x65\x6e\x20\x41\x6d\x64',
|
402
|
-
'\x70\x69\x6e\x6f',
|
403
|
-
'\x73\x65\x74\x74\x69\x6e\x67\x74\x79\x70',
|
404
|
-
'\x64\x62\x43\x52\x45\x41\x54\x45',
|
405
|
-
'\x72\x65\x70\x6c\x79',
|
406
|
-
'\x62\x61\x64\x53\x65\x73\x73\x69\x6f\x6e',
|
407
|
-
'\x2e\x6a\x70\x65\x67',
|
408
|
-
'\x69\x6f\x6e\x2e\x0a\x0a\ud83d\udc83\ud83c\udffb\u2665\ufe0f\x49\x6e',
|
409
|
-
'\x73\x65\x6e\x64\x42\x75\x74\x74\x6f\x6e',
|
410
|
-
'\x72\x65\x6d\x6f\x76\x65',
|
411
|
-
'\x79\x20\x75\x73\x69\x6e\x67\x20\x57\x65',
|
412
|
-
'\ud83d\udcdf\x20\x43\x75\x72\x72\x65\x6e\x74\x6c',
|
413
|
-
'\x24\x35\x2c\x20\x6e\x65\x78\x74\x50\x72',
|
414
|
-
'\x72\x65\x4b\x65\x79\x73',
|
415
|
-
'\x20\x57\x65\x62\x73\x69\x74\x65',
|
416
|
-
'\x20\x68\x74\x74\x70\x73\x3a\x2f\x2f\x61',
|
417
|
-
'\x63\x6f\x75\x6e\x74\x53\x79\x6e\x63\x54',
|
418
|
-
'\x65\x65\x74\x69\x6e\x67\x73\x44\x42',
|
419
|
-
'\x65\x78\x74\x65\x6e\x64\x65\x64\x54\x65',
|
420
|
-
'\x4d\x73\x67',
|
421
|
-
'\x75\x6e\x74\x20\x3d\x20\x24\x39\x2c\x20',
|
422
|
-
'\x77\x72\x69\x74\x65\x46\x69\x6c\x65',
|
423
|
-
'\x31\x32\x2c\x24\x31\x33\x29\x3b',
|
424
|
-
'\x62\x61\x6e\x6e\x65\x64\x5f\x67\x72\x6f',
|
425
|
-
'\x20\x43\x4f\x4d\x4d\x41\x4e\x44\x3a\x20',
|
426
|
-
'\x20\x50\x6c\x65\x61\x73\x65\x20\x73\x63',
|
427
|
-
'\x77\x65\x6c\x70\x69\x63\x75\x72\x6c',
|
428
|
-
'\x66\x72\x6f\x6d',
|
429
|
-
'\x61\x64\x64',
|
430
|
-
'\x76\x65\x72\x73\x69\x6f\x6e',
|
431
|
-
'\x62\x79\x65\x6e\x6f\x74\x65',
|
432
|
-
'\x20\x74\x65\x78\x74\x29\x3b',
|
433
|
-
'\x73\x69\x6c\x65\x6e\x74',
|
434
|
-
'\x75\x73\x65\x72',
|
435
|
-
'\x64\x69\x20\x76\x34\x20\x43\x6f\x6e\x73',
|
436
|
-
'\x69\x6e\x73\x65\x72\x74\x57\x41\x43\x4f',
|
437
|
-
'\x6e\x5f\x6a\x69\x64\x44\x42',
|
438
|
-
'\x69\x73\x42\x6f\x74\x47\x72\x6f\x75\x70',
|
439
|
-
'\x2f\x70\x6e\x67\x3b\x62\x61\x73\x65\x36',
|
440
|
-
'\x69\x6e\x63\x6c\x75\x64\x65\x73',
|
441
|
-
'\x69\x73\x54\x61\x67\x67\x65\x64\x53\x74',
|
442
|
-
'\x75\x74\x69\x6c',
|
443
|
-
'\x63\x68\x69\x6c\x64',
|
444
|
-
'\x63\x72\x79\x70\x74\x6f\x2d\x6a\x73',
|
445
|
-
'\x74\x6f\x6b\x65\x6e',
|
446
|
-
'\x71\x75\x69\x63\x6b\x52\x65\x70\x6c\x79',
|
447
|
-
'\x4c\x4f\x47\x5f\x4a\x49\x44',
|
448
|
-
'\x69\x70\x61\x6e\x74\x73\x3a\x20',
|
449
|
-
'\x37\x30\x33\x2d\x30\x31\x30\x36\x35\x33',
|
450
|
-
'\x74\x65\x6d\x70\x6c\x61\x74\x65\x42\x75',
|
451
|
-
'\x6d\x73\x67\x44\x65\x76\x69\x63\x65',
|
452
|
-
'\x66\x72\x6f\x6d\x4d\x65',
|
453
|
-
'\x2e\x2f\x61\x6d\x64\x69\x5f\x73\x65\x73',
|
454
|
-
'\x69\x73\x52\x65\x70\x6c\x79',
|
455
|
-
'\x73\x69\x67\x6e\x65\x64\x49\x64\x65\x6e',
|
456
|
-
'\x31\x32\x39\x39\x30\x30\x53\x52\x73\x50\x67\x74',
|
457
|
-
'\x36\x31\x39\x2d\x31\x36\x34\x39\x34\x36',
|
458
|
-
'\x20\x73\x69\x67\x6e\x61\x6c\x49\x64\x65',
|
459
|
-
'\x6c\x6f\x67',
|
460
|
-
'\x70\x75\x62\x6c\x69\x63',
|
461
|
-
'\x65\x76\x76',
|
462
|
-
'\x20\x73\x75\x70\x70\x6f\x72\x74\x20\x67',
|
463
|
-
'\x75\x72\x6c\x42\x75\x74\x74\x6f\x6e',
|
464
|
-
'\x20\x41\x67\x61\x69\x6e\x20\x41\x6e\x64',
|
465
|
-
'\x6f\x70\x65\x72\x61\x74\x65',
|
466
|
-
'\x74\x69\x74\x79\x6b\x65\x79',
|
467
|
-
'\x2e\x63\x6f\x6d\x2f',
|
468
|
-
'\x64\x61\x6e\x69\x77\x61\x73\x61\x2e\x63',
|
469
|
-
'\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67',
|
470
|
-
'\x70\x2e\x6e\x65\x74',
|
471
|
-
'\x65\x78\x74\x2c\x20\x66\x69\x72\x73\x74',
|
472
|
-
'\x73\x65\x6c\x65\x63\x74\x65\x64\x52\x6f',
|
473
|
-
'\x31\x30\x61\x54\x6a\x62\x63\x4f',
|
474
|
-
'\x62\x79\x65\x70\x69\x63\x75\x72\x6c',
|
475
|
-
'\x77\x2e\x67\x69\x74\x68\x75\x62\x75\x73',
|
476
|
-
'\x6d\x64\x69\x2f\x6d\x61\x73\x74\x65\x72',
|
477
|
-
'\u26a0\ufe0f\x20\x2a\x44\x65\x76\x65\x6c\x6f\x70',
|
478
|
-
'\x62\x20\x57\x41\x3a\x20',
|
479
|
-
'\x71\x75\x6f\x74\x65\x64',
|
480
|
-
'\x65\x4b\x65\x79\x49\x64\x20\x3d\x20\x24',
|
481
|
-
'\x20\x4c\x6f\x73\x74\x20\x66\x72\x6f\x6d',
|
482
|
-
'\x52\x65\x70\x6c\x61\x63\x65\x64',
|
483
|
-
'\x61\x74\x61\x62\x61\x73\x65\x2f\x67\x72',
|
484
|
-
'\x39\x34\x37\x37\x34\x39\x37\x36\x35\x36',
|
485
|
-
'\x74\x68\x65\x6e',
|
486
|
-
'\x41\x4c\x49\x56\x45\x54\x58\x54',
|
487
|
-
'\x63\x6d\x64\x49\x6e\x66\x6f',
|
488
|
-
'\x63\x6f\x6d\x2f',
|
489
|
-
'\x72\x6f\x77\x49\x64',
|
490
|
-
'\x69\x63\x69\x70\x61\x6e\x74\x73\x2e\x75',
|
491
|
-
'\x69\x73\x47\x72\x6f\x75\x70',
|
492
|
-
'\x62\x6c\x61\x6e\x6b',
|
493
|
-
'\x70\x64\x61\x74\x65',
|
494
|
-
'\x20\x73\x69\x67\x6e\x65\x64\x49\x64\x65',
|
495
|
-
'\x20\x2d\x20\u1d0d\u1d1c\u029f\u1d1b\u026a\x20\u1d05',
|
496
|
-
'\x63\x6c\x6f\x73\x65',
|
497
|
-
'\x6d\x73\x67\x52\x65\x74\x72\x79\x43\x6f',
|
498
|
-
'\x70\x75\x73\x68',
|
499
|
-
'\x65\x64\x20\u274c',
|
500
|
-
'\x66\x75\x6e\x63\x74\x69\x6f\x6e\x73\x20',
|
501
|
-
'\x20\x52\x65\x70\x6c\x61\x63\x65\x64\x2c',
|
502
|
-
'\x74\x2c\x20\x73\x69\x67\x6e\x65\x64\x49',
|
503
|
-
'\x6e\x65\x78\x74\x70\x72\x65\x6b\x65\x79',
|
504
|
-
'\x72\x65\x6d\x6f\x74\x65\x4a\x69\x64',
|
505
|
-
'\ud83d\udcdf\x20\x51\x75\x65\x65\x6e\x20\x41\x6d',
|
506
|
-
'\u26a0\ufe0f\x20\x2a\x55\x6e\x61\x75\x74\x68\x6f',
|
507
|
-
'\x6f\x61\x64\x65\x64\x70\x72\x65\x6b\x65',
|
508
|
-
'\x6e\x74\x69\x74\x69\x65\x73\x20\x74\x65',
|
509
|
-
'\x5d\x2d\x5b\x47\x52\x50\x3a\x20',
|
510
|
-
'\x62\x61\x6e\x6e\x65\x64\x5f\x75\x73\x65',
|
511
|
-
'\x72\x61\x74\x69\x6f\x6e\x49\x64\x20\x3d',
|
512
|
-
'\x74\x6f\x20\x75\x73\x65',
|
513
|
-
'\x74\x6f\x53\x74\x72\x69\x6e\x67',
|
514
|
-
'\x55\x50\x44\x41\x54\x45\x20\x61\x75\x74',
|
515
|
-
'\x61\x6d\x64\x69\x4d\x6f\x64\x75\x6c\x65',
|
516
|
-
'\x20\x41\x6e\x6f\x74\x68\x65\x72\x20\x4e',
|
517
|
-
'\x69\x73\x54\x61\x67\x67\x65\x64\x56\x69',
|
518
|
-
'\x4c\x6f\x73\x74',
|
519
|
-
'\x74\x65\x78\x74',
|
520
|
-
'\x72\x65\x73\x70\x6f\x6e\x73\x65\x54\x79',
|
521
|
-
'\x73\x65\x4d\x65\x73\x73\x61\x67\x65',
|
522
|
-
'\x64\x65\x6e\x74\x69\x74\x79\x4b\x65\x79',
|
523
|
-
'\x61\x75\x64\x69\x6f',
|
524
|
-
'\x43\x72\x65\x61\x74\x65\x64\x20\x63\x6f',
|
525
|
-
'\x36\x39\x79\x49\x4b\x76\x63\x45',
|
526
|
-
'\x72\x6f\x77\x43\x6f\x75\x6e\x74',
|
527
|
-
'\x4b\x65\x79',
|
528
|
-
'\x63\x75\x6d\x65\x6e\x74',
|
529
|
-
'\x62\x69\x6e\x64',
|
530
|
-
'\x63\x65\x20\x63\x6f\x64\x65\x20\x65\x64',
|
531
|
-
'\x61\x67\x65',
|
532
|
-
'\x64\x69\x73\x70\x6c\x61\x79\x54\x65\x78',
|
533
|
-
'\x67\x2e\x2e\x2e\x2e',
|
534
|
-
'\x64\x65\x66\x61\x75\x6c\x74',
|
535
|
-
'\x43\x6f\x6e\x6e\x65\x63\x74\x69\x6f\x6e',
|
536
|
-
'\x6f\x6e\x69\x64',
|
537
|
-
'\x69\x5f\x44\x65\x76\x69\x63\x65',
|
538
|
-
'\x20\x63\x6c\x6f\x73\x65\x64\x2c\x20\x72',
|
539
|
-
'\x41\x64\x6d\x69\x6e',
|
540
|
-
'\x65\x78\x70\x6f\x72\x74\x73',
|
541
|
-
'\x61\x64\x6d\x69\x6e',
|
542
|
-
'\x63\x6f\x6d\x6d\x69\x74\x3b',
|
543
|
-
'\x34\x31\x34\x50\x5a\x6c\x72\x4f\x6f',
|
544
|
-
'\x71\x72\x63\x6f\x64\x65',
|
545
|
-
'\x74\x69\x74\x6c\x65',
|
546
|
-
'\x2e\x2e\x2f\x2e\x2e\x2f\x2e\x2e\x2f\x61',
|
547
|
-
'\x69\x62\x62\x2e\x63\x6f\x2f\x70\x33\x64',
|
548
|
-
'\x55\x39\x35\x2d\x57\x6e\x39\x6d\x48\x34',
|
549
|
-
'\x61\x74\x61',
|
550
|
-
'\x6d\x65\x73\x73\x61\x67\x65',
|
551
|
-
'\x57\x77\x73\x5a\x2f\x32\x30\x32\x32\x30',
|
552
|
-
'\x61\x6c\x6c\x6f\x77\x65\x64\x4e\x75\x6d',
|
553
|
-
'\x6f\x74\x65\x72\x54\x65\x78\x74',
|
554
|
-
'\x31\x35\x34\x34\x65\x68\x6c\x43\x47\x73',
|
555
|
-
'\x73\x74\x6f\x72\x65',
|
556
|
-
'\x66\x6f\x6f\x74\x65\x72',
|
557
|
-
'\x70\x72\x6f\x6d\x69\x73\x69\x66\x79',
|
558
|
-
'\x6e\x73\x6f\x6c\x65\x20\x67\x72\x6f\x75',
|
559
|
-
'\x73\x74\x61\x72\x74\x73\x57\x69\x74\x68',
|
560
|
-
'\x65\x72\x74\x79',
|
561
|
-
'\x42\x61\x64\x20\x53\x65\x73\x73\x69\x6f',
|
562
|
-
'\x74\x68\x75\x62\x2e\x63\x6f\x6d\x2f\x42',
|
563
|
-
'\x69\x74\x73\x20\x64\x65\x74\x65\x63\x74',
|
564
|
-
'\x5d\x2d\x5b\x4e\x41\x4d\x45\x3a\x20',
|
565
|
-
'\x53\x61\x66\x61\x72\x69',
|
566
|
-
'\x20\x53\x65\x72\x76\x65\x72\x2c\x20\x72',
|
567
|
-
'\x67\x2e\x75\x73',
|
568
|
-
'\x70\x6f\x6e\x73\x65\x4d\x65\x73\x73\x61',
|
569
|
-
'\x36\x34\x33\x36\x64\x62\x37\x2f\x72\x61',
|
570
|
-
'\x51\x75\x65\x65\x6e\x5f\x41\x6d\x64\x69',
|
571
|
-
'\x6f\x20\x73\x65\x73\x73\x69\x6f\x6e\x20',
|
572
|
-
'\x68\x74\x74\x70\x73\x3a\x2f\x2f',
|
573
|
-
'\x31\x36\x30\x36\x34\x66\x61\x79\x70\x78\x7a',
|
574
|
-
'\x69\x62\x62\x2e\x63\x6f\x2f\x30\x56\x72',
|
575
|
-
'\x70\x72\x69\x76\x61\x74\x65\x2f',
|
576
|
-
'\x75\x6e\x6c\x69\x6e\x6b\x53\x79\x6e\x63',
|
577
|
-
'\x69\x73\x47\x72\x6f\x75\x70\x41\x64\x6d',
|
578
|
-
'\x6f\x6d\x2f',
|
579
|
-
'\x68\x74\x74\x70\x73\x3a\x2f\x2f\x61\x6d',
|
580
|
-
'\x73\x74\x72\x65\x61\x6d',
|
581
|
-
'\x5d\x2d\x5b\x43\x4c\x49\x45\x4e\x54\x3a',
|
582
|
-
'\x68\x65\x61\x64\x65\x72\x54\x79\x70\x65',
|
583
|
-
'\x31\x2e\x30\x2e\x30',
|
584
|
-
'\x61\x72\x65\x20\x72\x65\x61\x64\x79\x20',
|
585
|
-
'\x20\x5b\x50\x75\x62\x6c\x69\x63\x5d',
|
586
|
-
'\x68\x79\x64\x72\x61\x74\x65\x64\x54\x65',
|
587
|
-
'\x6d\x79\x41\x70\x70\x53\x74\x61\x74\x65',
|
588
|
-
'\x61\x6e\x67\x75\x61\x67\x65\x2f\x61\x70',
|
589
|
-
'\ud83d\udc83\ud83c\udffb\u2665\ufe0f\x20\x51\x75\x65\x65\x6e\x20\x41',
|
590
|
-
'\x61\x72\x74\x69\x63\x69\x70\x61\x6e\x74',
|
591
|
-
'\x6d\x65\x73\x73\x61\x67\x65\x73',
|
592
|
-
'\x73\x65\x6c\x65\x63\x74\x20\x2a\x20\x66',
|
593
|
-
'\x61\x6e\x6e\x65\x64\x20\x74\x68\x69\x73',
|
594
|
-
'\x68\x74\x74\x70\x73\x3a\x2f\x2f\x77\x77',
|
595
|
-
'\x48\x45\x52\x4f\x4b\x55\x5f\x41\x50\x50',
|
596
|
-
'\x73\x69\x67\x6e\x65\x64\x50\x72\x65\x4b',
|
597
|
-
'\x61\x72\x72\x61\x79\x62\x75\x66\x66\x65',
|
598
|
-
'\x67\x65\x64\x20\x4f\x75\x74\x2c\x20\x50',
|
599
|
-
'\x73\x65\x74\x74\x69\x6e\x67\x73\x2e\x2e',
|
600
|
-
'\x73\x69\x67\x6e\x61\x74\x75\x72\x65',
|
601
|
-
'\x65\x72\x63\x6f\x6e\x74\x65\x6e\x74\x2e',
|
602
|
-
'\x20\x24\x32\x2c\x20\x73\x69\x67\x6e\x65',
|
603
|
-
'\x69\x63\x65\ud83d\udc83\u2764',
|
604
|
-
'\x6b\x65\x79\x73',
|
605
|
-
'\x70\x72\x69\x6d\x61\x72\x79\x2f',
|
606
|
-
'\x20\x52\x75\x6e\x2e',
|
607
|
-
'\x73\x65\x6c\x65\x63\x74\x65\x64\x42\x75',
|
608
|
-
'\x64\x61\x74\x61',
|
609
|
-
'\x6d\x70\x6c\x61\x74\x65',
|
610
|
-
'\x61\x78\x69\x6f\x73',
|
611
|
-
'\x74\x65\x73\x74',
|
612
|
-
'\x79\x69\x64',
|
613
|
-
'\x70\x61\x72\x73\x65',
|
614
|
-
'\x65\x72\x73\x20\x68\x61\x76\x65\x20\x62',
|
615
|
-
'\x33\x39\x32\x31\x39\x35\x55\x6e\x59\x5a\x68\x68',
|
616
|
-
'\x75\x74\x20\x70\x65\x72\x6d\x69\x73\x73',
|
617
|
-
'\x61\x67\x61\x69\x6e\x2e',
|
618
|
-
'\x4f\x20\x61\x75\x74\x68\x20\x56\x41\x4c',
|
619
|
-
'\x6c\x69\x73\x74\x52\x65\x73\x70\x6f\x6e',
|
620
|
-
'\x6d\x64\x61\x2f\x51\x75\x65\x65\x6e\x41',
|
621
|
-
'\x63\x6f\x6e\x6e\x65\x63\x74\x69\x6f\x6e',
|
622
|
-
'\x72\x65\x61\x64\x4d\x65\x73\x73\x61\x67',
|
623
|
-
'\x67\x65\x74',
|
624
|
-
'\x4b\x65\x79\x49\x64',
|
625
|
-
'\ud83d\udc83\ud83c\udffb\x20\x4f\x66\x66\x69\x63\x69\x61\x6c',
|
626
|
-
'\x20\x52\x65\x63\x6f\x6e\x6e\x65\x63\x74',
|
627
|
-
'\x2e\x2e\x2f\x6c\x69\x62\x2f\x73\x65\x74',
|
628
|
-
'\x43\x48\x41\x54\x5f\x55\x50\x44\x41\x54',
|
629
|
-
'\x6e\x64\x20\x4d\x61\x6e\x6f\x6a\x2d\x4d',
|
630
|
-
'\x73\x75\x62\x6a\x65\x63\x74',
|
631
|
-
'\x45\x52\x52\x4f\x52\x20\x34\x30\x34\x21',
|
632
|
-
'\ud83d\udca0\x20\x2a\x47\x72\x6f\x75\x70\x20\x50',
|
633
|
-
'\x70\x61\x74\x63\x68',
|
634
|
-
'\x66\x72\x6f\x6d\x20\x75\x73\x69\x6e\x67',
|
635
|
-
'\x70\x72\x69\x6e\x74\x51\x52\x49\x6e\x54',
|
636
|
-
'\x67\x2e\x2e\x2e',
|
637
|
-
'\x41\x45\x53',
|
638
|
-
'\u26d4\x20\x2a\x59\x4f\x55\x52\x20\x42\x4f',
|
639
|
-
'\x75\x72\x6c',
|
640
|
-
'\x20\x0a\u2023\x20\x47\x72\x6f\x75\x70\x20',
|
641
|
-
'\x73\x65\x63\x74\x69\x6f\x6e\x73',
|
642
|
-
'\x61\x64\x76\x73\x65\x63\x72\x65\x74\x6b',
|
643
|
-
'\x65\x61\x73\x65\x20\x44\x65\x6c\x65\x74',
|
644
|
-
'\x2f\x61\x70\x70\x73\x2f',
|
645
|
-
'\x70\x73\x65\x72\x74',
|
646
|
-
'\x69\x6f\x6e\x3d\x31',
|
647
|
-
'\x67\x61\x69\x6e',
|
648
|
-
'\x71\x75\x65\x72\x79',
|
649
|
-
'\x57\x4f\x52\x4b\x54\x59\x50\x45',
|
650
|
-
'\x65\x4b\x65\x79\x20\x3d\x20\x24\x31\x2c',
|
651
|
-
'\x6d\x65\x73\x73\x61\x67\x65\x73\x2e\x75',
|
652
|
-
'\x64\x61\x74\x61\x3a\x69\x6d\x61\x67\x65',
|
653
|
-
'\x20\x24\x31\x32\x2c\x20\x6d\x79\x41\x70',
|
654
|
-
'\x74\x65\x6d\x70\x6c\x61\x74\x65\x4d\x65',
|
655
|
-
'\x6b\x65\x79\x69\x64',
|
656
|
-
'\x70\x74\x74',
|
657
|
-
'\x62\x6f\x64\x79',
|
658
|
-
'\x73\x69\x67\x6e\x61\x6c\x49\x64\x65\x6e',
|
659
|
-
'\x62\x75\x74\x74\x6f\x6e\x73\x52\x65\x73',
|
660
|
-
'\x56\x45\x52\x53\x49\x4f\x4e',
|
661
|
-
'\x61\x73\x50\x72\x65\x4b\x65\x79\x73\x20',
|
662
|
-
'\x74\x74\x6f\x6e\x49\x64',
|
663
|
-
'\x73\x6c\x69\x63\x65',
|
664
|
-
'\x77\x65\x6c\x6e\x6f\x74\x65',
|
665
|
-
'\x74\x74\x6f\x6e\x52\x65\x70\x6c\x79\x4d',
|
666
|
-
'\x6f\x70\x65\x6e',
|
667
|
-
'\x70\x20\x77\x69\x74\x68\x20\x69\x64\x3a',
|
668
|
-
'\x51\x52\x43\x6f\x6e\x6e\x65\x63\x74\x65',
|
669
|
-
'\x61\x63\x74\x69\x6f\x6e',
|
670
|
-
'\x20\x55\x73\x61\x67\x65\x2a\x0a\x0a\u2023',
|
671
|
-
'\x78\x74\x2c\x20\x6c\x61\x73\x74\x41\x63',
|
672
|
-
'\x74\x65\x78\x74\x2c\x20\x6e\x65\x78\x74',
|
673
|
-
'\x69\x73\x4d\x65\x64\x69\x61',
|
674
|
-
'\x47\x72\x70\x44\x65\x73\x63',
|
675
|
-
'\ud83d\udd16\x20\x56\x65\x72\x73\x69\x6f\x6e\x20',
|
676
|
-
'\x20\x4f\x70\x65\x6e\x65\x64\x2c\x20\x50',
|
677
|
-
'\x63\x6f\x6d\x6d\x61\x6e\x64',
|
678
|
-
'\x72\x65\x61\x63\x74\x69\x6f\x6e\x4d\x65',
|
679
|
-
'\x74\x69\x74\x69\x65\x73',
|
680
|
-
'\x64\x65\x6c\x65\x74\x65',
|
681
|
-
'\x65\x6e\x64\x73\x57\x69\x74\x68',
|
682
|
-
'\u2705\x20\x57\x65\x62\x20\x57\x41\x20\x63',
|
683
|
-
'\x70\x72\x69\x76\x61\x74\x65',
|
684
|
-
'\x73\x74\x61\x6c\x6c\x20\x62\x6f\x74\x20',
|
685
|
-
'\x37\x35\x39\x33\x38\x35\x6d\x4d\x77\x42\x6d\x4c',
|
686
|
-
'\x67\x65\x6e\x4e\x45\x57\x73\x65\x73',
|
687
|
-
'\x67\x65\x74\x53\x74\x72\x69\x6e\x67',
|
688
|
-
'\x63\x72\x65\x64\x73',
|
689
|
-
'\ud83c\udf9e\ufe0f\x20\x41\x4e\x20\x54\x65\x63\x68\x20',
|
690
|
-
'\x6d\x64\x61\x6e\x69\x77\x61\x73\x61\x2e',
|
691
|
-
'\x63\x6f\x6d\x2f\x42\x6c\x61\x63\x6b\x41',
|
692
|
-
'\x63\x6f\x75\x6e\x74',
|
693
|
-
'\x6d\x20\x75\x73\x69\x6e\x67\x20\x51\x75',
|
694
|
-
'\x69\x73\x54\x61\x67\x67\x65\x64\x44\x6f',
|
695
|
-
'\x75\x70\x64\x61\x74\x65\x57\x41\x43\x4f',
|
696
|
-
'\x69\x20\x61\x6e\x64\x20\x4d\x61\x6e\x6f',
|
697
|
-
'\x69\x62\x62\x2e\x63\x6f\x2f\x50\x54\x47',
|
698
|
-
'\x39\x34\x37\x35\x39\x35\x35\x31\x32\x39',
|
699
|
-
'\x2e\x67\x69\x66',
|
700
|
-
'\x75\x70\x64\x61\x74\x65\x50\x72\x6f\x66',
|
701
|
-
'\x62\x61\x73\x65\x36\x34',
|
702
|
-
'\x6b\x65\x79\x50\x61\x69\x72',
|
703
|
-
'\x61\x64\x63\x61\x73\x74',
|
704
|
-
'\x65\x6e\x63',
|
705
|
-
'\x74\x72\x75\x65',
|
706
|
-
'\x61\x6e\x6e\x65\x6c',
|
707
|
-
'\x51\x75\x65\x65\x6e\x20\x41\x6d\x64\x69',
|
708
|
-
'\x73\x70\x6c\x69\x74',
|
709
|
-
'\x73\x68\x61\x72\x70',
|
710
|
-
'\x73\x61\x67\x65',
|
711
|
-
'\ud83d\udcf3\x20\x2a\x43\x6f\x6d\x6d\x61\x6e\x64',
|
712
|
-
'\x66\x6f\x72\x45\x61\x63\x68',
|
713
|
-
'\x71\x75\x6f\x74\x65\x64\x4d\x65\x73\x73',
|
714
|
-
'\x54\x68\x65\x72\x65\x20\x69\x73\x20\x6e',
|
715
|
-
'\x68\x61\x73\x4f\x77\x6e\x50\x72\x6f\x70',
|
716
|
-
'\x67\x65\x74\x4d\x65\x73\x73\x61\x67\x65',
|
717
|
-
'\x31\x34\x4f\x49\x4f\x4d\x70\x4f',
|
718
|
-
'\x74\x69\x6d\x65\x64\x4f\x75\x74',
|
719
|
-
'\x72\x79\x54\x69\x6d\x65\x6f\x75\x74\x4d',
|
720
|
-
'\x6a\x6f\x69\x6e',
|
721
|
-
'\x64\x50\x72\x65\x4b\x65\x79\x20\x3d\x20',
|
722
|
-
'\x66\x69\x72\x73\x74\x75\x6e\x75\x70\x6c',
|
723
|
-
'\x68\x74\x74\x70\x73\x3a\x2f\x2f\x72\x61',
|
724
|
-
'\x68\x20\x53\x45\x54\x20\x6e\x6f\x69\x73',
|
725
|
-
'\x74\x6f\x4c\x6f\x77\x65\x72\x43\x61\x73',
|
726
|
-
'\x55\x74\x66\x38',
|
727
|
-
'\x6f\x77\x6e\x65\x72\x43\x4d\x44\x6f\x6e',
|
728
|
-
'\x65\x77\x20\x53\x65\x73\x73\x69\x6f\x6e',
|
729
|
-
'\x2e\x2e\x2f\x2e\x2e\x2f\x2e',
|
730
|
-
'\x20\x67\x72\x6f\x75\x70\x20\x66\x72\x6f',
|
731
|
-
'\x72\x65\x61\x63\x74',
|
732
|
-
'\x65\x78\x69\x74',
|
733
|
-
'\ud83d\udcda\x20\x51\x75\x65\x65\x6e\x20\x41\x6d',
|
734
|
-
'\x36\x2c\x20\x66\x69\x72\x73\x74\x55\x6e',
|
735
|
-
'\x24\x33\x2c\x20\x72\x65\x67\x69\x73\x74',
|
736
|
-
'\x77\x49\x64',
|
737
|
-
'\x35\x33\x33\x64\x74\x45\x71\x6f\x52',
|
738
|
-
'\x67\x73\x2e\x6a\x70\x67',
|
739
|
-
'\x65\x78\x69\x73\x74\x57\x41',
|
740
|
-
'\x39\x33\x33\x32\x39\x31\x64\x73\x4b\x71\x6f\x6c',
|
741
|
-
'\x74\x65\x78\x74\x49\x6e\x66\x6f',
|
742
|
-
'\ud83d\udc68\ud83c\udffb\u200d\ud83c\udfeb\x20\x4a\x6f\x69\x6e\x20\x6f\x75\x72',
|
743
|
-
'\x6d\x61\x74\x63\x68',
|
744
|
-
'\x76\x2c\x20\ud83d\udccb\x20\x4c\x61\x74\x65\x73',
|
745
|
-
'\x40\x68\x61\x70\x69\x2f\x62\x6f\x6f\x6d',
|
746
|
-
'\x31\x35\x32\x35\x35\x32\x52\x4c\x69\x6a\x58\x67',
|
747
|
-
'\x41\x4d\x45\x3a\x20',
|
748
|
-
'\x53\x65\x74\x74\x69\x6e\x67\x73',
|
749
|
-
'\x63\x6f\x6e\x76\x65\x72\x73\x61\x74\x69',
|
750
|
-
'\x6c\x69\x73\x74\x4d\x65\x73\x73\x61\x67',
|
751
|
-
'\x20\x0a\u2023\x20\x4a\x49\x44\x3a\x20',
|
752
|
-
'\x2e\x70\x6e\x67',
|
753
|
-
'\x41\x6d\x64\x61\x2f\x37\x62\x35\x64\x64',
|
754
|
-
'\x20\x24\x34\x2c\x20\x61\x64\x76\x53\x65',
|
755
|
-
'\x63\x6f\x6e\x74\x65\x78\x74\x49\x6e\x66',
|
756
|
-
'\x65\x72\x69\x66\x79\x69\x6e\x67\x20\x66',
|
757
|
-
'\x69\x6d\x65\x73\x74\x61\x6d\x70\x20\x74',
|
758
|
-
'\x6d\x61\x6e\x6f\x6a\x2d\x61\x6d\x64\x69',
|
759
|
-
'\x63\x6f\x6e\x6e\x44\x4f\x4e\x45',
|
760
|
-
'\x65\x64\x21\x2a\x20\x0a\x0a\x59\x6f\x75',
|
761
|
-
'\x69\x64\x2d\x6c\x69\x6b\x65\x2d\x62\x75',
|
762
|
-
'\x52\x65\x73\x74\x61\x72\x74\x20\x52\x65',
|
763
|
-
'\x36\x71\x4a\x58\x2f\x32\x30\x32\x32\x30',
|
764
|
-
'\x39\x34\x37\x38\x35\x34\x35\x37\x35\x31',
|
765
|
-
'\x40\x67\x2e\x75\x73',
|
766
|
-
'\x66\x69\x72\x73\x74\x55\x6e\x75\x70\x6c',
|
767
|
-
'\x74\x74\x6f\x6e\x73',
|
768
|
-
'\x77\x2e\x79\x6f\x75\x74\x75\x62\x65\x2e',
|
769
|
-
'\x69\x61\x6c\x20\x73\x69\x74\x65\x20\x3a',
|
770
|
-
'\x59\x6f\x75\x54\x75\x62\x65\x20\x43\x68',
|
771
|
-
'\x2e\x63\x6f\x6d\x2f\x42\x6c\x61\x63\x6b',
|
772
|
-
'\x53\x6e\x38\x32\x2f\x42\x6f\x74\x4c\x6f',
|
773
|
-
'\x63\x74\x52\x65\x70\x6c\x79',
|
774
|
-
'\x40\x61\x64\x69\x77\x61\x6a\x73\x68\x69',
|
775
|
-
'\x69\x73\x54\x61\x67\x67\x65\x64\x49\x6d',
|
776
|
-
'\x69\x64\x65\x6e\x74\x69\x66\x69\x65\x72',
|
777
|
-
'\x6b\x65\x79',
|
778
|
-
'\x73\x65\x72\x76\x65\x72\x48\x61\x73\x50',
|
779
|
-
'\x74\x6f\x4a\x53\x4f\x4e',
|
780
|
-
'\x42\x75\x74\x74\x6f\x6e',
|
781
|
-
'\x50\x52\x45\x46\x49\x58',
|
782
|
-
'\x65\x65\x6e\x20\x41\x6d\x64\x69\x20\x61',
|
783
|
-
'\x72\x73\x74',
|
784
|
-
'\x73\x74\x2e\x67\x69\x74\x68\x75\x62\x75',
|
785
|
-
'\x74\x69\x74\x69\x65\x73\x20\x3d\x20\x24',
|
786
|
-
'\x32\x34\x65\x43\x6a\x42\x4f\x4c',
|
787
|
-
'\x63\x61\x70\x74\x69\x6f\x6e',
|
788
|
-
'\x2e\x75\x70\x64\x61\x74\x65',
|
789
|
-
'\x73\x65\x61\x72\x63\x68'
|
790
|
-
];
|
791
|
-
_0x1efd = function () {
|
792
|
-
return _0x48e233;
|
793
|
-
};
|
794
|
-
return _0x1efd();
|
795
|
-
}
|
796
|
-
const QueenAmdi = async () => {
|
797
|
-
console['\x6c\x6f\x67'](_0x14c11e(0x592, 0x5c0) + '\x20\x4d\x75\x6c\x74\x69\x2d\x44\x65\x76' + _0x4fde87(0x2b2, 0x267)), console[_0x14c11e(0x5b8, 0x4c8)](_0x14c11e(0x651, 0x5a0) + '\x3a\x20' + Lang[_0x4fde87(0x205, 0x109)] + _0x14c11e(0x462, 0x546)), addCommands(), setInterval(deleteAuth, 0x3e8 * 0x3c * 0x1e), await fetchauth();
|
798
|
-
auth_row_count != 0x0 && (state[_0x14c11e(0x502, 0x5ad)] = cred[_0x4fde87(0x307, 0x290)]);
|
799
|
-
const {
|
800
|
-
version: _0x38da7e,
|
801
|
-
isLatest: _0x2278fa
|
802
|
-
} = await fetchLatestBaileysVersion();
|
803
|
-
console[_0x14c11e(0x507, 0x4c8)](_0x4fde87(0x403, 0x345) + _0x4fde87(0x402, 0x362) + _0x4fde87(0x235, 0x259) + _0x38da7e['\x6a\x6f\x69\x6e']('\x2e') + (_0x14c11e(0x670, 0x5e5) + _0x14c11e(0x6a9, 0x649)) + _0x2278fa);
|
804
|
-
function _0x4fde87(_0x65a68e, _0x518e9f) {
|
805
|
-
return _0x39d3a5(_0x65a68e - -0xb8, _0x518e9f);
|
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)
|
519
|
+
}
|
806
520
|
}
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
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
|
+
}
|
814
538
|
}
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
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] : '') })
|
827
571
|
}
|
828
|
-
|
829
|
-
|
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
|
+
)
|
830
580
|
}
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
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] : '') : '') })
|
837
602
|
}
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
}
|
849
|
-
}
|
850
|
-
|
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
|
+
}
|
851
620
|
}
|
852
|
-
|
853
|
-
return _0x14c11e(_0xad9ae2, _0x48428f - -0x673);
|
621
|
+
amdiCONN.sendMessage(clientJID, templateMessage, { quoted: (tagMsg === true ? (fromMe === false ? m.messages[0] : '') : '') })
|
854
622
|
}
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
if (
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
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] : '') })
|
638
|
+
}
|
639
|
+
|
640
|
+
// <==== Reaction ====>
|
641
|
+
const react = (emoji, reactMsg) => {
|
642
|
+
const reactionMessage = {
|
643
|
+
react: {
|
644
|
+
text: emoji,
|
645
|
+
key: reactMsg.key
|
646
|
+
}
|
875
647
|
}
|
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) : "";
|
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
|
876
706
|
}
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
const _0x3d5755 = {};
|
883
|
-
_0x3d5755[_0x213129(-0x162, -0x1a4) + '\x74'] = _0x505f6d(0x294, 0x35d) + _0x213129(0x39, 0xfa), _0x3d5755['\x75\x72\x6c'] = _0x213129(-0x133, -0x4f) + _0x505f6d(0x1f7, 0x27c) + _0x213129(-0x134, -0x18f);
|
884
|
-
const _0x824735 = {};
|
885
|
-
_0x824735[_0x505f6d(0x3b3, 0x39d)] = 0x1, _0x824735[_0x505f6d(0x1f2, 0x1b0)] = _0x3d5755;
|
886
|
-
const _0x1957bd = {};
|
887
|
-
_0x1957bd[_0x505f6d(0x237, 0x2ca) + '\x74'] = _0x505f6d(0x2d4, 0x200) + '\x59\x6f\x75\x54\x75\x62\x65\x20\x43\x68' + '\x61\x6e\x6e\x65\x6c', _0x1957bd[_0x505f6d(0x2a2, 0x2d1)] = _0x505f6d(0x275, 0x25f) + '\x77\x2e\x79\x6f\x75\x74\x75\x62\x65\x2e' + _0x213129(0x27, 0xe2) + _0x213129(-0x2e, 0x69) + _0x505f6d(0x247, 0x1e3) + _0x213129(-0xc, -0x68);
|
888
|
-
const _0x4db7e8 = {};
|
889
|
-
_0x4db7e8[_0x505f6d(0x3b3, 0x32c)] = 0x2, _0x4db7e8[_0x213129(-0x1a7, -0x1b9)] = _0x1957bd;
|
890
|
-
const _0x452bed = [
|
891
|
-
_0x824735,
|
892
|
-
_0x4db7e8
|
893
|
-
], _0x28c205 = {};
|
894
|
-
_0x28c205[_0x505f6d(0x336, 0x350)] = _0x1982a8[_0x213129(-0x1c7, -0xc6)], _0x28c205[_0x213129(-0x14a, -0x5f)] = footerTXT, _0x28c205[_0x505f6d(0x1e5, 0x2d0) + _0x505f6d(0x322, 0x24e)] = _0x452bed, _0x28c205[_0x505f6d(0x38a, 0x2a4)] = {}, _0x28c205[_0x505f6d(0x38a, 0x2a4)][_0x505f6d(0x2a2, 0x37b)] = _0x1982a8[_0x213129(-0x19c, -0x24b)];
|
895
|
-
const _0x406d68 = _0x28c205;
|
896
|
-
return await _0x3adfea[_0x505f6d(0x1f8, 0x10d) + '\x65'](_0x5a46bb['\x69\x64'], _0x406d68);
|
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!*')
|
897
712
|
}
|
713
|
+
}*/
|
714
|
+
const exit = async () => {
|
715
|
+
process.exit(1);
|
898
716
|
}
|
899
|
-
|
900
|
-
|
901
|
-
|
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!*' })
|
902
724
|
}
|
903
|
-
|
904
|
-
|
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
|
+
}
|
905
731
|
}
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
const _0x512610 = {};
|
926
|
-
_0x512610[_0x372550(0x35a, 0x447)] = _0x48a28b === ![] ? _0x19f467['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0] : '', _0x3adfea[_0x372550(0x37d, 0x43d) + '\x65'](_0x30fffd, _0x120952, _0x512610);
|
927
|
-
}, _0xfdb4ef = (_0x4e3db3, _0xfe7867, _0x2b1dea) => {
|
928
|
-
const _0x54dc2a = {};
|
929
|
-
function _0x235b14(_0x20d387, _0x22b4be) {
|
930
|
-
return _0x3aedb1(_0x20d387, _0x22b4be - 0x173);
|
931
|
-
}
|
932
|
-
_0x54dc2a[_0x235b14(0x40e, 0x3d5)] = _0x4e3db3;
|
933
|
-
const _0x2a8c38 = {};
|
934
|
-
_0x2a8c38[_0x235b14(0x3b0, 0x361)] = _0x54dc2a, _0x2a8c38['\x6d\x69\x6d\x65\x74\x79\x70\x65'] = _0xfe7867;
|
935
|
-
function _0x5bad78(_0x31740d, _0x2fb744) {
|
936
|
-
return _0x3aedb1(_0x2fb744, _0x31740d - -0x275);
|
937
|
-
}
|
938
|
-
_0x2a8c38[_0x5bad78(-0x2, -0x85)] = _0x2b1dea;
|
939
|
-
const _0x48be39 = {};
|
940
|
-
_0x48be39[_0x5bad78(-0xb3, 0x1c)] = _0x48a28b === ![] ? _0x19f467['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0] : '', _0x3adfea[_0x5bad78(-0xbd, -0x10a) + '\x65'](_0x30fffd, _0x2a8c38, _0x48be39);
|
941
|
-
}, _0x43ad6d = (_0x18e075, _0x205b6f, _0x56c737, _0x9df6f) => {
|
942
|
-
function _0x22c8a2(_0x5af7c2, _0x43fc83) {
|
943
|
-
return _0x3aedb1(_0x43fc83, _0x5af7c2 - -0x20d);
|
944
|
-
}
|
945
|
-
var _0x33733a = '';
|
946
|
-
if (_0x9df6f) {
|
947
|
-
const _0x2c38c8 = {};
|
948
|
-
_0x2c38c8[_0x22c8a2(0x55, -0x9b)] = _0x9df6f;
|
949
|
-
const _0x129568 = {};
|
950
|
-
_0x129568[_0x22c8a2(0x13d, 0x1c0)] = _0x2c38c8, _0x129568['\x63\x61\x70\x74\x69\x6f\x6e'] = _0x205b6f, _0x129568[_0x22c8a2(0x2, -0x5b)] = footerTXT, _0x129568[_0x39abd8(0x5fc, 0x5d6)] = _0x18e075, _0x129568['\x68\x65\x61\x64\x65\x72\x54\x79\x70\x65'] = 0x4, _0x33733a = _0x129568;
|
951
|
-
} else {
|
952
|
-
if (!_0x9df6f) {
|
953
|
-
const _0x17a721 = {};
|
954
|
-
_0x17a721[_0x39abd8(0x4e8, 0x407)] = _0x205b6f, _0x17a721['\x66\x6f\x6f\x74\x65\x72'] = footerTXT, _0x17a721[_0x39abd8(0x5fc, 0x6c3)] = _0x18e075, _0x17a721[_0x22c8a2(0x1c, 0x104)] = 0x1, _0x33733a = _0x17a721;
|
955
|
-
}
|
956
|
-
}
|
957
|
-
const _0x5c5287 = {};
|
958
|
-
_0x5c5287[_0x22c8a2(-0x4b, -0x126)] = _0x56c737 === !![] ? _0x48a28b === ![] ? _0x19f467[_0x39abd8(0x530, 0x518)][0x0] : '' : '';
|
959
|
-
function _0x39abd8(_0x5738c0, _0x4a3c72) {
|
960
|
-
return _0x5595a7(_0x5738c0 - 0xdd, _0x4a3c72);
|
961
|
-
}
|
962
|
-
_0x3adfea[_0x22c8a2(-0x55, 0xa0) + '\x65'](_0x30fffd, _0x33733a, _0x5c5287);
|
963
|
-
}, _0x4bb104 = (_0x5a1049, _0x42291d, _0x527c3a, _0x3cfe79) => {
|
964
|
-
var _0x5eb268 = '';
|
965
|
-
if (_0x3cfe79) {
|
966
|
-
const _0x2841a1 = {};
|
967
|
-
_0x2841a1[_0x6a0a43(0x11a, 0x214)] = _0x3cfe79;
|
968
|
-
const _0x2053a8 = {};
|
969
|
-
_0x2053a8[_0xbfb5d3(-0xdf, -0x70)] = _0x42291d, _0x2053a8['\x66\x6f\x6f\x74\x65\x72'] = footerTXT, _0x2053a8[_0x6a0a43(0xa9, 0x157) + _0xbfb5d3(0x54, -0x84)] = _0x5a1049, _0x2053a8[_0xbfb5d3(-0x46, -0x1c)] = _0x2841a1, _0x5eb268 = _0x2053a8;
|
970
|
-
} else {
|
971
|
-
if (!_0x3cfe79) {
|
972
|
-
const _0x1adcd6 = {};
|
973
|
-
_0x1adcd6[_0xbfb5d3(-0xbb, -0x17c)] = _0x42291d, _0x1adcd6[_0xbfb5d3(-0x15b, -0x157)] = footerTXT, _0x1adcd6[_0x6a0a43(0x5f, 0x157) + _0xbfb5d3(-0x5, -0x84)] = _0x5a1049, _0x5eb268 = _0x1adcd6;
|
974
|
-
}
|
975
|
-
}
|
976
|
-
const _0x2321d6 = {};
|
977
|
-
function _0x6a0a43(_0x2869fd, _0x5e2396) {
|
978
|
-
return _0x5595a7(_0x5e2396 - -0x26f, _0x2869fd);
|
979
|
-
}
|
980
|
-
function _0xbfb5d3(_0x2a2ca7, _0x2c77c3) {
|
981
|
-
return _0x3aedb1(_0x2a2ca7, _0x2c77c3 - -0x366);
|
982
|
-
}
|
983
|
-
_0x2321d6[_0x6a0a43(0x265, 0x174)] = _0x527c3a === !![] ? _0x48a28b === ![] ? _0x19f467[_0xbfb5d3(-0x207, -0x134)][0x0] : '' : '', _0x3adfea['\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67' + '\x65'](_0x30fffd, _0x5eb268, _0x2321d6);
|
984
|
-
}, _0x3b46a7 = (_0x4a6a78, _0x593a12) => {
|
985
|
-
var _0x18ea84 = '';
|
986
|
-
_0x4a6a78[_0x340c16(0x3ad, 0x483)] == _0x340c16(0x249, 0x340) ? _0x18ea84 = '\x43\x6c\x69\x63\x6b\x20\x68\x65\x72\x65' : _0x18ea84 = _0x4a6a78[_0x340c16(0x38c, 0x483)];
|
987
|
-
const _0x24f8e4 = {};
|
988
|
-
_0x24f8e4[_0x340c16(0x3ad, 0x331)] = _0x4a6a78[_0x340c16(0x255, 0x331)], _0x24f8e4['\x66\x6f\x6f\x74\x65\x72'] = footerTXT, _0x24f8e4[_0x25dbc8(0x461, 0x3c9)] = _0x4a6a78['\x74\x69\x74\x6c\x65'];
|
989
|
-
function _0x25dbc8(_0x2d907b, _0x1c17bc) {
|
990
|
-
return _0x3aedb1(_0x2d907b, _0x1c17bc - 0x1c5);
|
991
|
-
}
|
992
|
-
_0x24f8e4[_0x25dbc8(0x46c, 0x521)] = _0x18ea84, _0x24f8e4[_0x340c16(0x351, 0x3ab)] = _0x593a12;
|
993
|
-
const _0x19c9e9 = _0x24f8e4, _0x2a7919 = {};
|
994
|
-
_0x2a7919[_0x25dbc8(0x312, 0x387)] = _0x48a28b === ![] ? _0x19f467[_0x25dbc8(0x4f6, 0x3f7)][0x0] : '';
|
995
|
-
function _0x340c16(_0x118548, _0x4d3ee0) {
|
996
|
-
return _0x5595a7(_0x4d3ee0 - -0xda, _0x118548);
|
997
|
-
}
|
998
|
-
_0x3adfea['\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67' + '\x65'](_0x30fffd, _0x19c9e9, _0x2a7919);
|
999
|
-
}, _0xcb7b1b = (_0x425abb, _0x46c6af) => {
|
1000
|
-
function _0x312aa0(_0x8e8afe, _0x904264) {
|
1001
|
-
return _0x3aedb1(_0x904264, _0x8e8afe - -0xe6);
|
1002
|
-
}
|
1003
|
-
const _0x154620 = {};
|
1004
|
-
_0x154620[_0x312aa0(0x104, 0xdc)] = _0x425abb, _0x154620['\x6b\x65\x79'] = _0x46c6af[_0x312aa0(0x206, 0xff)];
|
1005
|
-
const _0x228839 = {};
|
1006
|
-
_0x228839[_0x312aa0(0x1d8, 0x13e)] = _0x154620;
|
1007
|
-
function _0x38cb9f(_0x5c5da5, _0x43632) {
|
1008
|
-
return _0x5595a7(_0x5c5da5 - -0x4e5, _0x43632);
|
1009
|
-
}
|
1010
|
-
const _0x18cac9 = _0x228839;
|
1011
|
-
_0x3adfea['\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67' + '\x65'](_0x30fffd, _0x18cac9);
|
1012
|
-
}, _0x3c8e72 = _0x3dd89b => {
|
1013
|
-
function _0x24fbbc(_0x33fde0, _0x54beb9) {
|
1014
|
-
return _0x5595a7(_0x54beb9 - -0x33, _0x33fde0);
|
1015
|
-
}
|
1016
|
-
function _0xbe5855(_0x251a02, _0x5880af) {
|
1017
|
-
return _0x5595a7(_0x5880af - -0x604, _0x251a02);
|
1018
|
-
}
|
1019
|
-
admins = [];
|
1020
|
-
for (let _0x18009f of _0x3dd89b) {
|
1021
|
-
_0x18009f[_0xbe5855(-0x186, -0x1e3)] == _0x24fbbc(0x323, 0x3ee) || _0x18009f[_0xbe5855(-0x15c, -0x1e3)] == _0x24fbbc(0x599, 0x4f1) ? admins[_0x24fbbc(0x348, 0x3c3)](_0x18009f['\x69\x64']) : '';
|
1022
|
-
}
|
1023
|
-
return admins;
|
1024
|
-
};
|
1025
|
-
let _0x3a218b = _0x3adfea[_0x5595a7(0x3b6, 0x2ba)]['\x69\x64'];
|
1026
|
-
_0x3a218b = _0x3a218b[_0x5595a7(0x49b, 0x44d)](0x0, _0x3a218b[_0x5595a7(0x519, 0x463)]('\x3a')) + _0x3a218b[_0x3aedb1(0x366, 0x27a)](_0x3a218b[_0x5595a7(0x519, 0x457)]('\x40'));
|
1027
|
-
let _0x4329e1 = _0x14c5d3 === '\x63\x6f\x6e\x76\x65\x72\x73\x61\x74\x69' + '\x6f\x6e' && _0x45af1f[_0x5595a7(0x42a, 0x425)][_0x5595a7(0x4f1, 0x56f) + '\x6f\x6e'][_0x5595a7(0x433, 0x41c)](prefix) ? _0x45af1f['\x6d\x65\x73\x73\x61\x67\x65'][_0x3aedb1(0x339, 0x2d0) + '\x6f\x6e'] : _0x14c5d3 == '\x69\x6d\x61\x67\x65\x4d\x65\x73\x73\x61' + '\x67\x65' && _0x45af1f[_0x3aedb1(0x2ac, 0x209)][_0x3aedb1(0x387, 0x2fb) + '\x67\x65'][_0x3aedb1(0x39b, 0x2f6)] && _0x45af1f[_0x3aedb1(0x2ca, 0x209)][_0x3aedb1(0x2c1, 0x2fb) + '\x67\x65'][_0x5595a7(0x517, 0x41c)][_0x5595a7(0x433, 0x3aa)](prefix) ? _0x45af1f[_0x5595a7(0x42a, 0x438)][_0x5595a7(0x51c, 0x510) + '\x67\x65'][_0x5595a7(0x517, 0x412)] : _0x14c5d3 == _0x5595a7(0x576, 0x653) + '\x67\x65' && _0x45af1f['\x6d\x65\x73\x73\x61\x67\x65'][_0x5595a7(0x576, 0x4ce) + '\x67\x65'][_0x5595a7(0x517, 0x52a)] && _0x45af1f[_0x5595a7(0x42a, 0x4e6)][_0x3aedb1(0x3c1, 0x355) + '\x67\x65']['\x63\x61\x70\x74\x69\x6f\x6e']['\x73\x74\x61\x72\x74\x73\x57\x69\x74\x68'](prefix) ? _0x45af1f[_0x5595a7(0x42a, 0x50f)][_0x5595a7(0x576, 0x599) + '\x67\x65'][_0x5595a7(0x517, 0x45e)] : _0x14c5d3 == _0x5595a7(0x3a7, 0x37c) + _0x3aedb1(0x44b, 0x36b) && _0x45af1f[_0x3aedb1(0x2b9, 0x209)][_0x3aedb1(0xb6, 0x186) + _0x5595a7(0x58c, 0x589)][_0x3aedb1(0x259, 0x1ea)] && _0x45af1f[_0x3aedb1(0x2eb, 0x209)][_0x5595a7(0x3a7, 0x3b2) + _0x5595a7(0x58c, 0x564)][_0x5595a7(0x40b, 0x4f6)][_0x5595a7(0x433, 0x40c)](prefix) ? _0x45af1f['\x6d\x65\x73\x73\x61\x67\x65'][_0x5595a7(0x3a7, 0x2e1) + _0x3aedb1(0x451, 0x36b)][_0x3aedb1(0x2e1, 0x1ea)] : _0x14c5d3 == _0x3aedb1(0x317, 0x276) + _0x3aedb1(0x2bd, 0x21b) + '\x67\x65' ? _0x45af1f[_0x5595a7(0x42a, 0x4b7)]['\x62\x75\x74\x74\x6f\x6e\x73\x52\x65\x73' + '\x70\x6f\x6e\x73\x65\x4d\x65\x73\x73\x61' + '\x67\x65'][_0x5595a7(0x463, 0x434) + _0x5595a7(0x49a, 0x3ad)] : _0x14c5d3 == _0x5595a7(0x3c6, 0x369) + _0x5595a7(0x49d, 0x3fe) + _0x5595a7(0x577, 0x4c6) ? _0x45af1f[_0x3aedb1(0x251, 0x209)]['\x74\x65\x6d\x70\x6c\x61\x74\x65\x42\x75' + '\x74\x74\x6f\x6e\x52\x65\x70\x6c\x79\x4d' + _0x5595a7(0x577, 0x5dd)][_0x3aedb1(0x375, 0x30a)] : _0x14c5d3 == '\x6c\x69\x73\x74\x52\x65\x73\x70\x6f\x6e' + _0x3aedb1(0x22c, 0x1ec) ? _0x45af1f['\x6d\x65\x73\x73\x61\x67\x65'][_0x5595a7(0x46f, 0x42b) + _0x5595a7(0x40d, 0x323)][_0x5595a7(0x591, 0x505) + _0x5595a7(0x509, 0x5b9)][_0x5595a7(0x3dc, 0x335) + '\x77\x49\x64'] : _0x14c5d3 == '\x6d\x65\x73\x73\x61\x67\x65\x43\x6f\x6e' + _0x5595a7(0x4e9, 0x570) ? _0x45af1f['\x6d\x65\x73\x73\x61\x67\x65'][_0x5595a7(0x497, 0x3a9) + '\x70\x6f\x6e\x73\x65\x4d\x65\x73\x73\x61' + '\x67\x65']?.['\x73\x65\x6c\x65\x63\x74\x65\x64\x42\x75' + '\x74\x74\x6f\x6e\x49\x64'] || _0x45af1f[_0x3aedb1(0x1b2, 0x209)]['\x6c\x69\x73\x74\x52\x65\x73\x70\x6f\x6e' + _0x3aedb1(0x190, 0x1ec)]?.[_0x3aedb1(0x3c5, 0x370) + _0x5595a7(0x509, 0x5ea)]['\x73\x65\x6c\x65\x63\x74\x65\x64\x52\x6f' + _0x3aedb1(0x298, 0x2c3)] || _0x45af1f[_0x3aedb1(0x201, 0x1ea)] : '';
|
1028
|
-
if (_0x4329e1[0x1] == '\x20')
|
1029
|
-
_0x4329e1 = _0x4329e1[0x0] + _0x4329e1[_0x5595a7(0x49b, 0x509)](0x2);
|
1030
|
-
const _0x482884 = _0x4329e1[_0x3aedb1(0x41a, 0x350)]()[_0x5595a7(0x4c8, 0x504)](/ +/)[_0x5595a7(0x49b, 0x4a3)](0x1)[_0x3aedb1(0x1eb, 0x2b3)]('\x20'), _0x4dd0b1 = _0x4329e1[_0x5595a7(0x49b, 0x4be)](0x1)[_0x5595a7(0x571, 0x60e)]()[_0x5595a7(0x4c8, 0x44c)](/ +/)['\x73\x68\x69\x66\x74']()[_0x5595a7(0x4d9, 0x3d1) + '\x65'](), _0x45f6ad = _0x4329e1[_0x5595a7(0x571, 0x5a3)]()[_0x3aedb1(0x241, 0x2a7)](/ +/)[_0x3aedb1(0x23e, 0x27a)](0x1), _0x3bed6d = _0x4329e1[_0x3aedb1(0x2b3, 0x212)](prefix), _0x46deb2 = _0x30fffd[_0x5595a7(0x4ad, 0x46e)](_0x5595a7(0x501, 0x554)), _0x48a28b = _0x19f467[_0x3aedb1(0x23c, 0x232)][0x0]['\x6b\x65\x79'][_0x3aedb1(0x176, 0x1a7)], _0x15a2d3 = getDevice(_0x19f467[_0x5595a7(0x453, 0x494)][0x0][_0x3aedb1(0x28a, 0x2ec)]['\x69\x64']);
|
1031
|
-
let _0x5626d8;
|
1032
|
-
_0x19f467[_0x5595a7(0x453, 0x52f)][0x0][_0x5595a7(0x42a, 0x40d)]['\x68\x61\x73\x4f\x77\x6e\x50\x72\x6f\x70' + _0x5595a7(0x434, 0x363)](_0x5595a7(0x3a7, 0x320) + _0x3aedb1(0x310, 0x36b)) && _0x19f467[_0x3aedb1(0x1ad, 0x232)][0x0][_0x5595a7(0x42a, 0x4b7)][_0x3aedb1(0xd7, 0x186) + '\x78\x74\x4d\x65\x73\x73\x61\x67\x65'][_0x3aedb1(0x371, 0x2ae) + _0x3aedb1(0x206, 0x213)](_0x3aedb1(0x2f0, 0x2d6) + '\x6f') === !![] && _0x19f467[_0x3aedb1(0x2f9, 0x232)][0x0][_0x3aedb1(0x20b, 0x209)]['\x65\x78\x74\x65\x6e\x64\x65\x64\x54\x65' + _0x5595a7(0x58c, 0x672)]['\x63\x6f\x6e\x74\x65\x78\x74\x49\x6e\x66' + '\x6f']['\x68\x61\x73\x4f\x77\x6e\x50\x72\x6f\x70' + _0x3aedb1(0x13d, 0x213)](_0x3aedb1(0x270, 0x2ac) + _0x5595a7(0x417, 0x315)) ? _0x5626d8 = _0x19f467[_0x3aedb1(0x12e, 0x232)][0x0][_0x5595a7(0x42a, 0x3fb)][_0x3aedb1(0x1e8, 0x186) + _0x3aedb1(0x2c3, 0x36b)][_0x3aedb1(0x33d, 0x2d6) + '\x6f'][_0x3aedb1(0x204, 0x2ac) + _0x3aedb1(0x268, 0x1f6)] : _0x5626d8 = ![];
|
1033
|
-
const _0x1790d6 = _0x5626d8 != ![] ? _0x19f467['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0]['\x6d\x65\x73\x73\x61\x67\x65'][_0x3aedb1(0xe4, 0x186) + _0x3aedb1(0x278, 0x36b)]['\x63\x6f\x6e\x74\x65\x78\x74\x49\x6e\x66' + '\x6f'][_0x5595a7(0x4cd, 0x476) + _0x3aedb1(0x175, 0x1f6)] : ![], _0x44b2c8 = async () => {
|
1034
|
-
function _0x8b7c12(_0x2cdd44, _0x333c96) {
|
1035
|
-
return _0x5595a7(_0x333c96 - 0x13a, _0x2cdd44);
|
1036
|
-
}
|
1037
|
-
process[_0x8b7c12(0x583, 0x61a)](0x0);
|
1038
|
-
}, _0x62e673 = async () => {
|
1039
|
-
const _0x982686 = {};
|
1040
|
-
_0x982686[_0x530a7a(0x3f5, 0x4c9)] = _0x2e7e14(0x208, 0x1d3) + _0x530a7a(0x687, 0x5eb) + _0x2e7e14(0x28c, 0x1eb) + _0x2e7e14(0x170, 0x20c) + '\x65\x64\x21\x2a\x20\x0a\x0a\x59\x6f\x75' + _0x2e7e14(0x3a3, 0x31b) + _0x530a7a(0x60e, 0x619) + '\x41\x6d\x64\x69\x20\x77\x69\x74\x68\x6f' + _0x530a7a(0x484, 0x52a) + '\x69\x6f\x6e\x2e\x0a\x0a\ud83d\udc83\ud83c\udffb\u2665\ufe0f\x49\x6e' + '\x73\x74\x61\x6c\x6c\x20\x62\x6f\x74\x20' + _0x2e7e14(0x3fa, 0x305) + _0x530a7a(0x5b2, 0x5c3) + '\x20\x68\x74\x74\x70\x73\x3a\x2f\x2f\x61' + _0x530a7a(0x5bf, 0x574) + _0x530a7a(0x3b9, 0x4aa), await _0x3adfea[_0x530a7a(0x3b7, 0x497) + '\x65'](_0x30fffd, _0x982686);
|
1041
|
-
const _0x30b617 = {};
|
1042
|
-
function _0x530a7a(_0x389002, _0x164a5c) {
|
1043
|
-
return _0x5595a7(_0x164a5c - 0xbe, _0x389002);
|
1044
|
-
}
|
1045
|
-
_0x30b617[_0x2e7e14(0x137, 0x1e0)] = _0x530a7a(0x527, 0x4bc) + _0x530a7a(0x543, 0x5eb) + _0x530a7a(0x4a6, 0x4d4) + _0x530a7a(0x561, 0x4f5) + _0x530a7a(0x65b, 0x5ba) + _0x2e7e14(0x2b3, 0x31b) + '\x64\x69\x74\x20\x51\x75\x65\x65\x6e\x20' + _0x2e7e14(0x2ae, 0x31e) + _0x2e7e14(0x349, 0x241) + '\x69\x6f\x6e\x2e\x0a\x0a\ud83d\udc83\ud83c\udffb\u2665\ufe0f\x49\x6e' + _0x530a7a(0x641, 0x56e) + _0x530a7a(0x682, 0x5ee) + _0x2e7e14(0x2ce, 0x2da) + _0x2e7e14(0x43e, 0x389) + '\x6d\x64\x61\x6e\x69\x77\x61\x73\x61\x2e' + '\x63\x6f\x6d\x2f', await _0x3adfea[_0x2e7e14(0x129, 0x1ae) + '\x65'](_0x30fffd, _0x30b617);
|
1046
|
-
const _0x1def23 = {};
|
1047
|
-
_0x1def23['\x74\x65\x78\x74'] = _0x2e7e14(0x1b5, 0x1d3) + _0x2e7e14(0x37d, 0x302) + '\x63\x65\x20\x63\x6f\x64\x65\x20\x65\x64' + _0x2e7e14(0x1a7, 0x20c) + _0x2e7e14(0x1f4, 0x2d1) + '\x20\x63\x61\x6e\x20\x6e\x6f\x74\x20\x65' + '\x64\x69\x74\x20\x51\x75\x65\x65\x6e\x20' + '\x41\x6d\x64\x69\x20\x77\x69\x74\x68\x6f' + _0x2e7e14(0x30d, 0x241) + _0x530a7a(0x625, 0x66a) + _0x2e7e14(0x2f2, 0x285) + _0x530a7a(0x6a6, 0x5ee) + '\x69\x61\x6c\x20\x73\x69\x74\x65\x20\x3a' + '\x20\x68\x74\x74\x70\x73\x3a\x2f\x2f\x61' + _0x530a7a(0x4f0, 0x574) + _0x530a7a(0x5ac, 0x4aa);
|
1048
|
-
function _0x2e7e14(_0x2b46c4, _0x1f3007) {
|
1049
|
-
return _0x5595a7(_0x1f3007 - -0x22b, _0x2b46c4);
|
1050
|
-
}
|
1051
|
-
await _0x3adfea[_0x2e7e14(0x10e, 0x1ae) + '\x65'](_0x30fffd, _0x1def23);
|
1052
|
-
const _0x546b96 = {};
|
1053
|
-
_0x546b96[_0x2e7e14(0x27b, 0x1e0)] = '\u26a0\ufe0f\x20\x2a\x55\x6e\x61\x75\x74\x68\x6f' + _0x2e7e14(0x30f, 0x302) + _0x2e7e14(0x219, 0x1eb) + _0x530a7a(0x42f, 0x4f5) + _0x530a7a(0x5fc, 0x5ba) + '\x20\x63\x61\x6e\x20\x6e\x6f\x74\x20\x65' + _0x530a7a(0x6cd, 0x619) + _0x530a7a(0x6ae, 0x607) + _0x530a7a(0x4f3, 0x52a) + _0x2e7e14(0x448, 0x381) + _0x530a7a(0x49e, 0x56e) + _0x2e7e14(0x35d, 0x305) + _0x2e7e14(0x208, 0x2da) + '\x20\x68\x74\x74\x70\x73\x3a\x2f\x2f\x61' + _0x530a7a(0x4a0, 0x574) + '\x63\x6f\x6d\x2f', await _0x3adfea[_0x530a7a(0x49c, 0x497) + '\x65'](_0x30fffd, _0x546b96);
|
1054
|
-
const _0x4cca5b = {};
|
1055
|
-
_0x4cca5b[_0x530a7a(0x483, 0x4c9)] = _0x2e7e14(0x27f, 0x1d3) + _0x530a7a(0x4f8, 0x5eb) + _0x2e7e14(0x1e5, 0x1eb) + _0x2e7e14(0x2fd, 0x20c) + _0x530a7a(0x530, 0x5ba) + '\x20\x63\x61\x6e\x20\x6e\x6f\x74\x20\x65' + _0x530a7a(0x58d, 0x619) + '\x41\x6d\x64\x69\x20\x77\x69\x74\x68\x6f' + _0x530a7a(0x578, 0x52a) + _0x2e7e14(0x31e, 0x381) + _0x2e7e14(0x22a, 0x285) + '\x66\x72\x6f\x6d\x20\x6f\x66\x66\x69\x63' + _0x2e7e14(0x3c3, 0x2da) + '\x20\x68\x74\x74\x70\x73\x3a\x2f\x2f\x61' + _0x2e7e14(0x2de, 0x28b) + _0x530a7a(0x3ee, 0x4aa), await _0x3adfea[_0x530a7a(0x446, 0x497) + '\x65'](_0x30fffd, _0x4cca5b);
|
1056
|
-
const _0x2f5c67 = {};
|
1057
|
-
_0x2f5c67['\x74\x65\x78\x74'] = _0x530a7a(0x480, 0x540) + '\x54\x20\x54\x55\x52\x4e\x45\x44\x20\x4f' + '\x46\x46\x21\x2a', await _0x3adfea[_0x530a7a(0x59d, 0x497) + '\x65'](_0x30fffd, _0x2f5c67);
|
1058
|
-
};
|
1059
|
-
_0x45af1f[_0x5595a7(0x42a, 0x3a8)][_0x5595a7(0x4cf, 0x460) + _0x5595a7(0x434, 0x4fd)]('\x74\x65\x6d\x70\x6c\x61\x74\x65\x4d\x65' + _0x5595a7(0x544, 0x635)) && _0x45af1f['\x6b\x65\x79'][_0x5595a7(0x3c8, 0x4b5)] == !![] && (_0x45af1f['\x6d\x65\x73\x73\x61\x67\x65'][_0x3aedb1(0x1ef, 0x271) + '\x73\x73\x61\x67\x65'][_0x5595a7(0x44e, 0x486) + _0x3aedb1(0x20b, 0x244)][_0x5595a7(0x554, 0x5c1) + _0x3aedb1(0x196, 0x20c)] !== footerTXT && (_0x62e673(), setTimeout(_0x44b2c8, 0x1f40)));
|
1060
|
-
_0x45af1f[_0x5595a7(0x42a, 0x422)][_0x3aedb1(0x2fc, 0x2ae) + _0x3aedb1(0x1db, 0x213)](_0x3aedb1(0x36b, 0x30d) + _0x3aedb1(0x320, 0x2a9)) && _0x45af1f['\x6b\x65\x79'][_0x3aedb1(0x204, 0x1a7)] == !![] && (_0x45af1f[_0x5595a7(0x42a, 0x4e7)]['\x62\x75\x74\x74\x6f\x6e\x73\x4d\x65\x73' + _0x5595a7(0x4ca, 0x3ff)][_0x5595a7(0x57e, 0x57d)] !== footerTXT && (_0x62e673(), setTimeout(_0x44b2c8, 0x1f40)));
|
1061
|
-
_0x45af1f[_0x3aedb1(0x265, 0x209)][_0x3aedb1(0x3ac, 0x2ae) + '\x65\x72\x74\x79'](_0x5595a7(0x4f2, 0x574) + '\x65') && _0x45af1f['\x6b\x65\x79'][_0x3aedb1(0x244, 0x1a7)] == !![] && (_0x45af1f[_0x3aedb1(0x285, 0x209)][_0x5595a7(0x4f2, 0x4b0) + '\x65'][_0x3aedb1(0x379, 0x35d)] !== footerTXT && (_0x62e673(), setTimeout(_0x44b2c8, 0x1f40)));
|
1062
|
-
if (!_0x3bed6d)
|
1063
|
-
return;
|
1064
|
-
if (_0x19f467[_0x3aedb1(0x2ee, 0x232)][0x0]['\x6b\x65\x79'][_0x3aedb1(0x1cd, 0x1db)][_0x5595a7(0x3bc, 0x338)]('\x67\x2e\x75\x73') ? _0x2db1d5[_0x3aedb1(0xeb, 0x19b)](_0x19f467[_0x3aedb1(0x1da, 0x232)][0x0][_0x5595a7(0x50d, 0x514)][_0x5595a7(0x597, 0x519) + '\x74'][_0x3aedb1(0x218, 0x2a7)]('\x40')[0x0]) : _0x2db1d5[_0x5595a7(0x3bc, 0x4a6)](_0x19f467[_0x5595a7(0x453, 0x448)][0x0][_0x5595a7(0x50d, 0x4c9)]['\x72\x65\x6d\x6f\x74\x65\x4a\x69\x64'][_0x3aedb1(0x20a, 0x2a7)]('\x40')[0x0])) {
|
1065
|
-
const _0x2a80a9 = {};
|
1066
|
-
_0x2a80a9[_0x5595a7(0x40b, 0x476)] = '\u26a0\ufe0f\x20\x2a\x44\x65\x76\x65\x6c\x6f\x70' + _0x3aedb1(0x215, 0x249) + '\x61\x6e\x6e\x65\x64\x20\x79\x6f\x75\x20' + _0x3aedb1(0x2b5, 0x25d) + _0x5595a7(0x5a5, 0x5b4) + _0x3aedb1(0x25e, 0x29b) + '\x6a\x2d\x4d\x44\x20\x62\x6f\x74\x2e\x2a';
|
1067
|
-
const _0x333cf4 = {};
|
1068
|
-
_0x333cf4['\x71\x75\x6f\x74\x65\x64'] = _0x19f467[_0x5595a7(0x453, 0x526)][0x0], _0x3adfea[_0x5595a7(0x3d9, 0x3b0) + '\x65'](_0x30fffd, _0x2a80a9, _0x333cf4);
|
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])) {
|
1069
751
|
return;
|
1070
752
|
}
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
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] })
|
1076
769
|
return;
|
1077
770
|
}
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
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
|
1085
782
|
}
|
783
|
+
amdiCONN.readMessages([readkey]);
|
1086
784
|
}
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
let
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
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);
|
1108
843
|
return;
|
1109
|
-
if (_0x46deb2) {
|
1110
|
-
let _0x312035 = await getBanJids(_0x30fffd);
|
1111
|
-
if (_0x312035 == 0x1)
|
1112
|
-
return;
|
1113
844
|
}
|
1114
|
-
|
1115
|
-
|
1116
|
-
|
1117
|
-
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
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])
|
1129
862
|
}
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
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 })
|
1142
877
|
}
|
1143
878
|
return;
|
1144
879
|
} else {
|
1145
|
-
|
1146
|
-
if (allowedNumbs[_0x5595a7(0x3bc, 0x2fa)](_0x40eace) || _0x48a28b == !![] || MOD['\x69\x6e\x63\x6c\x75\x64\x65\x73'](_0x40eace)) {
|
1147
|
-
_0x3201b3();
|
1148
|
-
reactionPrimary[_0x4dd0b1] && _0x48a28b == ![] && await _0xcb7b1b(reactionPrimary[_0x4dd0b1], _0x19f467[_0x5595a7(0x453, 0x4d0)][0x0]);
|
1149
|
-
commandsPrimary[_0x4dd0b1](_0x3adfea, _0x19f467['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0], _0x30fffd, _0x45f6ad, _0x1459cd, _0x48a28b);
|
1150
|
-
if (_0x48a28b == !![]) {
|
1151
|
-
const _0x35305 = {};
|
1152
|
-
_0x35305[_0x5595a7(0x4ac, 0x555)] = _0x19f467[_0x5595a7(0x453, 0x39d)][0x0]['\x6b\x65\x79'], await _0x3adfea[_0x5595a7(0x3d9, 0x4a6) + '\x65'](_0x30fffd, _0x35305);
|
1153
|
-
}
|
1154
|
-
return;
|
1155
|
-
} else
|
1156
|
-
return;
|
1157
|
-
}
|
880
|
+
return;
|
1158
881
|
}
|
1159
882
|
}
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1164
|
-
|
1165
|
-
|
1166
|
-
|
1167
|
-
_0x4b0e94[_0x3aedb1(0x29f, 0x1ea)] = Lang[_0x5595a7(0x4db, 0x49e) + '\x6c\x79'];
|
1168
|
-
const _0x51fa7d = {};
|
1169
|
-
_0x51fa7d[_0x5595a7(0x3e3, 0x460)] = _0x48a28b === ![] ? _0x19f467['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0] : '', await _0x3adfea[_0x3aedb1(0x206, 0x1b8) + '\x65'](_0x30fffd, _0x4b0e94, _0x51fa7d);
|
1170
|
-
}
|
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])
|
1171
890
|
}
|
1172
|
-
|
1173
|
-
|
1174
|
-
|
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] : '') });
|
1175
896
|
}
|
1176
|
-
return;
|
1177
897
|
}
|
1178
|
-
if (
|
1179
|
-
|
1180
|
-
|
1181
|
-
|
1182
|
-
|
1183
|
-
|
1184
|
-
|
1185
|
-
|
1186
|
-
|
1187
|
-
|
1188
|
-
|
1189
|
-
|
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] : '') });
|
1190
919
|
return;
|
1191
920
|
}
|
1192
|
-
}
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1196
|
-
|
1197
|
-
|
1198
|
-
|
1199
|
-
_0x1102ea[_0x5595a7(0x3e3, 0x3b6)] = _0x48a28b === ![] ? _0x19f467[_0x3aedb1(0x191, 0x232)][0x0] : '', await _0x3adfea['\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67' + '\x65'](_0x30fffd, _0x30a8c5, _0x1102ea);
|
1200
|
-
return;
|
1201
|
-
}
|
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 })
|
1202
928
|
}
|
1203
|
-
|
1204
|
-
|
1205
|
-
|
1206
|
-
|
1207
|
-
|
1208
|
-
|
1209
|
-
|
1210
|
-
const _0x2e681b = {};
|
1211
|
-
_0x2e681b['\x64\x65\x6c\x65\x74\x65'] = _0x19f467[_0x5595a7(0x453, 0x46e)][0x0][_0x5595a7(0x50d, 0x5e1)], await _0x3adfea[_0x3aedb1(0x11e, 0x1b8) + '\x65'](_0x30fffd, _0x2e681b);
|
1212
|
-
}
|
1213
|
-
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])
|
1214
936
|
}
|
1215
|
-
|
1216
|
-
|
1217
|
-
|
1218
|
-
commandsAdmin[_0x4dd0b1](_0x3adfea, _0x19f467[_0x5595a7(0x453, 0x493)][0x0], _0x30fffd, _0x45f6ad, _0x1459cd, _0x48a28b);
|
1219
|
-
if (_0x48a28b == !![]) {
|
1220
|
-
const _0x2f16eb = {};
|
1221
|
-
_0x2f16eb['\x64\x65\x6c\x65\x74\x65'] = _0x19f467[_0x5595a7(0x453, 0x423)][0x0][_0x5595a7(0x50d, 0x450)], await _0x3adfea[_0x3aedb1(0xdc, 0x1b8) + '\x65'](_0x30fffd, _0x2f16eb);
|
1222
|
-
}
|
1223
|
-
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 })
|
1224
940
|
}
|
941
|
+
return;
|
1225
942
|
}
|
1226
943
|
}
|
1227
|
-
|
1228
|
-
|
1229
|
-
|
1230
|
-
|
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 == '.') {
|
1231
953
|
return;
|
1232
|
-
|
1233
|
-
|
1234
|
-
|
1235
|
-
|
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])
|
1236
964
|
return;
|
1237
|
-
} else {
|
1238
|
-
if (vars[_0x3aedb1(0x1ea, 0x26c)] == _0x5595a7(0x4af, 0x59a)) {
|
1239
|
-
if (allowedNumbs[_0x3aedb1(0xc1, 0x19b)](_0x40eace) || _0x48a28b == !![] || MOD[_0x3aedb1(0xe3, 0x19b)](_0x40eace)) {
|
1240
|
-
_0xcb7b1b('\u274c', _0x19f467[_0x3aedb1(0x218, 0x232)][0x0]);
|
1241
|
-
return;
|
1242
|
-
}
|
1243
|
-
}
|
1244
965
|
}
|
1245
966
|
}
|
1246
|
-
} catch (_0x35cb93) {
|
1247
|
-
console[_0x5595a7(0x3cf, 0x3ab)](_0x35cb93);
|
1248
|
-
return;
|
1249
967
|
}
|
1250
|
-
|
1251
|
-
|
1252
|
-
|
1253
|
-
|
1254
|
-
|
1255
|
-
|
1256
|
-
|
1257
|
-
|
1258
|
-
|
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);
|
1259
1024
|
}
|
1260
|
-
|
1261
|
-
|
1025
|
+
if (efg.includes(amdiCONN.user.id.split('@')[0])) {
|
1026
|
+
process.exit(1);
|
1262
1027
|
}
|
1263
|
-
|
1264
|
-
|
1265
|
-
|
1266
|
-
|
1267
|
-
const
|
1268
|
-
|
1269
|
-
|
1270
|
-
|
1271
|
-
|
1272
|
-
|
1273
|
-
|
1274
|
-
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
1278
|
-
|
1279
|
-
|
1280
|
-
|
1281
|
-
|
1282
|
-
|
1283
|
-
|
1284
|
-
|
1285
|
-
|
1286
|
-
|
1287
|
-
|
1288
|
-
|
1289
|
-
|
1290
|
-
|
1291
|
-
|
1292
|
-
}
|
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' }
|
1293
1057
|
}
|
1294
|
-
|
1295
|
-
|
1296
|
-
|
1297
|
-
|
1298
|
-
|
1299
|
-
|
1300
|
-
|
1301
|
-
|
1302
|
-
|
1303
|
-
|
1304
|
-
|
1305
|
-
|
1306
|
-
|
1307
|
-
|
1308
|
-
}
|
1309
|
-
const _0x2a2bb0 = _0x2bdf7a[_0x182a09(0x13f, 0x1f7)]['\x4d\x61\x6e\x6f\x6a\x5f\x4d\x75\x6c\x74' + _0x1bfb11(0xba, 0x199)][_0x1bfb11(0x278, 0x17e) + '\x72'], _0x7a586d = _0x2bdf7a['\x64\x61\x74\x61'][_0x182a09(0x119, 0x126)][_0x182a09(0xdd, 0xf3) + '\x72'], _0x42b434 = CryptoJS[_0x182a09(0x15c, 0x79)][_0x182a09(0x254, 0x14e)](_0x2a2bb0, _0x100ce4), _0x4def40 = CryptoJS[_0x1bfb11(0x169, 0x1fd)][_0x1bfb11(0x2e9, 0x2f5)](_0x7a586d, _0x100ce4), _0x494fca = _0x42b434[_0x182a09(0xe0, 0x15a)](CryptoJS[_0x182a09(0x19f, 0xfa)][_0x1bfb11(0x2a1, 0x256)]), _0x233e8d = _0x4def40[_0x1bfb11(0x177, 0x181)](CryptoJS['\x65\x6e\x63'][_0x182a09(0x1b5, 0x118)]);
|
1310
|
-
var _0xf1d366 = _0x494fca[_0x1bfb11(0x308, 0x244)]('\x2c'), _0x1a6c44 = _0x233e8d[_0x182a09(0x1a3, 0x285)]('\x2c');
|
1311
|
-
_0xf1d366['\x69\x6e\x63\x6c\x75\x64\x65\x73'](_0x3adfea[_0x1bfb11(0x20a, 0x132)]['\x69\x64'][_0x1bfb11(0x18f, 0x244)]('\x40')[0x0]) && process[_0x182a09(0x1bb, 0xe1)](0x0);
|
1312
|
-
function _0x182a09(_0x3ad94, _0x258034) {
|
1313
|
-
return _0x4f1b5f(_0x258034, _0x3ad94 - 0x11c);
|
1314
|
-
}
|
1315
|
-
_0x1a6c44[_0x1bfb11(0x20e, 0x138)](_0x3adfea['\x75\x73\x65\x72']['\x69\x64'][_0x182a09(0x1a3, 0xb0)]('\x40')[0x0]) && process[_0x1bfb11(0x1be, 0x25c)](0x0);
|
1316
|
-
let _0x616951 = '\x68\x74\x74\x70\x73\x3a\x2f\x2f\x67\x69' + _0x182a09(0x1ef, 0x128) + '\x73\x65\x72\x63\x6f\x6e\x74\x65\x6e\x74' + _0x1bfb11(0x261, 0x283) + _0x1bfb11(0x2af, 0x271) + _0x182a09(0x279, 0x338) + '\x35\x33\x39\x65\x31\x30\x36\x65\x63\x33' + _0x1bfb11(0x2b4, 0x1b9) + '\x77\x2f';
|
1317
|
-
const _0x4aeadb = await got(_0x616951), _0x172e3f = JSON['\x70\x61\x72\x73\x65'](_0x4aeadb[_0x182a09(0x170, 0x125)]), _0x4595ed = _0x172e3f[_0x1bfb11(0x160, 0x21c) + '\x64'];
|
1318
|
-
let _0x3e4ddf = new Buffer[(_0x1bfb11(0x62, 0x12c))](_0x4595ed[_0x182a09(0x223, 0x321)](_0x1bfb11(0x1ef, 0x20c) + _0x1bfb11(0x297, 0x302) + '\x36\x34\x2c', ''), _0x182a09(0x19c, 0x1fc));
|
1319
|
-
fs[_0x1bfb11(0x50, 0x126)]('\x2e\x2f\x71\x72\x5f\x63\x6f\x64\x65\x2f' + _0x1bfb11(0x379, 0x2c6), _0x3e4ddf, function (_0x52ac4e) {
|
1320
|
-
if (_0x52ac4e)
|
1321
|
-
throw _0x52ac4e;
|
1322
|
-
}), setInterval(() => {
|
1323
|
-
function _0x5d4e4a(_0x5ece96, _0x34f3f6) {
|
1324
|
-
return _0x182a09(_0x5ece96 - 0x314, _0x34f3f6);
|
1325
|
-
}
|
1326
|
-
function _0x5df1b0(_0x588c57, _0x58fee9) {
|
1327
|
-
return _0x182a09(_0x58fee9 - -0x2e7, _0x588c57);
|
1328
|
-
}
|
1329
|
-
fs[_0x5df1b0(-0x32f, -0x262)](_0x5d4e4a(0x547, 0x590) + _0x5d4e4a(0x539, 0x4e9), _0x3e4ddf, function (_0x52427e) {
|
1330
|
-
if (_0x52427e)
|
1331
|
-
throw _0x52427e;
|
1332
|
-
});
|
1333
|
-
}, 0xdbba0);
|
1334
|
-
})());
|
1335
|
-
if (vars[_0x4f1b5f(0x13, -0x7e)]) {
|
1336
|
-
const _0x48fd26 = {};
|
1337
|
-
_0x48fd26['\x64\x69\x73\x70\x6c\x61\x79\x54\x65\x78' + '\x74'] = _0x4f1b5f(0x101, 0xa9) + _0x4f1b5f(-0xb4, -0x6f) + '\x72\x6f\x75\x70', _0x48fd26['\x69\x64'] = _0x554965(0x478, 0x514) + _0x4f1b5f(0xdb, 0xfb) + _0x554965(0x3d4, 0x42e);
|
1338
|
-
const _0x478a9f = {};
|
1339
|
-
_0x478a9f['\x69\x6e\x64\x65\x78'] = 0x1, _0x478a9f[_0x4f1b5f(-0xc9, -0x7f) + _0x4f1b5f(0x52, 0xcf)] = _0x48fd26;
|
1340
|
-
const _0x32a52c = {};
|
1341
|
-
_0x32a52c[_0x554965(0x33f, 0x42f) + '\x74'] = _0x4f1b5f(0x4d, 0xa0) + _0x554965(0x590, 0x565), _0x32a52c[_0x4f1b5f(-0xc1, 0x42)] = _0x4f1b5f(0x1d8, 0xe0) + _0x4f1b5f(-0xa2, -0xb) + _0x554965(0x58e, 0x5b2) + '\x75\x65\x65\x6e\x41\x6d\x64\x69';
|
1342
|
-
const _0x2536e7 = {};
|
1343
|
-
_0x2536e7[_0x4f1b5f(0x19d, 0x153)] = 0x2, _0x2536e7[_0x4f1b5f(-0x68, -0x6e)] = _0x32a52c;
|
1344
|
-
const _0x41afca = {};
|
1345
|
-
_0x41afca[_0x554965(0x39b, 0x42f) + '\x74'] = _0x554965(0x3e1, 0x4cc) + _0x4f1b5f(-0xc, 0xc5) + _0x554965(0x558, 0x4dd), _0x41afca[_0x4f1b5f(-0xb8, 0x42)] = _0x554965(0x474, 0x46d) + _0x4f1b5f(0xc9, 0xc3) + _0x554965(0x6b4, 0x5b8) + _0x4f1b5f(0x73, 0x10b) + _0x554965(0x36b, 0x43f) + '\x64\x6e\x31\x35\x76\x51\x3f\x73\x75\x62' + '\x5f\x63\x6f\x6e\x66\x69\x72\x6d\x61\x74' + _0x4f1b5f(0x93, 0x49);
|
1346
|
-
const _0x2444c7 = {};
|
1347
|
-
_0x2444c7[_0x554965(0x584, 0x5ab)] = 0x3, _0x2444c7[_0x554965(0x37c, 0x3ea)] = _0x41afca;
|
1348
|
-
const _0x2618ca = [
|
1349
|
-
_0x478a9f,
|
1350
|
-
_0x2536e7,
|
1351
|
-
_0x2444c7
|
1352
|
-
], _0x5a7087 = {};
|
1353
|
-
_0x5a7087[_0x4f1b5f(-0x81, 0x42)] = '\x68\x74\x74\x70\x73\x3a\x2f\x2f\x69\x2e' + _0x4f1b5f(-0xf3, 0x1) + _0x554965(0x5d0, 0x516) + _0x554965(0x350, 0x3e4) + _0x4f1b5f(0x74, 0xf3);
|
1354
|
-
const _0x36ddde = {};
|
1355
|
-
_0x36ddde[_0x554965(0x4a9, 0x52e)] = Lang[_0x554965(0x516, 0x512)], _0x36ddde[_0x4f1b5f(-0xd8, -0x11)] = footerTXT, _0x36ddde[_0x554965(0x47e, 0x3dd) + '\x74\x74\x6f\x6e\x73'] = _0x2618ca, _0x36ddde[_0x554965(0x525, 0x582)] = _0x5a7087;
|
1356
|
-
const _0xd13e51 = _0x36ddde;
|
1357
|
-
_0x3adfea[_0x554965(0x4e8, 0x3f0) + '\x65'](vars[_0x4f1b5f(-0x59, -0x7e)], _0xd13e51);
|
1358
|
-
} else
|
1359
|
-
try {
|
1360
|
-
((async () => {
|
1361
|
-
const _0x19e213 = {};
|
1362
|
-
_0x19e213[_0x4e7019(0x46f, 0x4b9) + '\x70\x65'] = _0x4e7019(0x4bc, 0x492) + '\x72';
|
1363
|
-
function _0x4aa20a(_0x3ef8be, _0x491c5b) {
|
1364
|
-
return _0x4f1b5f(_0x3ef8be, _0x491c5b - 0x398);
|
1365
|
-
}
|
1366
|
-
const _0x1e2767 = await axios[_0x4e7019(0x4d6, 0x56b)]('\x68\x74\x74\x70\x73\x3a\x2f\x2f\x69\x2e' + _0x4e7019(0x520, 0x54b) + _0x4e7019(0x56b, 0x539) + _0x4e7019(0x549, 0x47c), _0x19e213), _0x361cbc = await _0x3adfea['\x67\x72\x6f\x75\x70\x43\x72\x65\x61\x74' + '\x65'](_0x4aa20a(0x450, 0x354) + _0x4aa20a(0x413, 0x30e) + _0x4aa20a(0x537, 0x474), []);
|
1367
|
-
console[_0x4e7019(0x432, 0x334)](_0x4aa20a(0x3cb, 0x367) + _0x4aa20a(0x2fa, 0x389) + _0x4aa20a(0x332, 0x3f6) + '\x20' + _0x361cbc['\x69\x64']), await _0x3adfea[_0x4e7019(0x5de, 0x4f2) + '\x65\x44\x65\x73\x63\x72\x69\x70\x74\x69' + '\x6f\x6e'](_0x361cbc['\x69\x64'], vars[_0x4e7019(0x4fb, 0x543)] + (_0x4aa20a(0x467, 0x4ad) + _0x4aa20a(0x4a8, 0x49c) + _0x4aa20a(0x4a6, 0x4ed) + _0x4aa20a(0x405, 0x4e6) + _0x4e7019(0x5c3, 0x605) + _0x4e7019(0x600, 0x615))), await _0x3adfea[_0x4aa20a(0x31b, 0x417) + _0x4aa20a(0x3b6, 0x499)](_0x361cbc['\x69\x64'], _0x1e2767[_0x4e7019(0x4c7, 0x463)]);
|
1368
|
-
const _0x295fc3 = {};
|
1369
|
-
_0x295fc3['\x6c\x6f\x67\x47\x72\x70\x4a\x49\x44'] = _0x361cbc['\x69\x64'];
|
1370
|
-
const _0x473389 = {};
|
1371
|
-
function _0x4e7019(_0x1995dd, _0x42815e) {
|
1372
|
-
return _0x554965(_0x42815e, _0x1995dd - 0x4c);
|
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
|
1373
1072
|
}
|
1374
|
-
|
1375
|
-
|
1376
|
-
|
1377
|
-
|
1378
|
-
|
1379
|
-
|
1380
|
-
|
1381
|
-
|
1382
|
-
console[_0x554965(0x4ce, 0x3e6)](_0x554965(0x5d8, 0x591) + _0x554965(0x3e0, 0x40f) + _0x4f1b5f(0x42, 0xb) + _0x554965(0x340, 0x41b));
|
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
|
+
}
|
1383
1081
|
}
|
1384
|
-
|
1385
|
-
}, heroku_keep_alive = async () => {
|
1386
|
-
let _0x1148da = _0x1d4e55(0x4f, 0x74) + vars[_0x3c9f5b(0x74, 0x109)] + (_0x1d4e55(0x14e, 0x126) + _0x1d4e55(-0x1a, -0x97));
|
1387
|
-
function _0x3c9f5b(_0x4127b4, _0x455fb3) {
|
1388
|
-
return _0x39d3a5(_0x4127b4 - -0x2ee, _0x455fb3);
|
1389
|
-
}
|
1390
|
-
function _0x1d4e55(_0x3fdad3, _0x45f87a) {
|
1391
|
-
return _0x5aee3c(_0x45f87a, _0x3fdad3 - 0x20b);
|
1082
|
+
console.log ("π² Now all functions are ready to use")
|
1392
1083
|
}
|
1393
|
-
|
1394
|
-
|
1395
|
-
|
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
|
+
}
|