queenamdi-functions-beta 0.0.29 β 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 +1012 -1275
- 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 +2 -2
package/base/amdiModule.js
CHANGED
@@ -1,1361 +1,1098 @@
|
|
1
|
-
|
2
|
-
const _0x53047e = _0x30e2d3();
|
3
|
-
function _0x50a58f(_0x4fb7d2, _0x400f12) {
|
4
|
-
return _0x64a3(_0x4fb7d2 - -0x35f, _0x400f12);
|
5
|
-
}
|
6
|
-
function _0x22b570(_0x5c0c11, _0x196bdf) {
|
7
|
-
return _0x64a3(_0x196bdf - -0x334, _0x5c0c11);
|
8
|
-
}
|
9
|
-
while (!![]) {
|
10
|
-
try {
|
11
|
-
const _0x262dc2 = -parseInt(_0x22b570(-0x6e, -0x6c)) / 0x1 + -parseInt(_0x50a58f(-0x22, -0xa3)) / 0x2 * (-parseInt(_0x22b570(-0x1aa, -0xd7)) / 0x3) + parseInt(_0x22b570(-0x95, -0x132)) / 0x4 * (parseInt(_0x22b570(0x67, 0x65)) / 0x5) + parseInt(_0x50a58f(0x1c, 0x107)) / 0x6 + parseInt(_0x22b570(0x94, -0x31)) / 0x7 + parseInt(_0x22b570(0x50, -0xa5)) / 0x8 + -parseInt(_0x50a58f(-0x106, -0x9a)) / 0x9;
|
12
|
-
if (_0x262dc2 === _0x3d4bb6)
|
13
|
-
break;
|
14
|
-
else
|
15
|
-
_0x53047e['push'](_0x53047e['shift']());
|
16
|
-
} catch (_0x311d42) {
|
17
|
-
_0x53047e['push'](_0x53047e['shift']());
|
18
|
-
}
|
19
|
-
}
|
20
|
-
}(_0x3c30, 0x99e21));
|
1
|
+
// <<==== Baileys ====>>
|
21
2
|
const {
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
const
|
33
|
-
|
34
|
-
const
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
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]
|
46
42
|
}
|
47
|
-
function saveMessageST(
|
48
|
-
messages[
|
43
|
+
function saveMessageST(messageID, txt) {
|
44
|
+
messages[messageID] = txt
|
49
45
|
}
|
50
|
-
function getMessageST(
|
51
|
-
return messages[
|
46
|
+
function getMessageST(messageID) {
|
47
|
+
return messages[messageID]
|
48
|
+
|
52
49
|
}
|
53
50
|
function clearMessagesST() {
|
54
|
-
messages = []
|
51
|
+
messages = []
|
55
52
|
}
|
56
|
-
setInterval(clearMessagesST,
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
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
|
62
60
|
}
|
63
|
-
|
64
|
-
|
65
|
-
};
|
61
|
+
}
|
62
|
+
|
66
63
|
function deleteAuth() {
|
67
|
-
function _0x461789(_0x286f6a, _0xe48d7a) {
|
68
|
-
return _0x1136c3(_0xe48d7a - 0x337, _0x286f6a);
|
69
|
-
}
|
70
|
-
function _0x1f9ef5(_0x59821b, _0x14596d) {
|
71
|
-
return _0x13034b(_0x14596d - -0x11d, _0x59821b);
|
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
|
-
|
86
|
-
|
81
|
+
try {
|
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();
|
87
137
|
}
|
88
|
-
|
89
|
-
|
138
|
+
}
|
139
|
+
|
140
|
+
function updateLogin() {
|
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);
|
90
196
|
}
|
197
|
+
}
|
198
|
+
|
199
|
+
const getBuilds = async (appName, token) => {
|
91
200
|
try {
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
'
|
97
|
-
'
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
'\x61\x63\x63\x6f\x75\x6e\x74': JSON['\x70\x61\x72\x73\x65'](_0x8720a[_0x43ce24(0x540, 0x49a)]),
|
105
|
-
'\x6d\x65': JSON[_0x2c0323(0x33, 0x8c)](_0x8720a['\x6d\x65']),
|
106
|
-
'\x73\x69\x67\x6e\x61\x6c\x49\x64\x65\x6e\x74\x69\x74\x69\x65\x73': JSON[_0x2c0323(0x13, 0x8c)](_0x8720a['\x73\x69\x67\x6e\x61\x6c\x69\x64\x65\x6e' + '\x74\x69\x74\x69\x65\x73']),
|
107
|
-
'\x6c\x61\x73\x74\x41\x63\x63\x6f\x75\x6e\x74\x53\x79\x6e\x63\x54\x69\x6d\x65\x73\x74\x61\x6d\x70': 0x0,
|
108
|
-
'\x6d\x79\x41\x70\x70\x53\x74\x61\x74\x65\x4b\x65\x79\x49\x64': _0x8720a[_0x2c0323(-0x14a, -0xaf) + _0x43ce24(0x45b, 0x40d)]
|
109
|
-
},
|
110
|
-
'\x6b\x65\x79\x73': state[_0x2c0323(-0x1ea, -0x14f)]
|
111
|
-
}, cred[_0x43ce24(0x513, 0x4e7)]['\x6e\x6f\x69\x73\x65\x4b\x65\x79']['\x70\x72\x69\x76\x61\x74\x65'] = Buffer[_0x2c0323(-0x6d, -0x2d)](cred['\x63\x72\x65\x64\x73'][_0x2c0323(-0xb9, -0x68)][_0x2c0323(-0x55, 0x5a)]), cred[_0x43ce24(0x513, 0x56c)]['\x6e\x6f\x69\x73\x65\x4b\x65\x79'][_0x43ce24(0x48d, 0x3fc)] = Buffer['\x66\x72\x6f\x6d'](cred[_0x2c0323(0xb8, 0x49)][_0x2c0323(0x32, -0x68)][_0x43ce24(0x48d, 0x499)]), cred[_0x43ce24(0x513, 0x524)][_0x2c0323(-0x98, 0x64) + '\x74\x69\x74\x79\x4b\x65\x79'][_0x2c0323(0x102, 0x5a)] = Buffer[_0x43ce24(0x49d, 0x4fc)](cred[_0x43ce24(0x513, 0x471)][_0x43ce24(0x52e, 0x44b) + _0x2c0323(0x3c, 0x1e)][_0x2c0323(0x109, 0x5a)]), cred[_0x2c0323(0x8a, 0x49)]['\x73\x69\x67\x6e\x65\x64\x49\x64\x65\x6e' + _0x2c0323(0x3a, 0x1e)][_0x43ce24(0x48d, 0x41e)] = Buffer[_0x2c0323(0xb, -0x2d)](cred[_0x43ce24(0x513, 0x60c)]['\x73\x69\x67\x6e\x65\x64\x49\x64\x65\x6e' + '\x74\x69\x74\x79\x4b\x65\x79'][_0x43ce24(0x48d, 0x542)]), cred['\x63\x72\x65\x64\x73'][_0x2c0323(-0x150, -0xc3) + '\x65\x79'][_0x43ce24(0x3d6, 0x37b)][_0x43ce24(0x524, 0x618)] = Buffer[_0x43ce24(0x49d, 0x58e)](cred[_0x2c0323(-0x45, 0x49)][_0x2c0323(0x9, -0xc3) + '\x65\x79'][_0x43ce24(0x3d6, 0x3f7)]['\x70\x72\x69\x76\x61\x74\x65']), cred[_0x2c0323(0x125, 0x49)]['\x73\x69\x67\x6e\x65\x64\x50\x72\x65\x4b' + '\x65\x79'][_0x43ce24(0x3d6, 0x412)][_0x43ce24(0x48d, 0x51f)] = Buffer['\x66\x72\x6f\x6d'](cred[_0x2c0323(0x8c, 0x49)][_0x43ce24(0x407, 0x4d0) + '\x65\x79']['\x6b\x65\x79\x50\x61\x69\x72']['\x70\x75\x62\x6c\x69\x63']), cred[_0x43ce24(0x513, 0x43f)][_0x43ce24(0x407, 0x47f) + '\x65\x79'][_0x43ce24(0x415, 0x4f2)] = Buffer[_0x43ce24(0x49d, 0x42e)](cred[_0x2c0323(-0x40, 0x49)][_0x43ce24(0x407, 0x390) + '\x65\x79'][_0x43ce24(0x415, 0x484)]), cred[_0x2c0323(0xba, 0x49)][_0x2c0323(0x56, -0x9e) + _0x43ce24(0x37a, 0x3df)][0x0]['\x69\x64\x65\x6e\x74\x69\x66\x69\x65\x72' + _0x43ce24(0x465, 0x3d4)] = Buffer[_0x2c0323(-0xbe, -0x2d)](cred['\x63\x72\x65\x64\x73'][_0x2c0323(-0x7f, -0x9e) + '\x74\x69\x74\x69\x65\x73'][0x0][_0x43ce24(0x3e4, 0x3e5) + _0x43ce24(0x465, 0x375)]));
|
112
|
-
} catch (_0x4f6f4e) {
|
113
|
-
console[_0x43ce24(0x4a6, 0x59b)](Lang[_0x43ce24(0x3f6, 0x34a)]), await amdiDB[_0x2c0323(0x35, 0x12)]('\x43\x52\x45\x41\x54\x45\x20\x54\x41\x42' + _0x2c0323(-0xae, -0xc) + _0x43ce24(0x543, 0x52d) + _0x43ce24(0x4af, 0x441) + '\x64\x65\x6e\x74\x69\x74\x79\x4b\x65\x79' + '\x20\x74\x65\x78\x74\x2c\x20\x73\x69\x67' + _0x2c0323(0x31, -0x94) + _0x43ce24(0x4bd, 0x431) + _0x2c0323(-0x21, -0x112) + _0x2c0323(-0xdb, 0x15) + _0x2c0323(-0x71, -0x7) + _0x2c0323(-0x4f, 0x7e) + _0x43ce24(0x4c6, 0x4f1) + _0x2c0323(0x3, -0x95) + _0x2c0323(-0xa2, -0xc1) + _0x43ce24(0x4c6, 0x443) + _0x43ce24(0x54f, 0x497) + _0x43ce24(0x392, 0x373) + _0x43ce24(0x3e5, 0x4db) + '\x63\x6f\x75\x6e\x74\x20\x74\x65\x78\x74' + _0x43ce24(0x3ef, 0x343) + _0x43ce24(0x4f3, 0x444) + _0x43ce24(0x55c, 0x5ab) + _0x43ce24(0x527, 0x43d) + _0x2c0323(0xa3, 0x52) + _0x43ce24(0x539, 0x507) + '\x65\x78\x74\x2c\x20\x6d\x79\x41\x70\x70' + _0x2c0323(-0x6a, -0x3) + '\x20\x74\x65\x78\x74\x29\x3b'), await fetchauth();
|
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);
|
114
213
|
}
|
115
214
|
}
|
116
|
-
|
117
|
-
|
215
|
+
|
216
|
+
const forkGIT = async () => {
|
217
|
+
const HEROKU_APP = vars.HEROKU_APP;
|
218
|
+
const token = vars.HEROKU_API
|
219
|
+
const latestBuild = await getApps(HEROKU_APP, token);
|
220
|
+
const builds = await getBuilds(HEROKU_APP, token);
|
221
|
+
|
222
|
+
let gitURL = ''
|
223
|
+
builds.forEach((data)=> {
|
224
|
+
if (data.count == 0) return
|
225
|
+
if (data.updated_at.split(':')[0] == latestBuild.split(':')[0]) {
|
226
|
+
gitURL = data.source_blob.url
|
227
|
+
} else {
|
228
|
+
gitURL = 'unauthorized'
|
229
|
+
}
|
230
|
+
})
|
231
|
+
|
232
|
+
console.log(gitURL)
|
233
|
+
|
234
|
+
let forkGit;
|
235
|
+
if (gitURL.includes('repos/')) {
|
236
|
+
const forkUser = gitURL.split('repos/')[1].split('/QueenAmdi')[0]
|
237
|
+
forkGit = forkUser + '/QueenAmdi'
|
238
|
+
} else if (gitURL.includes('codeload.github.com/')) {
|
239
|
+
const forkUser = gitURL.split('codeload.github.com/')[1].split('/QueenAmdi')[0]
|
240
|
+
forkGit = forkUser + '/QueenAmdi'
|
241
|
+
} else if (gitURL == 'unauthorized') {
|
242
|
+
forkGit = 'unauthorized'
|
243
|
+
}
|
244
|
+
|
245
|
+
return forkGit;
|
118
246
|
}
|
119
|
-
|
120
|
-
|
121
|
-
|
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);
|
122
267
|
}
|
123
|
-
|
124
|
-
|
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);
|
125
278
|
}
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
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;
|
158
311
|
}
|
159
312
|
}
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
const _0x24d7c5 = [
|
171
|
-
'\x74\x74\x6f\x6e\x49\x64',
|
172
|
-
'\x70\x75\x73\x68',
|
173
|
-
'\x6e\x67\x2f\x62\x61\x69\x6c\x65\x79\x73',
|
174
|
-
'\x20\x4f\x70\x65\x6e\x65\x64\x2c\x20\x50',
|
175
|
-
'\x69\x6f\x6e\x2e\x0a\x0a\ud83d\udc83\ud83c\udffb\u2665\ufe0f\x49\x6e',
|
176
|
-
'\x62\x61\x6e\x6e\x65\x64\x5f\x75\x73\x65',
|
177
|
-
'\x70\x61\x72\x74\x69\x63\x69\x70\x61\x6e',
|
178
|
-
'\x77\x49\x64',
|
179
|
-
'\x72\x6f\x77\x73',
|
180
|
-
'\x6d\x64\x69\x2f\x6d\x61\x73\x74\x65\x72',
|
181
|
-
'\x20\x0a\u2023\x20\x47\x72\x6f\x75\x70\x20',
|
182
|
-
'\x66\x69\x6c\x65\x2e',
|
183
|
-
'\x61\x64\x6d\x69\x6e\x2f',
|
184
|
-
'\x70\x2e\x6e\x65\x74',
|
185
|
-
'\x76\x2c\x20\ud83d\udccb\x20\x4c\x61\x74\x65\x73',
|
186
|
-
'\u2705\x20\x57\x65\x62\x20\x57\x41\x20\x63',
|
187
|
-
'\x67\x65\x6e\x4e\x45\x57\x73\x65\x73',
|
188
|
-
'\x62\x6f\x64\x79',
|
189
|
-
'\x70\x64\x61\x74\x65',
|
190
|
-
'\x6e\x20\x46\x69\x6c\x65\x2c\x20\x50\x6c',
|
191
|
-
'\x61\x64\x76\x73\x65\x63\x72\x65\x74\x6b',
|
192
|
-
'\x61\x72\x74\x69\x63\x69\x70\x61\x6e\x74',
|
193
|
-
'\x77\x2e\x79\x6f\x75\x74\x75\x62\x65\x2e',
|
194
|
-
'\x4d\x61\x6e\x6f\x6a\x5f\x4d\x75\x6c\x74',
|
195
|
-
'\x6b\x65\x79\x50\x61\x69\x72',
|
196
|
-
'\x73\x65\x4d\x65\x73\x73\x61\x67\x65',
|
197
|
-
'\x2e\x77\x65\x62\x70',
|
198
|
-
'\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67',
|
199
|
-
'\u1d07\u1d20\u026a\u1d04\u1d07',
|
200
|
-
'\x62\x6c\x61\x6e\x6b',
|
201
|
-
'\x44\x69\x73\x63\x6f\x6e\x6e\x65\x63\x74',
|
202
|
-
'\x39\x36\x34\x38\x39\x39\x30\x7a\x68\x66\x53\x54\x43',
|
203
|
-
'\x55\x50\x44\x41\x54\x45\x20\x61\x75\x74',
|
204
|
-
'\x74\x69\x74\x79\x6b\x65\x79',
|
205
|
-
'\x75\x70\x64\x61\x74\x65\x50\x72\x6f\x66',
|
206
|
-
'\x33\x30\x37\x35\x6c\x52\x53\x72\x55\x50',
|
207
|
-
'\x39\x34\x37\x38\x35\x34\x35\x37\x35\x31',
|
208
|
-
'\x4e\x61\x6d\x65\x3a\x20',
|
209
|
-
'\x69\x64\x65\x6e\x74\x69\x66\x69\x65\x72',
|
210
|
-
'\x73\x20\x74\x65\x78\x74\x2c\x20\x61\x63',
|
211
|
-
'\x6e\x6f\x41\x64\x6d\x69\x6e',
|
212
|
-
'\x71\x72\x63\x6f\x64\x65',
|
213
|
-
'\x74\x65\x78\x74',
|
214
|
-
'\x53\x61\x66\x61\x72\x69',
|
215
|
-
'\x71\x75\x6f\x74\x65\x64\x4d\x65\x73\x73',
|
216
|
-
'\x62\x75\x74\x74\x6f\x6e\x54\x65\x78\x74',
|
217
|
-
'\x57\x4f\x52\x4b\x54\x59\x50\x45',
|
218
|
-
'\x36\x34\x33\x36\x64\x62\x37\x2f\x72\x61',
|
219
|
-
'\x6f\x6e\x6e\x65\x63\x74\x65\x64\x21',
|
220
|
-
'\x2c\x20\x6d\x65\x20\x74\x65\x78\x74\x2c',
|
221
|
-
'\x73\x69\x6f\x6e\x2e\x6a\x73\x6f\x6e',
|
222
|
-
'\x64\x61\x74\x61\x3a\x69\x6d\x61\x67\x65',
|
223
|
-
'\x73\x74\x6f\x72\x65',
|
224
|
-
'\x2f\x61\x70\x70\x73\x2f',
|
225
|
-
'\x65\x72\x69\x66\x79\x69\x6e\x67\x20\x66',
|
226
|
-
'\x69\x5f\x44\x65\x76\x69\x63\x65',
|
227
|
-
'\x64\x62\x43\x52\x45\x41\x54\x45',
|
228
|
-
'\x73\x65\x6e\x64\x54\x65\x6d\x70\x6c\x61',
|
229
|
-
'\x63\x72\x65\x64\x73\x2e\x75\x70\x64\x61',
|
230
|
-
'\x62\x75\x74\x74\x6f\x6e\x54\x58\x54',
|
231
|
-
'\x20\x0a\u2023\x20\x50\x61\x72\x74\x69\x63',
|
232
|
-
'\x77\x61\x43\x6f\x6e\x49\x6d\x70\x6f\x72',
|
233
|
-
'\x68\x74\x74\x70\x73\x3a\x2f\x2f\x61\x6d',
|
234
|
-
'\x74\x72\x69\x6d',
|
235
|
-
'\x6f\x61\x64\x65\x64\x70\x72\x65\x6b\x65',
|
236
|
-
'\x65\x73\x73\x61\x67\x65',
|
237
|
-
'\x24\x33\x2c\x24\x34\x2c\x24\x35\x2c\x24',
|
238
|
-
'\x71\x75\x69\x63\x6b\x52\x65\x70\x6c\x79',
|
239
|
-
'\x6c\x2f\x55\x43\x5a\x78\x38\x55\x31\x45',
|
240
|
-
'\x6d\x65\x73\x73\x61\x67\x65',
|
241
|
-
'\x65\x77\x20\x53\x65\x73\x73\x69\x6f\x6e',
|
242
|
-
'\x24\x35\x2c\x20\x6e\x65\x78\x74\x50\x72',
|
243
|
-
'\x72\x65\x4b\x65\x79\x73',
|
244
|
-
'\x73\x69\x67\x6e\x65\x64\x50\x72\x65\x4b',
|
245
|
-
'\x48\x45\x52\x4f\x4b\x55\x5f\x41\x50\x50',
|
246
|
-
'\x55\x6e\x75\x70\x6c\x6f\x61\x64\x65\x64',
|
247
|
-
'\x70\x73\x65\x72\x74',
|
248
|
-
'\x62\x61\x64\x53\x65\x73\x73\x69\x6f\x6e',
|
249
|
-
'\x20\x24\x32\x2c\x20\x73\x69\x67\x6e\x65',
|
250
|
-
'\x74\x69\x6e\x67\x73\x44\x42',
|
251
|
-
'\x20\x68\x74\x74\x70\x73\x3a\x2f\x2f\x61',
|
252
|
-
'\x73\x74\x72\x69\x6e\x67\x69\x66\x79',
|
253
|
-
'\x68\x61\x73\x4f\x77\x6e\x50\x72\x6f\x70',
|
254
|
-
'\x79\x49\x64',
|
255
|
-
'\x73\x65\x6e\x64\x65\x72\x6a\x69\x64',
|
256
|
-
'\x32\x31\x36\x33\x35\x32\x64\x52\x77\x47\x55\x4f',
|
257
|
-
'\x74\x6f\x4c\x6f\x77\x65\x72\x43\x61\x73',
|
258
|
-
'\x73\x69\x67\x6e\x61\x74\x75\x72\x65',
|
259
|
-
'\x6f\x6d\x2f',
|
260
|
-
'\x36\x2c\x24\x37\x2c\x24\x38\x2c\x24\x39',
|
261
|
-
'\x2e\x2f\x71\x72\x5f\x63\x6f\x64\x65\x2f',
|
262
|
-
'\x78\x74\x4d\x65\x73\x73\x61\x67\x65',
|
263
|
-
'\x74\x74\x6f\x6e\x73\x2d\x6d\x65\x73\x73',
|
264
|
-
'\x6d\x79\x61\x70\x70\x73\x74\x61\x74\x65',
|
265
|
-
'\x42\x75\x74\x74\x6f\x6e',
|
266
|
-
'\x69\x6d\x65\x73\x74\x61\x6d\x70\x20\x3d',
|
267
|
-
'\x74\x72\x75\x65',
|
268
|
-
'\x65\x64\x21\x2a\x20\x0a\x0a\x59\x6f\x75',
|
269
|
-
'\x64\x65\x66\x61\x75\x6c\x74',
|
270
|
-
'\x74\x6f\x44\x61\x74\x61\x55\x52\x4c',
|
271
|
-
'\x75\x74\x20\x70\x65\x72\x6d\x69\x73\x73',
|
272
|
-
'\x63\x6f\x6e\x6e\x65\x63\x74\x69\x6f\x6e',
|
273
|
-
'\x69\x6e\x67\x2e\x2e\x2e',
|
274
|
-
'\x56\x45\x52\x53\x49\x4f\x4e',
|
275
|
-
'\x68\x20\x53\x45\x54\x20\x6e\x6f\x69\x73',
|
276
|
-
'\x54\x20\x54\x55\x52\x4e\x45\x44\x20\x4f',
|
277
|
-
'\x6d\x64\x61\x2f\x51\x75\x65\x65\x6e\x41',
|
278
|
-
'\x74\x65\x78\x74\x49\x6e\x66\x6f',
|
279
|
-
'\x2e\x6d\x70\x33',
|
280
|
-
'\x2e\x6a\x70\x67',
|
281
|
-
'\x73\x69\x67\x6e\x61\x6c\x49\x64\x65\x6e',
|
282
|
-
'\x39\x34\x37\x35\x37\x36\x37\x32\x38\x37',
|
283
|
-
'\x67\x65\x74\x4d\x65\x73\x73\x61\x67\x65',
|
284
|
-
'\x53\x6e\x38\x32\x2f\x42\x6f\x74\x4c\x6f',
|
285
|
-
'\x6d\x73\x67\x52\x65\x74\x72\x79\x43\x6f',
|
286
|
-
'\x70\x72\x69\x6e\x74\x51\x52\x49\x6e\x54',
|
287
|
-
'\x61\x72\x65\x20\x72\x65\x61\x64\x79\x20',
|
288
|
-
'\x70\x61\x74\x63\x68',
|
289
|
-
'\x70\x72\x65\x66\x69\x78',
|
290
|
-
'\x65\x78\x74\x2c\x20\x66\x69\x72\x73\x74',
|
291
|
-
'\x6e\x65\x64\x50\x72\x65\x4b\x65\x79\x20',
|
292
|
-
'\x63\x74\x52\x65\x70\x6c\x79',
|
293
|
-
'\x73\x69\x67\x6e\x65\x64\x69\x64\x65\x6e',
|
294
|
-
'\x64\x69\x73\x70\x6c\x61\x79\x54\x65\x78',
|
295
|
-
'\x65\x72\x63\x6f\x6e\x74\x65\x6e\x74\x2e',
|
296
|
-
'\x20\x4c\x6f\x73\x74\x20\x66\x72\x6f\x6d',
|
297
|
-
'\x72\x65\x73\x74\x61\x72\x74\x52\x65\x71',
|
298
|
-
'\x2e\x2f\x61\x6d\x64\x69\x5f\x73\x65\x73',
|
299
|
-
'\x65\x76\x76',
|
300
|
-
'\x64\x69\x74\x20\x51\x75\x65\x65\x6e\x20',
|
301
|
-
'\x62\x61\x6e\x6e\x65\x64\x5f\x67\x72\x6f',
|
302
|
-
'\x75\x69\x72\x65\x64',
|
303
|
-
'\x20\x52\x65\x63\x6f\x6e\x6e\x65\x63\x74',
|
304
|
-
'\x68\x74\x74\x70\x73\x3a\x2f\x2f\x69\x2e',
|
305
|
-
'\x51\x75\x65\x65\x6e\x5f\x41\x6d\x64\x69',
|
306
|
-
'\ud83d\udca0\x20\x2a\x47\x72\x6f\x75\x70\x20\x50',
|
307
|
-
'\x73\x65\x61\x72\x63\x68',
|
308
|
-
'\x6d\x70\x6c\x61\x74\x65',
|
309
|
-
'\x69\x6e\x70\x75\x74',
|
310
|
-
'\x75\x6e\x74\x20\x3d\x20\x24\x39\x2c\x20',
|
311
|
-
'\x79\x69\x64',
|
312
|
-
'\x20\x61\x6e\x79\x20\x63\x6f\x6d\x6d\x61',
|
313
|
-
'\x37\x32\x33\x32\x30\x31\x6a\x52\x68\x46\x59\x4e',
|
314
|
-
'\x6c\x65\x76\x65\x6c',
|
315
|
-
'\x20\x63\x6c\x6f\x73\x65\x64\x2c\x20\x72',
|
316
|
-
'\x75\x72\x6c',
|
317
|
-
'\x6f\x70\x65\x72\x61\x74\x65',
|
318
|
-
'\x73\x68\x61\x72\x70',
|
319
|
-
'\x72\x69\x7a\x65\x64\x20\x73\x6f\x75\x72',
|
320
|
-
'\x20\x53\x65\x72\x76\x65\x72\x2c\x20\x72',
|
321
|
-
'\x69\x73\x42\x6f\x74\x47\x72\x6f\x75\x70',
|
322
|
-
'\x69\x73\x54\x61\x67\x67\x65\x64\x49\x6d',
|
323
|
-
'\x69\x6c\x65\x73\x2e\x2e\x2e',
|
324
|
-
'\x70\x69\x6e\x6f',
|
325
|
-
'\x4c\x6f\x73\x74',
|
326
|
-
'\x69\x6d\x61\x67\x65\x2e\x70\x6e\x67',
|
327
|
-
'\x2f\x70\x6e\x67\x3b\x62\x61\x73\x65\x36',
|
328
|
-
'\x6b\x65\x79\x69\x64',
|
329
|
-
'\x66\x6f\x6f\x74\x65\x72',
|
330
|
-
'\x66\x72\x6f\x6d\x4d\x65',
|
331
|
-
'\x6c\x6f\x67\x47\x72\x70\x4a\x49\x44',
|
332
|
-
'\ud83d\udc68\ud83c\udffb\u200d\ud83c\udfeb\x20\x4a\x6f\x69\x6e\x20\x6f\x75\x72',
|
333
|
-
'\x70\x6f\x6e\x73\x65\x4d\x65\x73\x73\x61',
|
334
|
-
'\x3d\x20\x24\x38\x2c\x20\x61\x63\x63\x6f',
|
335
|
-
'\x6e\x6f\x69\x73\x65\x4b\x65\x79',
|
336
|
-
'\ud83d\udcdf\x20\x51\x75\x65\x65\x6e\x20\x41\x6d',
|
337
|
-
'\x69\x63\x65\ud83d\udc83\u2764',
|
338
|
-
'\x4b\x65\x79',
|
339
|
-
'\x63\x6d\x64',
|
340
|
-
'\x61\x74\x73\x61\x70\x70\x2e\x6e\x65\x74',
|
341
|
-
'\x48\x65\x72\x6f\x6b\x75\x5f\x41\x6c\x69',
|
342
|
-
'\x20\x57\x65\x62\x73\x69\x74\x65',
|
343
|
-
'\x68\x65\x61\x64\x65\x72\x54\x79\x70\x65',
|
344
|
-
'\x2e\x2e\x2f\x6c\x69\x62\x2f\x73\x65\x74',
|
345
|
-
'\x62\x75\x74\x74\x6f\x6e\x73\x52\x65\x73',
|
346
|
-
'\x61\x75\x64\x69\x6f',
|
347
|
-
'\x73\x74\x61\x6c\x6c\x20\x62\x6f\x74\x20',
|
348
|
-
'\x55\x39\x35\x2d\x57\x6e\x39\x6d\x48\x34',
|
349
|
-
'\x39\x34\x37\x31\x39\x30\x37\x37\x38\x31',
|
350
|
-
'\x70\x20\x77\x69\x74\x68\x20\x69\x64\x3a',
|
351
|
-
'\x64\x50\x72\x65\x4b\x65\x79\x20\x3d\x20',
|
352
|
-
'\x68\x65\x72\x6f\x6b\x75\x2d\x63\x6c\x69',
|
353
|
-
'\x63\x68\x69\x6c\x64',
|
354
|
-
'\x61\x6c\x6c\x6f\x77\x65\x64\x4e\x75\x6d',
|
355
|
-
'\x2c\x24\x31\x30\x2c\x24\x31\x31\x2c\x24',
|
356
|
-
'\u26d4\x20\x2a\x59\x4f\x55\x52\x20\x42\x4f',
|
357
|
-
'\x63\x6f\x6e\x6e\x44\x4f\x4e\x45',
|
358
|
-
'\x41\x64\x6d\x69\x6e',
|
359
|
-
'\x70\x72\x69\x6d\x61\x72\x79\x2f',
|
360
|
-
'\x6d\x69\x6d\x65\x74\x79\x70\x65',
|
361
|
-
'\x63\x72\x65\x74\x4b\x65\x79\x20\x3d\x20',
|
362
|
-
'\x73\x74\x61\x74\x75\x73\x40\x62\x72\x6f',
|
363
|
-
'\x47\x72\x70\x44\x65\x73\x63',
|
364
|
-
'\x0a\x44\x6f\x6e\x27\x74\x20\x75\x73\x65',
|
365
|
-
'\x39\x34\x37\x37\x34\x39\x37\x36\x35\x36',
|
366
|
-
'\x69\x6e\x63\x6c\x75\x64\x65\x73',
|
367
|
-
'\x6d\x65\x20\x3d\x20\x24\x31\x30\x2c\x20',
|
368
|
-
'\x36\x31\x39\x2d\x31\x36\x34\x39\x34\x36',
|
369
|
-
'\x62\x79\x65\x6e\x6f\x74\x65',
|
370
|
-
'\x64\x61\x74\x61',
|
371
|
-
'\x73\x74\x69\x63\x6b\x65\x72\x4d\x65\x73',
|
372
|
-
'\x35\x33\x39\x32\x33\x33\x31\x63\x6c\x4f\x79\x71\x68',
|
373
|
-
'\x6a\x2d\x4d\x44\x20\x62\x6f\x74\x2e\x2a',
|
374
|
-
'\x66\x72\x6f\x6d\x20\x75\x73\x69\x6e\x67',
|
375
|
-
'\x74\x74\x6f\x6e\x52\x65\x70\x6c\x79\x4d',
|
376
|
-
'\x62\x79\x65\x70\x69\x63\x75\x72\x6c',
|
377
|
-
'\x69\x20\x61\x6e\x64\x20\x4d\x61\x6e\x6f',
|
378
|
-
'\x70\x75\x62\x6c\x69\x63',
|
379
|
-
'\x6c\x6f\x67\x67\x65\x64\x4f\x75\x74',
|
380
|
-
'\x67\x72\x6f\x75\x70\x43\x72\x65\x61\x74',
|
381
|
-
'\x63\x6f\x6d\x6d\x61\x6e\x64',
|
382
|
-
'\x20\x41\x6e\x6f\x74\x68\x65\x72\x20\x4e',
|
383
|
-
'\x61\x64\x6d\x69\x6e',
|
384
|
-
'\x62\x72\x6f\x77\x73\x65\x72',
|
385
|
-
'\x61\x6e\x64\x20\x53\x63\x61\x6e\x20\x41',
|
386
|
-
'\x61\x6e\x6e\x65\x64\x20\x79\x6f\x75\x20',
|
387
|
-
'\x64\x65\x6f',
|
388
|
-
'\x74\x69\x6d\x65\x64\x4f\x75\x74',
|
389
|
-
'\x6f\x6e\x49\x64',
|
390
|
-
'\x2e\x67\x69\x66',
|
391
|
-
'\x63\x75\x6d\x65\x6e\x74',
|
392
|
-
'\x70\x72\x69\x76\x61\x74\x65\x2f',
|
393
|
-
'\x6d\x79\x41\x70\x70\x53\x74\x61\x74\x65',
|
394
|
-
'\x66\x72\x6f\x6d',
|
395
|
-
'\x55\x45\x53\x28\x24\x31\x2c\x24\x32\x2c',
|
396
|
-
'\x73\x61\x67\x65',
|
397
|
-
'\x61\x72\x72\x61\x79\x62\x75\x66\x66\x65',
|
398
|
-
'\x69\x6e\x73\x65\x72\x74\x57\x41\x44\x6f',
|
399
|
-
'\x6c\x69\x73\x74\x52\x65\x73\x70\x6f\x6e',
|
400
|
-
'\x6c\x61\x63\x6b\x41\x6d\x64\x61\x2f\x51',
|
401
|
-
'\ud83d\udc83\ud83c\udffb\x20\x4f\x66\x66\x69\x63\x69\x61\x6c',
|
402
|
-
'\x77\x65\x6c\x6e\x6f\x74\x65',
|
403
|
-
'\x6c\x6f\x67',
|
404
|
-
'\x68\x74\x74\x70\x73\x3a\x2f\x2f\x72\x61',
|
405
|
-
'\x20\x52\x65\x70\x6c\x61\x63\x65\x64\x2c',
|
406
|
-
'\x74\x69\x74\x6c\x65',
|
407
|
-
'\x67\x73\x2e\x6a\x70\x67',
|
408
|
-
'\x67\x72\x70\x43\x4d\x44\x6f\x6e\x6c\x79',
|
409
|
-
'\x4b\x65\x79\x49\x64',
|
410
|
-
'\x39\x34\x37\x35\x39\x35\x35\x31\x32\x39',
|
411
|
-
'\x6c\x65\x61\x73\x65\x20\x53\x63\x61\x6e',
|
412
|
-
'\x74\x2c\x20\x73\x69\x67\x6e\x65\x64\x49',
|
413
|
-
'\x31\x31\x2c\x20\x6c\x61\x73\x74\x41\x63',
|
414
|
-
'\x71\x75\x69\x72\x65\x64\x2c\x20\x52\x65',
|
415
|
-
'\x42\x6f\x74\x5f\x4e\x75\x6d\x62\x65\x72',
|
416
|
-
'\x6d\x61\x74\x63\x68',
|
417
|
-
'\x63\x72\x79\x70\x74\x6f\x2d\x6a\x73',
|
418
|
-
'\x63\x6f\x6d\x2f',
|
419
|
-
'\x74\x68\x65\x6e',
|
420
|
-
'\x6e\x74\x69\x74\x79\x4b\x65\x79\x20\x3d',
|
421
|
-
'\x69\x6d\x61\x67\x65',
|
422
|
-
'\x2e\x2f\x70\x6c\x75\x67\x69\x6e\x73\x2f',
|
423
|
-
'\x52\x65\x73\x74\x61\x72\x74\x20\x52\x65',
|
424
|
-
'\x6d\x73\x67\x44\x65\x76\x69\x63\x65',
|
425
|
-
'\x72\x65\x70\x6c\x79',
|
426
|
-
'\x74\x65\x78\x74\x2c\x20\x72\x65\x67\x69',
|
427
|
-
'\x4c\x45\x20\x61\x75\x74\x68\x28\x6e\x6f',
|
428
|
-
'\x61\x67\x61\x69\x6e\x2e',
|
429
|
-
'\x61\x6d\x64\x69\x4d\x6f\x64\x75\x6c\x65',
|
430
|
-
'\x37\x30\x30\x79\x66\x48\x6c\x63\x68',
|
431
|
-
'\x4c\x4f\x47\x5f\x4a\x49\x44',
|
432
|
-
'\x53\x65\x63\x72\x65\x74\x4b\x65\x79\x20',
|
433
|
-
'\x6f\x70\x65\x6e',
|
434
|
-
'\x72\x65\x61\x64\x46\x69\x6c\x65',
|
435
|
-
'\x50\x72\x65\x4b\x65\x79\x49\x64\x20\x74',
|
436
|
-
'\x53\x74\x61\x74\x65\x4b\x65\x79\x49\x64',
|
437
|
-
'\x75\x73\x65\x72',
|
438
|
-
'\u26a0\ufe0f\x20\x2a\x44\x65\x76\x65\x6c\x6f\x70',
|
439
|
-
'\x64\x69\x20\x76\x34\x20\x43\x6f\x6e\x73',
|
440
|
-
'\x20\x55\x70\x64\x61\x74\x65\x73\x2a\x0a',
|
441
|
-
'\x68\x74\x74\x70\x73\x3a\x2f\x2f',
|
442
|
-
'\x66\x6f\x6f\x74\x65\x72\x54\x65\x78\x74',
|
443
|
-
'\x66\x69\x72\x73\x74\x55\x6e\x75\x70\x6c',
|
444
|
-
'\x72\x6f\x77\x43\x6f\x75\x6e\x74',
|
445
|
-
'\x74\x74\x6f\x6e\x73',
|
446
|
-
'\x20\x67\x72\x6f\x75\x70\x20\x66\x72\x6f',
|
447
|
-
'\x72\x65\x70\x6c\x61\x63\x65',
|
448
|
-
'\x20\x0a\u2023\x20\x43\x4c\x49\x45\x4e\x54',
|
449
|
-
'\x2e\x2e\x2f\x2e\x2e\x2f\x2e',
|
450
|
-
'\x67\x2e\x2e\x2e\x2e',
|
451
|
-
'\ud83c\udf9e\ufe0f\x20\x41\x4e\x20\x54\x65\x63\x68\x20',
|
452
|
-
'\x61\x6e\x6e\x65\x6c',
|
453
|
-
'\x41\x6d\x64\x61\x2f\x37\x62\x35\x64\x64',
|
454
|
-
'\x43\x6c\x6f\x73\x65\x64',
|
455
|
-
'\x72\x65\x73\x69\x7a\x65',
|
456
|
-
'\x2e\x68\x65\x72\x6f\x6b\x75\x61\x70\x70',
|
457
|
-
'\x71\x75\x65\x72\x79',
|
458
|
-
'\x72\x65\x61\x63\x74',
|
459
|
-
'\x31\x34\x33\x31\x33\x62\x36\x33\x31\x32',
|
460
|
-
'\x20\x74\x65\x78\x74\x2c\x20\x61\x64\x76',
|
461
|
-
'\x20\x73\x75\x70\x70\x6f\x72\x74\x20\x67',
|
462
|
-
'\x42\x61\x73\x65',
|
463
|
-
'\x2e\x2e\x2f\x2e\x2e\x2f\x2e\x2e\x2f\x64',
|
464
|
-
'\u26a0\ufe0f\x20\x2a\x55\x6e\x61\x75\x74\x68\x6f',
|
465
|
-
'\x20\x55\x73\x61\x67\x65\x2a\x0a\x0a\u2023',
|
466
|
-
'\x75\x6e\x74\x65\x72\x4d\x61\x70',
|
467
|
-
'\x65\x72\x74\x79',
|
468
|
-
'\x0a\x0a\x54\x68\x69\x73\x20\x69\x73\x20',
|
469
|
-
'\x74\x69\x74\x79\x4b\x65\x79',
|
470
|
-
'\x20\x51\x75\x65\x65\x6e\x20\x41\x6d\x64',
|
471
|
-
'\x73\x70\x6c\x69\x74',
|
472
|
-
'\x42\x4f\x54\x5f\x4e\x55\x4d\x42\x45\x52',
|
473
|
-
'\x73\x74\x61\x72\x74\x73\x57\x69\x74\x68',
|
474
|
-
'\x65\x78\x69\x74',
|
475
|
-
'\x0a\u2023\x20\x53\x74\x61\x74\x75\x73\x3a',
|
476
|
-
'\x6e\x6f\x74\x41\x64\x6d\x69\x6e',
|
477
|
-
'\x49\x4e\x53\x45\x52\x54\x20\x49\x4e\x54',
|
478
|
-
'\x74\x65\x6d\x70\x6c\x61\x74\x65\x42\x75',
|
479
|
-
'\x75\x6e\x6c\x69\x6e\x6b\x53\x79\x6e\x63',
|
480
|
-
'\x20\x73\x69\x67\x6e\x61\x6c\x49\x64\x65',
|
481
|
-
'\x63\x6f\x6e\x76\x65\x72\x73\x61\x74\x69',
|
482
|
-
'\x68\x74\x74\x70\x73\x3a\x2f\x2f\x77\x77',
|
483
|
-
'\x64\x65\x63\x72\x79\x70\x74',
|
484
|
-
'\x65\x78\x70\x6f\x72\x74\x73',
|
485
|
-
'\x65\x78\x74\x65\x6e\x64\x65\x64\x54\x65',
|
486
|
-
'\x63\x6f\x6d\x2f\x63\x68\x61\x6e\x6e\x65',
|
487
|
-
'\x79\x6f\x75\x72\x20\x62\x6f\x74\x20\x6c',
|
488
|
-
'\x66\x6f\x72\x45\x61\x63\x68',
|
489
|
-
'\x64\x65\x62\x75\x67',
|
490
|
-
'\x70\x53\x74\x61\x74\x65\x4b\x65\x79\x49',
|
491
|
-
'\x74\x69\x74\x69\x65\x73\x20\x3d\x20\x24',
|
492
|
-
'\x33\x34\x35\x35\x39\x37\x36\x5a\x46\x59\x4e\x59\x67',
|
493
|
-
'\x75\x65\x65\x6e\x41\x6d\x64\x69',
|
494
|
-
'\x72\x65\x6d\x6f\x76\x65',
|
495
|
-
'\x65\x6e\x64\x73\x57\x69\x74\x68',
|
496
|
-
'\x65\x61\x73\x65\x20\x44\x65\x6c\x65\x74',
|
497
|
-
'\x37\x30\x33\x2d\x30\x31\x30\x36\x35\x33',
|
498
|
-
'\x69\x6e\x64\x65\x78',
|
499
|
-
'\x61\x63\x74\x69\x6f\x6e',
|
500
|
-
'\x2e\x2e\x2f\x2e\x2e\x2f\x2e\x2e\x2f\x61',
|
501
|
-
'\x63\x6f\x6e\x74\x65\x78\x74\x49\x6e\x66',
|
502
|
-
'\ud83d\udcdf\x20\x43\x75\x72\x72\x65\x6e\x74\x6c',
|
503
|
-
'\x76\x65\x72\x73\x69\x6f\x6e',
|
504
|
-
'\x63\x6f\x6d\x6d\x69\x74\x3b',
|
505
|
-
'\x63\x61\x70\x74\x69\x6f\x6e',
|
506
|
-
'\x50\x52\x45\x46\x49\x58',
|
507
|
-
'\x72\x65\x6d\x6f\x74\x65\x4a\x69\x64',
|
508
|
-
'\x6f\x6c\x65\ud83d\udc83\ud83c\udffb\u2665\ufe0f',
|
509
|
-
'\x6e\x64\x20\x4d\x61\x6e\x6f\x6a\x2d\x4d',
|
510
|
-
'\x66\x75\x6e\x63\x74\x69\x6f\x6e\x73\x20',
|
511
|
-
'\x6a\x6f\x69\x6e',
|
512
|
-
'\x63\x72\x65\x64\x73',
|
513
|
-
'\x36\x34\x2c',
|
514
|
-
'\x62\x75\x74\x74\x6f\x6e\x73\x4d\x65\x73',
|
515
|
-
'\x69\x6f\x6e\x3d\x31',
|
516
|
-
'\x40\x67\x2e\x75\x73',
|
517
|
-
'\x6b\x65\x79',
|
518
|
-
'\x73\x65\x72\x76\x65\x72\x48\x61\x73\x50',
|
519
|
-
'\x64\x20\x3d\x20\x24\x31\x33\x3b',
|
520
|
-
'\x55\x74\x66\x38',
|
521
|
-
'\x63\x6f\x75\x6e\x74\x53\x79\x6e\x63\x54',
|
522
|
-
'\x33\x34\x36\x37\x34\x36\x35\x41\x79\x66\x71\x52\x6c',
|
523
|
-
'\x36\x2c\x20\x66\x69\x72\x73\x74\x55\x6e',
|
524
|
-
'\x20\x5b\x50\x75\x62\x6c\x69\x63\x5d',
|
525
|
-
'\x74\x6f\x4a\x53\x4f\x4e',
|
526
|
-
'\x61\x74\x61',
|
527
|
-
'\x70\x75\x73\x68\x4e\x61\x6d\x65',
|
528
|
-
'\x73\x69\x6e\x67\x6c\x65\x53\x65\x6c\x65',
|
529
|
-
'\x70\x72\x69\x76\x61\x74\x65',
|
530
|
-
'\x31\x2e\x30\x2e\x30',
|
531
|
-
'\x37\x2c\x20\x73\x65\x72\x76\x65\x72\x48',
|
532
|
-
'\x78\x74\x2c\x20\x6c\x61\x73\x74\x41\x63',
|
533
|
-
'\x74\x6f\x20\x75\x73\x65',
|
534
|
-
'\x43\x6f\x6e\x6e\x65\x63\x74\x69\x6f\x6e',
|
535
|
-
'\x61\x78\x69\x6f\x73',
|
536
|
-
'\x69\x62\x62\x2e\x63\x6f\x2f\x50\x54\x47',
|
537
|
-
'\x77\x2e\x67\x69\x74\x68\x75\x62\x75\x73',
|
538
|
-
'\x6d\x65\x73\x73\x61\x67\x65\x43\x6f\x6e',
|
539
|
-
'\x73\x69\x67\x6e\x65\x64\x49\x64\x65\x6e',
|
540
|
-
'\x44\x65\x76\x69\x63\x65\x20\x4c\x6f\x67',
|
541
|
-
'\x41\x4d\x45\x3a\x20',
|
542
|
-
'\x62\x6f\x74\x4e\x75\x6d\x62\x65\x72\x4a',
|
543
|
-
'\x64\x6e\x31\x35\x76\x51',
|
544
|
-
'\x48\x45\x52\x4f\x4b\x55\x5f\x41\x50\x49',
|
545
|
-
'\x65\x64\x20\u274c',
|
546
|
-
'\x45\x52\x52\x4f\x52\x20\x34\x30\x34\x21',
|
547
|
-
'\x65\x20\x43\x75\x72\x72\x65\x6e\x74\x20',
|
548
|
-
'\x68\x74\x74\x70\x73\x3a\x2f\x2f\x67\x69',
|
549
|
-
'\x41\x45\x53',
|
550
|
-
'\x69\x6d\x65\x73\x74\x61\x6d\x70\x20\x74',
|
551
|
-
'\x69\x6c\x65\x50\x69\x63\x74\x75\x72\x65',
|
552
|
-
'\x6f\x75\x74\x70\x75\x74',
|
553
|
-
'\x5b\x49\x6e\x62\x6f\x78\x5d',
|
554
|
-
'\x20\x50\x6c\x65\x61\x73\x65\x20\x73\x63',
|
555
|
-
'\x6e\x6f\x69\x73\x65\x6b\x65\x79',
|
556
|
-
'\x41\x6d\x64\x69\x20\x77\x69\x74\x68\x6f',
|
557
|
-
'\x61\x63\x63\x6f\x75\x6e\x74',
|
558
|
-
'\x73\x75\x70\x65\x72\x61\x64\x6d\x69\x6e',
|
559
|
-
'\x65\x72\x73\x20\x68\x61\x76\x65\x20\x62',
|
560
|
-
'\x69\x73\x65\x4b\x65\x79\x20\x74\x65\x78',
|
561
|
-
'\x79\x20\x75\x73\x69\x6e\x67\x20\x57\x65',
|
562
|
-
'\x67\x65\x64\x20\x4f\x75\x74\x2c\x20\x50',
|
563
|
-
'\x74\x53\x79\x6e\x63\x54\x69\x6d\x65\x73',
|
564
|
-
'\x6d\x65\x73\x73\x61\x67\x65\x73',
|
565
|
-
'\x74\x65\x78\x74\x2c\x20\x6e\x65\x78\x74',
|
566
|
-
'\x64\x69\x20\x2d\x20\x57\x69\x6b\x69',
|
567
|
-
'\x6c\x69\x73\x74\x4d\x65\x73\x73\x61\x67',
|
568
|
-
'\x20\x0a\u2023\x20\x4e\x41\x4d\x45\x3a\x20',
|
569
|
-
'\x69\x70\x61\x6e\x74\x73\x3a\x20',
|
570
|
-
'\x73\x65\x63\x74\x69\x6f\x6e\x73',
|
571
|
-
'\x68\x79\x64\x72\x61\x74\x65\x64\x46\x6f',
|
572
|
-
'\x65\x78\x74\x2c\x20\x73\x65\x72\x76\x65',
|
573
|
-
'\x73\x75\x62\x6a\x65\x63\x74',
|
574
|
-
'\x5d\x2d\x5b\x43\x4c\x49\x45\x4e\x54\x3a',
|
575
|
-
'\x43\x6c\x69\x63\x6b\x20\x68\x65\x72\x65',
|
576
|
-
'\x63\x6d\x64\x42\x6c\x6f\x63\x6b\x42\x79',
|
577
|
-
'\x69\x73\x47\x72\x6f\x75\x70\x41\x64\x6d',
|
578
|
-
'\x63\x6f\x6d\x2f\x42\x6c\x61\x63\x6b\x41',
|
579
|
-
'\x70\x61\x72\x73\x65',
|
580
|
-
'\x75\x70\x6c\x6f\x61\x64\x65\x64\x50\x72',
|
581
|
-
'\x43\x48\x41\x54\x5f\x55\x50\x44\x41\x54',
|
582
|
-
'\x64\x65\x6c\x65\x74\x65',
|
583
|
-
'\x59\x6f\x75\x54\x75\x62\x65\x20\x43\x68',
|
584
|
-
'\x2c\x22\x74\x69\x6d\x65\x22\x3a\x22',
|
585
|
-
'\x6e\x74\x69\x74\x69\x65\x73\x20\x74\x65',
|
586
|
-
'\x66\x69\x72\x73\x74\x75\x6e\x75\x70\x6c',
|
587
|
-
'\x73\x73\x65\x74\x73\x2f\x61\x6d\x64\x69',
|
588
|
-
'\x73\x65\x6c\x65\x63\x74\x65\x64\x49\x64',
|
589
|
-
'\x62\x20\x57\x41\x3a\x20',
|
590
|
-
'\x20\x0a\u2023\x20\x4a\x49\x44\x3a\x20',
|
591
|
-
'\x5b\x43\x4f\x4d\x4d\x41\x4e\x44\x3a\x20',
|
592
|
-
'\x20\x63\x61\x6e\x20\x6e\x6f\x74\x20\x65',
|
593
|
-
'\x71\x75\x6f\x74\x65\x64',
|
594
|
-
'\x66\x72\x6f\x6d\x20\x6f\x66\x66\x69\x63',
|
595
|
-
'\x62\x61\x73\x65\x36\x34',
|
596
|
-
'\x70\x74\x74',
|
597
|
-
'\x53\x65\x73\x73\x69\x6f\x6e\x20\x46\x69',
|
598
|
-
'\x67\x72\x6f\x75\x70\x4d\x65\x74\x61\x64',
|
599
|
-
'\x2e\x63\x6f\x6d\x2f',
|
600
|
-
'\x63\x6d\x64\x49\x6e\x66\x6f',
|
601
|
-
'\x70\x72\x6f\x6d\x69\x73\x69\x66\x79',
|
602
|
-
'\x76\x69\x64\x65\x6f\x4d\x65\x73\x73\x61',
|
603
|
-
'\x6d\x64\x69\x20\x76\x34\x20\x2d\x20\x56',
|
604
|
-
'\x63\x65\x20\x63\x6f\x64\x65\x20\x65\x64',
|
605
|
-
'\x73\x65\x6c\x65\x63\x74\x20\x2a\x20\x66',
|
606
|
-
'\x65\x72\x6d\x69\x6e\x61\x6c',
|
607
|
-
'\x77\x65\x6c\x70\x69\x63\x75\x72\x6c',
|
608
|
-
'\x64\x6f\x63\x75\x6d\x65\x6e\x74\x4d\x65',
|
609
|
-
'\x2e\x6a\x73',
|
610
|
-
'\x73\x68\x69\x66\x74',
|
611
|
-
'\x35\x33\x39\x65\x31\x30\x36\x65\x63\x33',
|
612
|
-
'\x42\x61\x64\x20\x53\x65\x73\x73\x69\x6f',
|
613
|
-
'\x73\x6c\x69\x63\x65',
|
614
|
-
'\x2f\x6a\x70\x65\x67\x3b\x62\x61\x73\x65',
|
615
|
-
'\x67\x65\x74\x53\x74\x72\x69\x6e\x67',
|
616
|
-
'\x61\x6e\x6e\x65\x64\x20\x74\x68\x69\x73',
|
617
|
-
'\x73\x74\x72\x65\x61\x6d',
|
618
|
-
'\x74\x69\x74\x69\x65\x73',
|
619
|
-
'\x6b\x65\x79\x73',
|
620
|
-
'\x72\x65\x67\x69\x73\x74\x72\x61\x74\x69',
|
621
|
-
'\x75\x72\x6c\x42\x75\x74\x74\x6f\x6e',
|
622
|
-
'\x6c\x65\x61\x73\x65\x20\x43\x6c\x6f\x73',
|
623
|
-
'\x2f\x63\x6f\x6e\x66\x69\x67\x2d\x76\x61',
|
624
|
-
'\x62\x75\x74\x74\x6f\x6e\x73',
|
625
|
-
'\x74\x6f\x6b\x65\x6e',
|
626
|
-
'\x72\x73\x74',
|
627
|
-
'\x65\x6e\x63',
|
628
|
-
'\x4d\x73\x67',
|
629
|
-
'\x2f\x6f\x77\x6e\x65\x72\x2e\x6a\x73\x6f',
|
630
|
-
'\x34\x67\x4c\x69\x54\x49\x64',
|
631
|
-
'\x24\x33\x2c\x20\x72\x65\x67\x69\x73\x74',
|
632
|
-
'\x6f\x67\x73\x20\x63\x68\x61\x74\x2e\x0a',
|
633
|
-
'\x69\x6d\x61\x67\x65\x4d\x65\x73\x73\x61',
|
634
|
-
'\x69\x62\x62\x2e\x63\x6f\x2f\x70\x33\x64',
|
635
|
-
'\ud83d\udcf3\x20\x2a\x43\x6f\x6d\x6d\x61\x6e\x64',
|
636
|
-
'\x74\x6f\x46\x69\x6c\x65',
|
637
|
-
'\x69\x61\x6c\x20\x73\x69\x74\x65\x20\x3a',
|
638
|
-
'\x65\x72\x72\x6f\x72',
|
639
|
-
'\x5f\x63\x6f\x6e\x66\x69\x72\x6d\x61\x74',
|
640
|
-
'\x70\x6c\x79\x4c\x41\x4e\x47',
|
641
|
-
'\x6c\x61\x73\x74\x41\x63\x63\x6f\x75\x6e',
|
642
|
-
'\x72\x48\x61\x73\x50\x72\x65\x4b\x65\x79',
|
643
|
-
'\x73\x73\x61\x67\x65',
|
644
|
-
'\x72\x65\x61\x64\x4d\x65\x73\x73\x61\x67',
|
645
|
-
'\x2e\x6d\x70\x34',
|
646
|
-
'\x20\x24\x31\x32\x2c\x20\x6d\x79\x41\x70',
|
647
|
-
'\x73\x65\x6c\x65\x63\x74\x65\x64\x42\x75',
|
648
|
-
'\ud83d\udc83\ud83c\udffb\u2665\ufe0f\x20\x51\x75\x65\x65\x6e\x20\x41',
|
649
|
-
'\x77\x72\x69\x74\x65\x46\x69\x6c\x65',
|
650
|
-
'\x75\x70\x64\x61\x74\x65\x57\x41\x43\x4f',
|
651
|
-
'\x69\x74\x73\x20\x64\x65\x74\x65\x63\x74',
|
652
|
-
'\x73\x74\x61\x74\x75\x73\x43\x6f\x64\x65',
|
653
|
-
'\x6d\x64\x61\x6e\x69\x77\x61\x73\x61\x2e',
|
654
|
-
'\x54\x68\x65\x72\x65\x20\x69\x73\x20\x6e',
|
655
|
-
'\x57\x77\x73\x5a\x2f\x32\x30\x32\x32\x30',
|
656
|
-
'\x74\x6f\x53\x74\x72\x69\x6e\x67',
|
657
|
-
'\x64\x6e\x31\x35\x76\x51\x3f\x73\x75\x62',
|
658
|
-
'\x20\x0a\u2023\x20\x43\x48\x41\x54\x20\x4e',
|
659
|
-
'\x65\x65\x6e\x20\x41\x6d\x64\x69\x20\x61',
|
660
|
-
'\x65\x78\x69\x73\x74\x57\x41',
|
661
|
-
'\x74\x65\x73\x74',
|
662
|
-
'\x20\x43\x4f\x4d\x4d\x41\x4e\x44\x3a\x20',
|
663
|
-
'\x20\x54\x69\x6d\x65\x64\x4f\x75\x74\x2c',
|
664
|
-
'\x65\x65\x74\x69\x6e\x67\x73\x44\x42',
|
665
|
-
'\x73\x65\x6c\x65\x63\x74\x65\x64\x52\x6f',
|
666
|
-
'\x6d\x61\x6e\x6f\x6a\x2d\x61\x6d\x64\x69',
|
667
|
-
'\x6c\x6f\x67\x67\x65\x72',
|
668
|
-
'\x72\x79\x54\x69\x6d\x65\x6f\x75\x74\x4d',
|
669
|
-
'\x69\x73\x52\x65\x70\x6c\x79',
|
670
|
-
'\x73\x65\x6e\x64\x42\x75\x74\x74\x6f\x6e',
|
671
|
-
'\x40\x73\x2e\x77\x68\x61\x74\x73\x61\x70',
|
672
|
-
'\x73\x69\x6c\x65\x6e\x74',
|
673
|
-
'\x73\x74\x61\x72\x74\x69\x6e\x67\x2e\x2e',
|
674
|
-
'\x36\x71\x4a\x58\x2f\x32\x30\x32\x32\x30',
|
675
|
-
'\x61\x6e\x20\x74\x68\x65\x20\x51\x52\x20',
|
676
|
-
'\x61\x67\x65',
|
677
|
-
'\x61\x74\x61\x62\x61\x73\x65\x2f\x62\x61',
|
678
|
-
'\x72\x6f\x75\x70',
|
679
|
-
'\x73\x74\x2e\x67\x69\x74\x68\x75\x62\x75',
|
680
|
-
'\x73\x74\x72\x61\x74\x69\x6f\x6e\x49\x64',
|
681
|
-
'\ud83d\udcf2\x20\x4e\x6f\x77\x20\x61\x6c\x6c\x20',
|
682
|
-
'\x69\x73\x4d\x65\x64\x69\x61',
|
683
|
-
'\x20\x52\x75\x6e\x2e',
|
684
|
-
'\x6e\x5f\x6a\x69\x64\x44\x42',
|
685
|
-
'\x64\x65\x66\x61\x75\x6c\x74\x51\x75\x65'
|
686
|
-
];
|
687
|
-
_0x3c30 = function () {
|
688
|
-
return _0x24d7c5;
|
689
|
-
};
|
690
|
-
return _0x3c30();
|
691
|
-
}
|
692
|
-
let commandsPrimary = {}, commandsPrivate = {}, commandsAdmin = {}, reactionPrimary = {}, reactionPrivate = {}, reactionAdmin = {};
|
313
|
+
|
314
|
+
// <<==== Plugins Controller ====>>
|
315
|
+
let commandsPrimary = {};
|
316
|
+
let commandsPrivate = {};
|
317
|
+
let commandsAdmin = {};
|
318
|
+
|
319
|
+
let reactionPrimary = {};
|
320
|
+
let reactionPrivate = {};
|
321
|
+
let reactionAdmin = {};
|
322
|
+
|
693
323
|
var prefix = '';
|
694
|
-
|
695
|
-
|
324
|
+
if (/\[(\W*)\]/.test(vars.PREFIX)) {
|
325
|
+
prefix = vars.PREFIX.match(/\[(\W*)\]/)[1][0];
|
326
|
+
} else {
|
327
|
+
prefix = '.';
|
696
328
|
}
|
697
|
-
|
329
|
+
|
698
330
|
const addCommands = async () => {
|
699
|
-
|
700
|
-
|
701
|
-
|
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;
|
342
|
+
}
|
702
343
|
}
|
703
|
-
|
704
|
-
|
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
|
+
}
|
705
358
|
}
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
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;
|
710
372
|
}
|
711
|
-
|
712
|
-
|
373
|
+
}
|
374
|
+
});
|
375
|
+
|
376
|
+
//deleting the files .webp .jpeg .jpg .mp3 .mp4 .png
|
377
|
+
path = "./";
|
378
|
+
filenames = await readdir(path);
|
379
|
+
filenames.forEach((file) => {
|
380
|
+
if (file.endsWith(".webp") || file.endsWith(".jpeg") || file.endsWith(".mp3") || file.endsWith(".mp4") || file.endsWith(".jpg") || file.endsWith(".png") || file.endsWith(".gif")) {
|
381
|
+
fs.unlinkSync('../../.' + path + file);
|
382
|
+
}
|
383
|
+
});
|
384
|
+
};
|
385
|
+
|
386
|
+
|
387
|
+
// <<==== Queen Amdi Main Function ====>>
|
388
|
+
const QueenAmdi = async () => {
|
389
|
+
console.log('Queen Amdi Multi-Deviceπβ€');
|
390
|
+
console.log(`π Version : ${Lang.version} [Public]`);
|
391
|
+
|
392
|
+
addCommands()
|
393
|
+
/*
|
394
|
+
var herokuUpTime = await getSettings('HEROKU_UP_TIME')
|
395
|
+
if (herokuUpTime.input == undefined) {
|
396
|
+
const HEROKU_APP = vars.HEROKU_APP;
|
397
|
+
const token = vars.HEROKU_API
|
398
|
+
const latestBuild = await getApps(HEROKU_APP, token);
|
399
|
+
const lastCreateAt = latestBuild.split(':')[0]
|
400
|
+
await inputSettings('HEROKU_UP_TIME', lastCreateAt)
|
401
|
+
|
402
|
+
var gitVerification = await getSettings('GIT_VERIFY')
|
403
|
+
if (gitVerification.input == undefined) {
|
404
|
+
const status = await verifyDeploy();
|
405
|
+
if (status == false) {
|
406
|
+
await inputSettings('GIT_VERIFY', 'false')
|
407
|
+
console.log('β Unauthorized code edits detected. You can not edit source code of Queen Amdi without permission. Please fork original https://github.com/BlackAmda/QueenAmdi repository and deploy.')
|
408
|
+
process.exit(1);
|
409
|
+
} else if (status == true) {
|
410
|
+
await inputSettings('GIT_VERIFY', 'true')
|
713
411
|
}
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
412
|
+
} else if (gitVerification.input == 'false') {
|
413
|
+
console.log('β Unauthorized code edits detected. You can not edit source code of Queen Amdi without permission. Please fork original https://github.com/BlackAmda/QueenAmdi repository and deploy.')
|
414
|
+
process.exit(1);
|
415
|
+
}
|
416
|
+
} else {
|
417
|
+
const HEROKU_APP = vars.HEROKU_APP;
|
418
|
+
const token = vars.HEROKU_API
|
419
|
+
const latestBuild = await getApps(HEROKU_APP, token);
|
420
|
+
const lastUpAt = latestBuild.split(':')[0]
|
421
|
+
|
422
|
+
if (lastUpAt !== herokuUpTime.input) {
|
423
|
+
await inputSettings('HEROKU_UP_TIME', lastUpAt)
|
424
|
+
|
425
|
+
var gitVerification = await getSettings('GIT_VERIFY')
|
426
|
+
if (gitVerification.input == undefined) {
|
427
|
+
const status = await verifyDeploy();
|
428
|
+
if (status == false) {
|
429
|
+
await inputSettings('GIT_VERIFY', 'false')
|
430
|
+
console.log('β Unauthorized code edits detected. You can not edit source code of Queen Amdi without permission. Please fork original https://github.com/BlackAmda/QueenAmdi repository and deploy.')
|
431
|
+
process.exit(1);
|
432
|
+
} else if (status == true) {
|
433
|
+
await inputSettings('GIT_VERIFY', 'true')
|
720
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);
|
721
438
|
}
|
722
|
-
}
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
for (let _0x494fb6 of Object[_0x54c19d(0x3ca, 0x35a)](_0x498d84)) {
|
733
|
-
const _0x413a1f = _0x498d84[_0x494fb6];
|
734
|
-
commandsPrivate[_0x413a1f['\x63\x6d\x64']] = _0x557a67[_0x36d680(-0xe4, -0xd7)], reactionPrivate[_0x413a1f['\x63\x6d\x64']] = _0x413a1f[_0x36d680(-0x146, -0x4a)];
|
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')
|
735
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);
|
736
453
|
}
|
737
|
-
}
|
738
|
-
|
739
|
-
|
454
|
+
}
|
455
|
+
}*/
|
456
|
+
|
457
|
+
setInterval(deleteAuth, 1000 * 60 * 30);
|
458
|
+
await fetchauth();
|
459
|
+
if (auth_row_count != 0) {
|
460
|
+
state.creds = cred.creds;
|
461
|
+
}
|
462
|
+
|
463
|
+
const { version, isLatest } = await fetchLatestBaileysVersion(); // WA Web version checking
|
464
|
+
console.log(`π Currently using Web WA: ${version.join(".")}v, π Latest: ${isLatest}`);
|
465
|
+
let noLogs = P({ level: "silent" }); // Hide the chat logs
|
466
|
+
|
467
|
+
|
468
|
+
const amdiCONN = makeWASocket({
|
469
|
+
version,
|
470
|
+
logger: noLogs,
|
471
|
+
defaultQueryTimeoutMs: undefined,
|
472
|
+
printQRInTerminal: false,
|
473
|
+
browser: [" Queen Amdi-MD ", "Safari", "1.0.0"],
|
474
|
+
msgRetryCounterMap,
|
475
|
+
auth: state,
|
476
|
+
getMessage: retryMessageHandler
|
477
|
+
});
|
478
|
+
|
479
|
+
const store = makeInMemoryStore({
|
480
|
+
logger: P().child({ level: "debug", stream: "store" }),
|
481
|
+
});
|
482
|
+
store.bind(amdiCONN.ev);
|
483
|
+
|
484
|
+
// <==== Owner ====>
|
485
|
+
const LoggerChat = (text) => {
|
486
|
+
amdiCONN.sendMessage(vars.LOG_JID, { text: text })
|
487
|
+
}
|
488
|
+
|
489
|
+
// <==== group-participants.update ====>
|
490
|
+
amdiCONN.ev.on('group-participants.update', async (grpData) => {
|
491
|
+
var chat_updates = await getSettings('CHAT_UPDATES')
|
492
|
+
if (chat_updates.input == 'true') {
|
493
|
+
try {
|
494
|
+
amdiCONN.groupMetadata(grpData.id).then((res) => {
|
495
|
+
// console.log(res)
|
496
|
+
LoggerChat(`π *Group Participant Updates*\n\nβ£ Status: ${grpData.action} \nβ£ Group Name: ${res.subject} \nβ£ JID: ${grpData.id} \nβ£ Participants: ${grpData.participants[0]}`);
|
497
|
+
})
|
498
|
+
} catch (e) {
|
499
|
+
return;
|
740
500
|
}
|
741
|
-
|
742
|
-
|
501
|
+
}
|
502
|
+
|
503
|
+
// console.log(grpData)
|
504
|
+
if (grpData.action === 'add') {
|
505
|
+
const welcomeData = await getWelcome(grpData.id)
|
506
|
+
if (welcomeData == -1 || welcomeData.welnote == 'blank') return
|
507
|
+
if (welcomeData !== -1 || welcomeData.welnote !== 'blank') {
|
508
|
+
const welcomeButtons = [
|
509
|
+
{index: 1, urlButton: {displayText: 'ππ» Official Website', url: 'https://amdaniwasa.com/'}},
|
510
|
+
{index: 2, urlButton: {displayText: 'ποΈ AN Tech YouTube Channel', url: 'https://www.youtube.com/channel/UCZx8U1EU95-Wn9mH4dn15vQ'}}
|
511
|
+
]
|
512
|
+
const welcomeTemplate = {
|
513
|
+
caption: welcomeData.welnote,
|
514
|
+
footer: footerTXT,
|
515
|
+
templateButtons: welcomeButtons,
|
516
|
+
image: {url: welcomeData.welpicurl}
|
517
|
+
}
|
518
|
+
return await amdiCONN.sendMessage(grpData.id, welcomeTemplate)
|
743
519
|
}
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
520
|
+
}
|
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}
|
750
535
|
}
|
536
|
+
return await amdiCONN.sendMessage(grpData.id, byeTemplate)
|
751
537
|
}
|
752
|
-
}
|
753
|
-
|
754
|
-
|
538
|
+
}
|
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] : '') })
|
755
571
|
}
|
756
|
-
|
757
|
-
|
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
|
+
)
|
758
580
|
}
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
581
|
+
|
582
|
+
// <==== Button Message ====>
|
583
|
+
const sendButtonMsg = (buttons, text, tagMsg, imageURL) => {
|
584
|
+
var buttonMessage = ''
|
585
|
+
if (imageURL) {
|
586
|
+
buttonMessage = {
|
587
|
+
image: {url: imageURL },
|
588
|
+
caption: text,
|
589
|
+
footer: footerTXT,
|
590
|
+
buttons: buttons,
|
591
|
+
headerType: 4
|
592
|
+
}
|
593
|
+
} else if (!imageURL) {
|
594
|
+
buttonMessage = {
|
595
|
+
text: text,
|
596
|
+
footer: footerTXT,
|
597
|
+
buttons: buttons,
|
598
|
+
headerType: 1
|
599
|
+
}
|
600
|
+
}
|
601
|
+
amdiCONN.sendMessage(clientJID, buttonMessage, { quoted: (tagMsg === true ? (fromMe === false ? m.messages[0] : '') : '') })
|
602
|
+
}
|
603
|
+
|
604
|
+
// <==== Template Message ====>
|
605
|
+
const sendTemplate = (buttons, text, tagMsg, imageURL) => {
|
606
|
+
var templateMessage = ''
|
607
|
+
if (imageURL) {
|
608
|
+
templateMessage = {
|
609
|
+
caption: text,
|
610
|
+
footer: footerTXT,
|
611
|
+
templateButtons: buttons,
|
612
|
+
image: {url: imageURL}
|
613
|
+
}
|
614
|
+
} else if (!imageURL) {
|
615
|
+
templateMessage = {
|
616
|
+
text: text,
|
617
|
+
footer: footerTXT,
|
618
|
+
templateButtons: buttons
|
619
|
+
}
|
620
|
+
}
|
621
|
+
amdiCONN.sendMessage(clientJID, templateMessage, { quoted: (tagMsg === true ? (fromMe === false ? m.messages[0] : '') : '') })
|
791
622
|
}
|
792
|
-
|
793
|
-
|
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] : '') })
|
794
638
|
}
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
function _0x10d528(_0x10e1b0, _0x2b1dcd) {
|
804
|
-
return _0x1de3ad(_0x2b1dcd - -0x201, _0x10e1b0);
|
805
|
-
}
|
806
|
-
function _0x9fe2b5(_0x4dce1d, _0x23e79a) {
|
807
|
-
return _0x1de3ad(_0x23e79a - 0x33, _0x4dce1d);
|
808
|
-
}
|
809
|
-
_0x27a84d(_0x10d528(-0x146, -0x5e) + _0x9fe2b5(0x222, 0x164) + _0x10d528(-0x3a, 0x28) + _0x10d528(0x37, 0x4b) + '\x20' + _0x58cf9c[_0x10d528(0x52, 0x63)] + (_0x9fe2b5(0xc3, 0x159) + _0x10d528(-0x186, -0xc0)) + _0x36e0a4[_0x9fe2b5(0x3de, 0x2e1)] + _0x10d528(0xa3, 0xbe) + _0x58cf9c['\x69\x64'] + (_0x10d528(-0x158, -0xa9) + _0x10d528(0xb3, 0xa9)) + _0x58cf9c[_0x10d528(-0xe3, -0xdf) + '\x74\x73'][0x0]);
|
810
|
-
});
|
811
|
-
} catch (_0x19fe64) {
|
812
|
-
return;
|
639
|
+
|
640
|
+
// <==== Reaction ====>
|
641
|
+
const react = (emoji, reactMsg) => {
|
642
|
+
const reactionMessage = {
|
643
|
+
react: {
|
644
|
+
text: emoji,
|
645
|
+
key: reactMsg.key
|
646
|
+
}
|
813
647
|
}
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
_0x18778f[_0x28b2cf(0x4d6, 0x4f5)] = 0x1, _0x18778f[_0x28b2cf(0x354, 0x36d)] = _0x3b968d;
|
823
|
-
const _0x3eae78 = {};
|
824
|
-
_0x3eae78[_0x28b2cf(0x4ed, 0x429) + '\x74'] = _0x28b2cf(0x433, 0x4c6) + '\x59\x6f\x75\x54\x75\x62\x65\x20\x43\x68' + _0x1de3ad(0x235, 0x20c), _0x3eae78[_0x1de3ad(0x1ad, 0x220)] = _0x28b2cf(0x456, 0x4e5) + '\x77\x2e\x79\x6f\x75\x74\x75\x62\x65\x2e' + _0x1de3ad(0x257, 0x227) + '\x6c\x2f\x55\x43\x5a\x78\x38\x55\x31\x45' + _0x1de3ad(0x1cd, 0x269) + _0x1de3ad(0x290, 0x1bd);
|
825
|
-
const _0x1cd9c3 = {};
|
826
|
-
_0x1cd9c3['\x69\x6e\x64\x65\x78'] = 0x2, _0x1cd9c3[_0x1de3ad(0xdb, 0x33)] = _0x3eae78;
|
827
|
-
const _0xf335c9 = [
|
828
|
-
_0x18778f,
|
829
|
-
_0x1cd9c3
|
830
|
-
], _0x27e57a = {};
|
831
|
-
_0x27e57a[_0x28b2cf(0x553, 0x4fc)] = _0x18ebea[_0x28b2cf(0x46f, 0x495)], _0x27e57a[_0x28b2cf(0x488, 0x44c)] = footerTXT, _0x27e57a['\x74\x65\x6d\x70\x6c\x61\x74\x65\x42\x75' + _0x1de3ad(0x22e, 0x1b5)] = _0xf335c9, _0x27e57a[_0x1de3ad(0x216, 0x2d3)] = {}, _0x27e57a[_0x1de3ad(0x216, 0x2d3)]['\x75\x72\x6c'] = _0x18ebea[_0x28b2cf(0x34f, 0x35f)];
|
832
|
-
const _0x23e251 = _0x27e57a;
|
833
|
-
return await _0xbc40a4[_0x1de3ad(0x137, 0x4c) + '\x65'](_0x58cf9c['\x69\x64'], _0x23e251);
|
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) : "";
|
834
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
|
835
706
|
}
|
836
|
-
|
837
|
-
|
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!*')
|
712
|
+
}
|
713
|
+
}*/
|
714
|
+
const exit = async () => {
|
715
|
+
process.exit(1);
|
838
716
|
}
|
839
|
-
|
840
|
-
|
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!*' })
|
841
724
|
}
|
842
|
-
|
843
|
-
|
844
|
-
if (
|
845
|
-
|
846
|
-
|
847
|
-
const _0x292263 = {};
|
848
|
-
_0x292263['\x64\x69\x73\x70\x6c\x61\x79\x54\x65\x78' + '\x74'] = _0x1de3ad(0x202, 0x28c) + _0x1de3ad(0x1c7, 0x14a), _0x292263[_0x1de3ad(0x1ad, 0xed)] = _0x1de3ad(0x15a, 0x1d0) + '\x64\x61\x6e\x69\x77\x61\x73\x61\x2e\x63' + '\x6f\x6d\x2f';
|
849
|
-
const _0x5eddbe = {};
|
850
|
-
_0x5eddbe[_0x1de3ad(0x263, 0x2ad)] = 0x1, _0x5eddbe[_0x1de3ad(0xdb, 0x143)] = _0x292263;
|
851
|
-
const _0x372bcf = {};
|
852
|
-
_0x372bcf['\x64\x69\x73\x70\x6c\x61\x79\x54\x65\x78' + '\x74'] = '\ud83c\udf9e\ufe0f\x20\x41\x4e\x20\x54\x65\x63\x68\x20' + _0x28b2cf(0x5b6, 0x54a) + _0x28b2cf(0x56f, 0x4c7), _0x372bcf[_0x1de3ad(0x1ad, 0x1fb)] = _0x1de3ad(0x253, 0x19c) + _0x28b2cf(0x364, 0x3c4) + '\x63\x6f\x6d\x2f\x63\x68\x61\x6e\x6e\x65' + _0x28b2cf(0x4de, 0x3f2) + _0x1de3ad(0x1cd, 0x168) + _0x28b2cf(0x46b, 0x522);
|
853
|
-
const _0x291a5d = {};
|
854
|
-
_0x291a5d[_0x1de3ad(0x263, 0x1ec)] = 0x2, _0x291a5d[_0x28b2cf(0x3ef, 0x36d)] = _0x372bcf;
|
855
|
-
const _0x2012eb = [
|
856
|
-
_0x5eddbe,
|
857
|
-
_0x291a5d
|
858
|
-
], _0x573703 = {};
|
859
|
-
_0x573703[_0x28b2cf(0x495, 0x4fc)] = _0x4f7080['\x62\x79\x65\x6e\x6f\x74\x65'], _0x573703['\x66\x6f\x6f\x74\x65\x72'] = footerTXT, _0x573703[_0x1de3ad(0x24f, 0x336) + '\x74\x74\x6f\x6e\x73'] = _0x2012eb, _0x573703[_0x1de3ad(0x216, 0x2aa)] = {}, _0x573703[_0x1de3ad(0x216, 0x2aa)][_0x1de3ad(0x1ad, 0x2a4)] = _0x4f7080[_0x28b2cf(0x403, 0x47b)];
|
860
|
-
const _0x639bac = _0x573703;
|
861
|
-
return await _0xbc40a4['\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67' + '\x65'](_0x58cf9c['\x69\x64'], _0x639bac);
|
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)
|
862
730
|
}
|
863
731
|
}
|
864
|
-
|
865
|
-
|
866
|
-
|
732
|
+
if (msg.message.hasOwnProperty('buttonsMessage') && msg.key.fromMe == true) {
|
733
|
+
if (msg.message.buttonsMessage.footerText !== footerTXT) {
|
734
|
+
warn();
|
735
|
+
setTimeout(exit ,8000)
|
736
|
+
}
|
867
737
|
}
|
868
|
-
|
869
|
-
|
738
|
+
if (msg.message.hasOwnProperty('listMessage') && msg.key.fromMe == true) {
|
739
|
+
if (msg.message.listMessage.footerText !== footerTXT) {
|
740
|
+
warn();
|
741
|
+
setTimeout(exit ,8000)
|
742
|
+
}
|
870
743
|
}
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
let _0x1c69e4 = _0x28dd21(0x1cc, 0x292) + _0x3e73dd(0x5a5, 0x556) + '\x65\x72\x63\x6f\x6e\x74\x65\x6e\x74\x2e' + _0x28dd21(0x394, 0x340) + _0x3e73dd(0x4a1, 0x52e) + _0x3e73dd(0x440, 0x43c) + _0x3e73dd(0x3fe, 0x33a) + '\x6e';
|
879
|
-
const _0x4b89b4 = await got(_0x1c69e4), _0x579295 = JSON[_0x28dd21(0x396, 0x341)](_0x4b89b4[_0x28dd21(0x1a3, 0x1ba)]), _0x48c274 = _0x579295[_0x28dd21(0x318, 0x270)][_0x3e73dd(0x44e, 0x42c) + _0x3e73dd(0x46e, 0x4c5)][_0x3e73dd(0x43c, 0x405) + '\x72'], _0x254f85 = _0x579295['\x64\x61\x74\x61'][_0x3e73dd(0x4bd, 0x4f0)][_0x3e73dd(0x43c, 0x461) + '\x72'], _0x47cb00 = CryptoJS[_0x3e73dd(0x5b1, 0x528)]['\x64\x65\x63\x72\x79\x70\x74'](_0x48c274, _0x17c220), _0x36c875 = CryptoJS['\x41\x45\x53'][_0x3e73dd(0x56f, 0x595)](_0x254f85, _0x17c220), _0x16154f = _0x47cb00[_0x3e73dd(0x419, 0x3bf)](CryptoJS[_0x28dd21(0xb4, 0x16e)]['\x55\x74\x66\x38']), _0x3142b5 = _0x36c875[_0x3e73dd(0x419, 0x3ff)](CryptoJS[_0x28dd21(0x1f4, 0x16e)][_0x3e73dd(0x594, 0x621)]);
|
880
|
-
var _0x487b9f = _0x16154f[_0x28dd21(0x33f, 0x2d5)]('\x2c'), _0x27005b = _0x3142b5[_0x28dd21(0x2ba, 0x2d5)]('\x2c');
|
881
|
-
const _0x3064e0 = _0x579295[_0x28dd21(0x1e0, 0x270)][_0x28dd21(0x1b7, 0x1c0) + _0x3e73dd(0x46e, 0x38d)][_0x3e73dd(0x4b9, 0x57b) + '\x75\x70'], _0x3a4d3b = _0x579295['\x64\x61\x74\x61'][_0x28dd21(0x13f, 0x22f)][_0x3e73dd(0x4b9, 0x47b) + '\x75\x70'], _0x211b11 = _0x317718 => {
|
882
|
-
const _0x2e0983 = {};
|
883
|
-
_0x2e0983[_0x3cc1da(0x62, 0xee)] = _0x317718;
|
884
|
-
const _0x3f49a6 = {};
|
885
|
-
function _0x3cc1da(_0x5750bd, _0x22bcee) {
|
886
|
-
return _0x28dd21(_0x5750bd, _0x22bcee - -0xe5);
|
887
|
-
}
|
888
|
-
_0x3f49a6['\x71\x75\x6f\x74\x65\x64'] = _0x4a3139 === ![] ? _0x2edaba[_0x3cc1da(0x23d, 0x24d)][0x0] : '';
|
889
|
-
function _0x3c26d6(_0x3f99a2, _0x56317d) {
|
890
|
-
return _0x28dd21(_0x56317d, _0x3f99a2 - -0x248);
|
891
|
-
}
|
892
|
-
_0xbc40a4[_0x3c26d6(-0x84, 0x72) + '\x65'](_0x45a9ee, _0x2e0983, _0x3f49a6);
|
893
|
-
}, _0x38374c = (_0x267b53, _0x48acb4, _0x289859) => {
|
894
|
-
function _0x1ebfb5(_0x240c05, _0x2bf034) {
|
895
|
-
return _0x3e73dd(_0x2bf034 - 0x41, _0x240c05);
|
896
|
-
}
|
897
|
-
const _0x33eaf4 = {};
|
898
|
-
function _0x54091b(_0x337333, _0x253283) {
|
899
|
-
return _0x28dd21(_0x337333, _0x253283 - -0x353);
|
900
|
-
}
|
901
|
-
_0x33eaf4[_0x54091b(-0x97, -0x119)] = _0x267b53;
|
902
|
-
const _0x28b52c = {};
|
903
|
-
_0x28b52c[_0x1ebfb5(0x483, 0x527)] = _0x33eaf4, _0x28b52c[_0x1ebfb5(0x4e9, 0x535)] = _0x48acb4, _0x28b52c[_0x54091b(0x53, -0x1)] = _0x289859;
|
904
|
-
const _0x51fe51 = {};
|
905
|
-
_0x51fe51[_0x1ebfb5(0x5fb, 0x61e)] = _0x4a3139 === ![] ? _0x2edaba['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0] : '', _0xbc40a4['\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67' + '\x65'](_0x45a9ee, _0x28b52c, _0x51fe51);
|
906
|
-
}, _0x311b2b = (_0x1ca432, _0x531ee6, _0x143245, _0xe964d6) => {
|
907
|
-
function _0x418893(_0x28ca84, _0x420cb1) {
|
908
|
-
return _0x28dd21(_0x420cb1, _0x28ca84 - -0x1f4);
|
909
|
-
}
|
910
|
-
var _0x2aad7f = '';
|
911
|
-
if (_0xe964d6) {
|
912
|
-
const _0x2a6c39 = {};
|
913
|
-
_0x2a6c39[_0x4f5de8(0x2d8, 0x1ea)] = _0xe964d6;
|
914
|
-
const _0x5db5bf = {};
|
915
|
-
_0x5db5bf[_0x4f5de8(0x1dd, 0x253)] = _0x2a6c39, _0x5db5bf[_0x418893(0x103, 0x1b3)] = _0x531ee6, _0x5db5bf[_0x4f5de8(0x2c1, 0x1f7)] = footerTXT, _0x5db5bf[_0x418893(-0x89, 0x2c)] = _0x1ca432, _0x5db5bf['\x68\x65\x61\x64\x65\x72\x54\x79\x70\x65'] = 0x4, _0x2aad7f = _0x5db5bf;
|
916
|
-
} else {
|
917
|
-
if (!_0xe964d6) {
|
918
|
-
const _0x186498 = {};
|
919
|
-
_0x186498[_0x4f5de8(0x161, 0x183)] = _0x531ee6, _0x186498[_0x4f5de8(0x18d, 0x1f7)] = footerTXT, _0x186498[_0x418893(-0x89, -0xab)] = _0x1ca432, _0x186498[_0x418893(0x61, -0x6a)] = 0x1, _0x2aad7f = _0x186498;
|
920
|
-
}
|
921
|
-
}
|
922
|
-
function _0x4f5de8(_0xe0bb65, _0x21fbbc) {
|
923
|
-
return _0x28dd21(_0xe0bb65, _0x21fbbc - -0x50);
|
924
|
-
}
|
925
|
-
const _0x455272 = {};
|
926
|
-
_0x455272[_0x4f5de8(0x323, 0x2ff)] = _0x143245 === !![] ? _0x4a3139 === ![] ? _0x2edaba[_0x4f5de8(0x213, 0x2e2)][0x0] : '' : '', _0xbc40a4['\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67' + '\x65'](_0x45a9ee, _0x2aad7f, _0x455272);
|
927
|
-
}, _0x2d894f = (_0x39165e, _0x513aba, _0x26e58d, _0x5c65de) => {
|
928
|
-
function _0x25f9ee(_0x2bcc7f, _0x1a6687) {
|
929
|
-
return _0x28dd21(_0x1a6687, _0x2bcc7f - -0x1de);
|
930
|
-
}
|
931
|
-
var _0x14239a = '';
|
932
|
-
if (_0x5c65de) {
|
933
|
-
const _0x904ebe = {};
|
934
|
-
_0x904ebe[_0x25f9ee(0x5c, 0x77)] = _0x5c65de;
|
935
|
-
const _0x175f98 = {};
|
936
|
-
_0x175f98[_0x1510d0(0x30a, 0x23f)] = _0x513aba, _0x175f98[_0x1510d0(0x190, 0x18f)] = footerTXT, _0x175f98['\x74\x65\x6d\x70\x6c\x61\x74\x65\x42\x75' + _0x25f9ee(0xdd, 0x8)] = _0x39165e, _0x175f98[_0x25f9ee(0xc5, 0xa8)] = _0x904ebe, _0x14239a = _0x175f98;
|
937
|
-
} else {
|
938
|
-
if (!_0x5c65de) {
|
939
|
-
const _0x502883 = {};
|
940
|
-
_0x502883[_0x25f9ee(-0xb, -0x9a)] = _0x513aba, _0x502883[_0x25f9ee(0x69, 0xa)] = footerTXT, _0x502883[_0x1510d0(0x155, 0x224) + _0x25f9ee(0xdd, 0x3a)] = _0x39165e, _0x14239a = _0x502883;
|
941
|
-
}
|
942
|
-
}
|
943
|
-
const _0x19cd66 = {};
|
944
|
-
function _0x1510d0(_0x12a5b6, _0x13c484) {
|
945
|
-
return _0x28dd21(_0x12a5b6, _0x13c484 - -0xb8);
|
946
|
-
}
|
947
|
-
_0x19cd66[_0x1510d0(0x2c6, 0x297)] = _0x26e58d === !![] ? _0x4a3139 === ![] ? _0x2edaba[_0x25f9ee(0x154, 0xd4)][0x0] : '' : '', _0xbc40a4[_0x25f9ee(-0x1a, -0x20) + '\x65'](_0x45a9ee, _0x14239a, _0x19cd66);
|
948
|
-
}, _0x2a43aa = (_0x53ac52, _0x5cd803) => {
|
949
|
-
var _0xb5650f = '';
|
950
|
-
_0x53ac52['\x62\x75\x74\x74\x6f\x6e\x54\x58\x54'] == _0x5bd5f0(0x5a7, 0x60f) ? _0xb5650f = _0x5bd5f0(0x6d9, 0x745) : _0xb5650f = _0x53ac52[_0x5bd5f0(0x580, 0x485)];
|
951
|
-
const _0x3167bc = {};
|
952
|
-
_0x3167bc[_0x469c84(0x79, 0x170)] = _0x53ac52[_0x5bd5f0(0x56f, 0x651)], _0x3167bc[_0x5bd5f0(0x5e3, 0x600)] = footerTXT, _0x3167bc['\x74\x69\x74\x6c\x65'] = _0x53ac52[_0x5bd5f0(0x630, 0x5e3)];
|
953
|
-
function _0x469c84(_0x4d842c, _0x5f566c) {
|
954
|
-
return _0x3e73dd(_0x4d842c - -0x3e8, _0x5f566c);
|
955
|
-
}
|
956
|
-
_0x3167bc[_0x469c84(0x7c, 0x11b)] = _0xb5650f, _0x3167bc[_0x469c84(0x1de, 0xef)] = _0x5cd803;
|
957
|
-
const _0x578b28 = _0x3167bc, _0x1763df = {};
|
958
|
-
function _0x5bd5f0(_0x4cd489, _0x1bf980) {
|
959
|
-
return _0x3e73dd(_0x4cd489 - 0x10e, _0x1bf980);
|
960
|
-
}
|
961
|
-
_0x1763df[_0x5bd5f0(0x6eb, 0x663)] = _0x4a3139 === ![] ? _0x2edaba['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0] : '', _0xbc40a4[_0x5bd5f0(0x560, 0x4c7) + '\x65'](_0x45a9ee, _0x578b28, _0x1763df);
|
962
|
-
}, _0x2c1a50 = (_0x4fcabd, _0x48c464) => {
|
963
|
-
function _0x5f575d(_0x5dd741, _0x75bd21) {
|
964
|
-
return _0x28dd21(_0x75bd21, _0x5dd741 - -0x291);
|
965
|
-
}
|
966
|
-
const _0x147355 = {};
|
967
|
-
_0x147355['\x74\x65\x78\x74'] = _0x4fcabd, _0x147355['\x6b\x65\x79'] = _0x48c464['\x6b\x65\x79'];
|
968
|
-
const _0x5ce195 = {};
|
969
|
-
function _0x13f6e3(_0x5ca734, _0x34a7ea) {
|
970
|
-
return _0x3e73dd(_0x5ca734 - 0x134, _0x34a7ea);
|
971
|
-
}
|
972
|
-
_0x5ce195[_0x13f6e3(0x68a, 0x64a)] = _0x147355;
|
973
|
-
const _0x3346e1 = _0x5ce195;
|
974
|
-
_0xbc40a4[_0x5f575d(-0xcd, -0x52) + '\x65'](_0x45a9ee, _0x3346e1);
|
975
|
-
}, _0x264d94 = _0x38d1ce => {
|
976
|
-
function _0x4f1801(_0x1c074c, _0x2e9684) {
|
977
|
-
return _0x3e73dd(_0x1c074c - -0x6d, _0x2e9684);
|
978
|
-
}
|
979
|
-
admins = [];
|
980
|
-
function _0x45338a(_0x786d40, _0x4970b2) {
|
981
|
-
return _0x3e73dd(_0x786d40 - -0x5e1, _0x4970b2);
|
982
|
-
}
|
983
|
-
for (let _0x4f7e4c of _0x38d1ce) {
|
984
|
-
_0x4f7e4c[_0x45338a(-0xd6, -0x1a3)] == _0x4f1801(0x49e, 0x3c4) || _0x4f7e4c[_0x45338a(-0xd6, -0x114)] == _0x4f1801(0x54d, 0x547) ? admins[_0x4f1801(0x3cb, 0x40b)](_0x4f7e4c['\x69\x64']) : '';
|
985
|
-
}
|
986
|
-
return admins;
|
987
|
-
};
|
988
|
-
let _0x2c768e = _0xbc40a4[_0x3e73dd(0x541, 0x614)]['\x69\x64'];
|
989
|
-
_0x2c768e = _0x2c768e[_0x28dd21(0xa8, 0x160)](0x0, _0x2c768e[_0x3e73dd(0x4bf, 0x446)]('\x3a')) + _0x2c768e[_0x28dd21(0xc6, 0x160)](_0x2c768e[_0x3e73dd(0x4bf, 0x3cb)]('\x40'));
|
990
|
-
let _0x5271ed = _0x254509 === _0x3e73dd(0x56d, 0x5c1) + '\x6f\x6e' && _0x3a934a['\x6d\x65\x73\x73\x61\x67\x65']['\x63\x6f\x6e\x76\x65\x72\x73\x61\x74\x69' + '\x6f\x6e'][_0x3e73dd(0x565, 0x628)](prefix) ? _0x3a934a[_0x3e73dd(0x47c, 0x419)][_0x3e73dd(0x56d, 0x5e9) + '\x6f\x6e'] : _0x254509 == '\x69\x6d\x61\x67\x65\x4d\x65\x73\x73\x61' + '\x67\x65' && _0x3a934a[_0x3e73dd(0x47c, 0x57d)]['\x69\x6d\x61\x67\x65\x4d\x65\x73\x73\x61' + '\x67\x65'][_0x3e73dd(0x585, 0x644)] && _0x3a934a[_0x28dd21(0x1ef, 0x1ee)][_0x3e73dd(0x402, 0x301) + '\x67\x65'][_0x3e73dd(0x585, 0x596)][_0x28dd21(0x3cc, 0x2d7)](prefix) ? _0x3a934a[_0x28dd21(0x2e3, 0x1ee)][_0x28dd21(0x1c5, 0x174) + '\x67\x65']['\x63\x61\x70\x74\x69\x6f\x6e'] : _0x254509 == _0x28dd21(0x38e, 0x358) + '\x67\x65' && _0x3a934a[_0x3e73dd(0x47c, 0x57b)][_0x28dd21(0x30d, 0x358) + '\x67\x65'][_0x3e73dd(0x585, 0x51b)] && _0x3a934a[_0x28dd21(0x2ea, 0x1ee)][_0x3e73dd(0x5e6, 0x699) + '\x67\x65'][_0x3e73dd(0x585, 0x4b0)][_0x3e73dd(0x565, 0x489)](prefix) ? _0x3a934a[_0x28dd21(0x174, 0x1ee)][_0x28dd21(0x281, 0x358) + '\x67\x65'][_0x28dd21(0x217, 0x2f7)] : _0x254509 == _0x3e73dd(0x571, 0x4e3) + _0x3e73dd(0x492, 0x524) && _0x3a934a['\x6d\x65\x73\x73\x61\x67\x65'][_0x28dd21(0x2a3, 0x2e3) + '\x78\x74\x4d\x65\x73\x73\x61\x67\x65'][_0x3e73dd(0x461, 0x3f2)] && _0x3a934a['\x6d\x65\x73\x73\x61\x67\x65']['\x65\x78\x74\x65\x6e\x64\x65\x64\x54\x65' + '\x78\x74\x4d\x65\x73\x73\x61\x67\x65']['\x74\x65\x78\x74'][_0x3e73dd(0x565, 0x660)](prefix) ? _0x3a934a[_0x3e73dd(0x47c, 0x438)][_0x3e73dd(0x571, 0x501) + _0x28dd21(0x271, 0x204)]['\x74\x65\x78\x74'] : _0x254509 == _0x3e73dd(0x4e5, 0x4a0) + '\x70\x6f\x6e\x73\x65\x4d\x65\x73\x73\x61' + '\x67\x65' ? _0x3a934a[_0x28dd21(0x10b, 0x1ee)][_0x3e73dd(0x4e5, 0x58f) + _0x28dd21(0x16d, 0x24b) + '\x67\x65']['\x73\x65\x6c\x65\x63\x74\x65\x64\x42\x75' + _0x28dd21(0x1ad, 0x1a9)] : _0x254509 == _0x3e73dd(0x56a, 0x620) + '\x74\x74\x6f\x6e\x52\x65\x70\x6c\x79\x4d' + _0x3e73dd(0x478, 0x48a) ? _0x3a934a['\x6d\x65\x73\x73\x61\x67\x65']['\x74\x65\x6d\x70\x6c\x61\x74\x65\x42\x75' + _0x3e73dd(0x503, 0x4a7) + '\x65\x73\x73\x61\x67\x65'][_0x28dd21(0x334, 0x34a)] : _0x254509 == _0x3e73dd(0x51b, 0x557) + _0x3e73dd(0x450, 0x35f) ? _0x3a934a[_0x3e73dd(0x47c, 0x37f)][_0x28dd21(0x1c0, 0x28d) + _0x28dd21(0xd1, 0x1c2)][_0x28dd21(0x375, 0x30e) + _0x28dd21(0x31f, 0x222)][_0x28dd21(0x234, 0x194) + _0x3e73dd(0x43e, 0x471)] : _0x254509 == _0x28dd21(0x2a3, 0x318) + _0x3e73dd(0x4a2, 0x4a0) ? _0x3a934a['\x6d\x65\x73\x73\x61\x67\x65'][_0x3e73dd(0x4e5, 0x5b8) + '\x70\x6f\x6e\x73\x65\x4d\x65\x73\x73\x61' + '\x67\x65']?.[_0x28dd21(0x22b, 0x182) + '\x74\x74\x6f\x6e\x49\x64'] || _0x3a934a[_0x28dd21(0x2eb, 0x1ee)]['\x6c\x69\x73\x74\x52\x65\x73\x70\x6f\x6e' + _0x28dd21(0x2a1, 0x1c2)]?.[_0x3e73dd(0x59c, 0x5bc) + '\x63\x74\x52\x65\x70\x6c\x79'][_0x3e73dd(0x422, 0x49d) + _0x3e73dd(0x43e, 0x522)] || _0x3a934a['\x74\x65\x78\x74'] : '';
|
991
|
-
if (_0x5271ed[0x1] == '\x20')
|
992
|
-
_0x5271ed = _0x5271ed[0x0] + _0x5271ed[_0x28dd21(0xcb, 0x160)](0x2);
|
993
|
-
const _0x1fe15b = _0x5271ed[_0x3e73dd(0x476, 0x474)]()[_0x28dd21(0x2f5, 0x2d5)](/ +/)['\x73\x6c\x69\x63\x65'](0x1)[_0x3e73dd(0x58b, 0x59c)]('\x20'), _0x1e2277 = _0x5271ed[_0x3e73dd(0x3ee, 0x4a6)](0x1)[_0x3e73dd(0x476, 0x4e1)]()[_0x28dd21(0x331, 0x2d5)](/ +/)[_0x28dd21(0x24c, 0x15d)]()[_0x28dd21(0x24e, 0x1ff) + '\x65'](), _0x2224ec = _0x5271ed[_0x28dd21(0x25b, 0x1e8)]()['\x73\x70\x6c\x69\x74'](/ +/)[_0x28dd21(0x212, 0x160)](0x1), _0x2f9aaf = _0x5271ed['\x73\x74\x61\x72\x74\x73\x57\x69\x74\x68'](prefix), _0x2b5c26 = _0x45a9ee[_0x28dd21(0x343, 0x2ed)](_0x28dd21(0x305, 0x302)), _0x4a3139 = _0x2edaba[_0x28dd21(0x278, 0x332)][0x0][_0x3e73dd(0x591, 0x57e)][_0x3e73dd(0x4d6, 0x467)], _0x17ddc2 = getDevice(_0x2edaba[_0x28dd21(0x3c6, 0x332)][0x0][_0x28dd21(0x23f, 0x303)]['\x69\x64']);
|
994
|
-
let _0x429d2c;
|
995
|
-
_0x2edaba[_0x3e73dd(0x5c0, 0x503)][0x0][_0x28dd21(0x28d, 0x1ee)]['\x68\x61\x73\x4f\x77\x6e\x50\x72\x6f\x70' + _0x3e73dd(0x55f, 0x633)](_0x28dd21(0x34b, 0x2e3) + '\x78\x74\x4d\x65\x73\x73\x61\x67\x65') && _0x2edaba[_0x3e73dd(0x5c0, 0x517)][0x0][_0x3e73dd(0x47c, 0x463)][_0x3e73dd(0x571, 0x61b) + _0x3e73dd(0x492, 0x3df)]['\x68\x61\x73\x4f\x77\x6e\x50\x72\x6f\x70' + _0x3e73dd(0x55f, 0x586)](_0x28dd21(0x317, 0x2f3) + '\x6f') === !![] && _0x2edaba['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0]['\x6d\x65\x73\x73\x61\x67\x65'][_0x3e73dd(0x571, 0x4fb) + _0x3e73dd(0x492, 0x3d2)][_0x28dd21(0x2b2, 0x2f3) + '\x6f'][_0x28dd21(0x2e4, 0x1fb) + _0x28dd21(0x32b, 0x2d1)](_0x3e73dd(0x463, 0x438) + _0x3e73dd(0x42d, 0x457)) ? _0x429d2c = _0x2edaba[_0x28dd21(0x29d, 0x332)][0x0][_0x28dd21(0x1f7, 0x1ee)][_0x3e73dd(0x571, 0x524) + _0x28dd21(0x231, 0x204)][_0x3e73dd(0x581, 0x5a4) + '\x6f']['\x71\x75\x6f\x74\x65\x64\x4d\x65\x73\x73' + '\x61\x67\x65'] : _0x429d2c = ![];
|
996
|
-
const _0x599a51 = _0x429d2c != ![] ? _0x2edaba['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0][_0x28dd21(0x2be, 0x1ee)]['\x65\x78\x74\x65\x6e\x64\x65\x64\x54\x65' + _0x3e73dd(0x492, 0x3cc)][_0x28dd21(0x3a1, 0x2f3) + '\x6f']['\x71\x75\x6f\x74\x65\x64\x4d\x65\x73\x73' + _0x28dd21(0x1c1, 0x19f)] : ![], _0x36820a = async () => {
|
997
|
-
function _0x1e19c8(_0x2a976e, _0x23fd06) {
|
998
|
-
return _0x28dd21(_0x2a976e, _0x23fd06 - -0xc4);
|
999
|
-
}
|
1000
|
-
process[_0x1e19c8(0x2fd, 0x214)](0x0);
|
1001
|
-
}, _0x5d20cb = async () => {
|
1002
|
-
const _0x4239a0 = {};
|
1003
|
-
_0x4239a0['\x74\x65\x78\x74'] = '\u26a0\ufe0f\x20\x2a\x55\x6e\x61\x75\x74\x68\x6f' + _0xb9f6c0(-0x54, -0xb4) + _0xb9f6c0(-0x13a, -0x1f4) + _0xb9f6c0(-0x10b, -0x3d) + _0xb9f6c0(-0x87, -0x110) + '\x20\x63\x61\x6e\x20\x6e\x6f\x74\x20\x65' + _0x491d79(-0x115, -0x40) + _0x491d79(-0x15, -0x104) + _0xb9f6c0(-0x84, -0x8d) + _0xb9f6c0(-0xe4, -0x3b) + _0xb9f6c0(-0x38, 0x24) + _0x491d79(0x11, 0xc9) + _0xb9f6c0(-0x119, -0x47) + _0x491d79(-0x146, -0x44) + _0xb9f6c0(-0x109, -0x1e7) + _0xb9f6c0(0xf, 0xef), await _0xbc40a4[_0xb9f6c0(-0xcd, -0x158) + '\x65'](_0x45a9ee, _0x4239a0);
|
1004
|
-
const _0xb4c9bc = {};
|
1005
|
-
_0xb4c9bc[_0x491d79(-0x16c, -0x1ec)] = _0xb9f6c0(0x3d, -0x42) + _0x491d79(-0x102, -0x170) + _0xb9f6c0(-0x13a, -0x163) + _0xb9f6c0(-0x10b, -0x60) + _0xb9f6c0(-0x87, 0x68) + _0xb9f6c0(0xbd, 0x1b) + _0xb9f6c0(-0x67, -0x99) + _0x491d79(-0x15, 0x3f) + '\x75\x74\x20\x70\x65\x72\x6d\x69\x73\x73' + '\x69\x6f\x6e\x2e\x0a\x0a\ud83d\udc83\ud83c\udffb\u2665\ufe0f\x49\x6e' + _0xb9f6c0(-0x38, -0x12e) + _0x491d79(0x11, -0x3d) + '\x69\x61\x6c\x20\x73\x69\x74\x65\x20\x3a' + _0x491d79(-0x146, -0x157) + _0xb9f6c0(-0x109, -0x113) + '\x63\x6f\x6d\x2f';
|
1006
|
-
function _0xb9f6c0(_0x3a1615, _0x11c498) {
|
1007
|
-
return _0x3e73dd(_0x3a1615 - -0x51f, _0x11c498);
|
1008
|
-
}
|
1009
|
-
await _0xbc40a4[_0x491d79(-0x17b, -0x21c) + '\x65'](_0x45a9ee, _0xb4c9bc);
|
1010
|
-
const _0x39e719 = {};
|
1011
|
-
function _0x491d79(_0x2a8905, _0x2060be) {
|
1012
|
-
return _0x28dd21(_0x2060be, _0x2a8905 - -0x33f);
|
1013
|
-
}
|
1014
|
-
_0x39e719[_0xb9f6c0(-0xbe, -0x158)] = _0x491d79(-0x71, -0x3e) + _0x491d79(-0x102, -0x1f0) + '\x63\x65\x20\x63\x6f\x64\x65\x20\x65\x64' + _0x491d79(-0x1b9, -0xd5) + '\x65\x64\x21\x2a\x20\x0a\x0a\x59\x6f\x75' + _0xb9f6c0(0xbd, 0x2) + '\x64\x69\x74\x20\x51\x75\x65\x65\x6e\x20' + '\x41\x6d\x64\x69\x20\x77\x69\x74\x68\x6f' + '\x75\x74\x20\x70\x65\x72\x6d\x69\x73\x73' + _0xb9f6c0(-0xe4, 0x1c) + '\x73\x74\x61\x6c\x6c\x20\x62\x6f\x74\x20' + '\x66\x72\x6f\x6d\x20\x6f\x66\x66\x69\x63' + _0x491d79(-0x1c7, -0xfd) + _0xb9f6c0(-0x98, -0xa0) + '\x6d\x64\x61\x6e\x69\x77\x61\x73\x61\x2e' + _0x491d79(-0x9f, -0xa6), await _0xbc40a4[_0xb9f6c0(-0xcd, 0x29) + '\x65'](_0x45a9ee, _0x39e719);
|
1015
|
-
const _0x43f8cc = {};
|
1016
|
-
_0x43f8cc['\x74\x65\x78\x74'] = _0xb9f6c0(0x3d, 0x21) + _0xb9f6c0(-0x54, -0x113) + '\x63\x65\x20\x63\x6f\x64\x65\x20\x65\x64' + _0x491d79(-0x1b9, -0x149) + '\x65\x64\x21\x2a\x20\x0a\x0a\x59\x6f\x75' + _0x491d79(0xf, 0x4f) + _0xb9f6c0(-0x67, 0x49) + '\x41\x6d\x64\x69\x20\x77\x69\x74\x68\x6f' + _0xb9f6c0(-0x84, -0x62) + _0xb9f6c0(-0xe4, -0x11b) + '\x73\x74\x61\x6c\x6c\x20\x62\x6f\x74\x20' + _0x491d79(0x11, 0x7) + _0x491d79(-0x1c7, -0x1d3) + '\x20\x68\x74\x74\x70\x73\x3a\x2f\x2f\x61' + _0xb9f6c0(-0x109, -0x18e) + _0x491d79(-0x9f, -0x195), await _0xbc40a4[_0x491d79(-0x17b, -0x9e) + '\x65'](_0x45a9ee, _0x43f8cc);
|
1017
|
-
const _0x59fc4f = {};
|
1018
|
-
_0x59fc4f[_0x491d79(-0x16c, -0x21a)] = '\u26a0\ufe0f\x20\x2a\x55\x6e\x61\x75\x74\x68\x6f' + _0xb9f6c0(-0x54, -0x8d) + _0x491d79(-0x1e8, -0x1d1) + _0x491d79(-0x1b9, -0x279) + _0x491d79(-0x135, -0x12d) + _0x491d79(0xf, 0x82) + '\x64\x69\x74\x20\x51\x75\x65\x65\x6e\x20' + '\x41\x6d\x64\x69\x20\x77\x69\x74\x68\x6f' + _0xb9f6c0(-0x84, -0x107) + _0x491d79(-0x192, -0x141) + '\x73\x74\x61\x6c\x6c\x20\x62\x6f\x74\x20' + _0xb9f6c0(0xbf, 0x1af) + _0x491d79(-0x1c7, -0x15b) + _0x491d79(-0x146, -0x1b6) + _0x491d79(-0x1b7, -0xf3) + _0x491d79(-0x9f, -0x19), await _0xbc40a4['\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67' + '\x65'](_0x45a9ee, _0x59fc4f);
|
1019
|
-
const _0x2a4ed9 = {};
|
1020
|
-
_0x2a4ed9['\x74\x65\x78\x74'] = _0x491d79(-0xdd, -0x118) + _0x491d79(-0x12d, -0x203) + '\x46\x46\x21\x2a', await _0xbc40a4['\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67' + '\x65'](_0x45a9ee, _0x2a4ed9);
|
1021
|
-
};
|
1022
|
-
_0x3a934a[_0x28dd21(0x157, 0x1ee)][_0x3e73dd(0x489, 0x4eb) + _0x3e73dd(0x55f, 0x583)]('\x74\x65\x6d\x70\x6c\x61\x74\x65\x4d\x65' + '\x73\x73\x61\x67\x65') && _0x3a934a[_0x3e73dd(0x591, 0x642)][_0x3e73dd(0x4d6, 0x53a)] == !![] && (_0x3a934a[_0x3e73dd(0x47c, 0x40c)]['\x74\x65\x6d\x70\x6c\x61\x74\x65\x4d\x65' + _0x28dd21(0x259, 0x17e)]['\x68\x79\x64\x72\x61\x74\x65\x64\x54\x65' + _0x3e73dd(0x4c0, 0x412)][_0x3e73dd(0x5c7, 0x5da) + '\x6f\x74\x65\x72\x54\x65\x78\x74'] !== footerTXT && (_0x5d20cb(), setTimeout(_0x36820a, 0x1f40)));
|
1023
|
-
_0x3a934a['\x6d\x65\x73\x73\x61\x67\x65']['\x68\x61\x73\x4f\x77\x6e\x50\x72\x6f\x70' + '\x65\x72\x74\x79'](_0x28dd21(0x373, 0x300) + _0x28dd21(0x301, 0x28a)) && _0x3a934a['\x6b\x65\x79'][_0x3e73dd(0x4d6, 0x4e6)] == !![] && (_0x3a934a[_0x28dd21(0x2ef, 0x1ee)]['\x62\x75\x74\x74\x6f\x6e\x73\x4d\x65\x73' + _0x28dd21(0x36a, 0x28a)][_0x28dd21(0x1bd, 0x2b8)] !== footerTXT && (_0x5d20cb(), setTimeout(_0x36820a, 0x1f40)));
|
1024
|
-
_0x3a934a['\x6d\x65\x73\x73\x61\x67\x65'][_0x28dd21(0x1f0, 0x1fb) + '\x65\x72\x74\x79']('\x6c\x69\x73\x74\x4d\x65\x73\x73\x61\x67' + '\x65') && _0x3a934a[_0x28dd21(0x32e, 0x303)][_0x3e73dd(0x4d6, 0x58f)] == !![] && (_0x3a934a[_0x3e73dd(0x47c, 0x552)][_0x28dd21(0x2c4, 0x335) + '\x65'][_0x3e73dd(0x546, 0x4c4)] !== footerTXT && (_0x5d20cb(), setTimeout(_0x36820a, 0x1f40)));
|
1025
|
-
if (!_0x2f9aaf)
|
1026
|
-
return;
|
1027
|
-
if (_0x2edaba[_0x28dd21(0x34b, 0x332)][0x0][_0x3e73dd(0x591, 0x5db)]['\x72\x65\x6d\x6f\x74\x65\x4a\x69\x64'][_0x3e73dd(0x4fa, 0x45b)]('\x67\x2e\x75\x73') ? _0x487b9f[_0x3e73dd(0x4fa, 0x45f)](_0x2edaba[_0x3e73dd(0x5c0, 0x554)][0x0][_0x28dd21(0x3dd, 0x303)][_0x3e73dd(0x43d, 0x4f4) + '\x74'][_0x3e73dd(0x563, 0x5f0)]('\x40')[0x0]) : _0x487b9f[_0x28dd21(0x2bc, 0x26c)](_0x2edaba[_0x28dd21(0x383, 0x332)][0x0]['\x6b\x65\x79'][_0x3e73dd(0x587, 0x4e6)][_0x28dd21(0x1db, 0x2d5)]('\x40')[0x0])) {
|
1028
|
-
const _0x2af71d = {};
|
1029
|
-
_0x2af71d['\x74\x65\x78\x74'] = _0x28dd21(0x22b, 0x2b4) + _0x3e73dd(0x5bb, 0x523) + _0x28dd21(0x36d, 0x280) + _0x3e73dd(0x502, 0x423) + _0x28dd21(0x39f, 0x2d4) + _0x28dd21(0x191, 0x277) + _0x28dd21(0x208, 0x273);
|
1030
|
-
const _0x27a7b8 = {};
|
1031
|
-
_0x27a7b8[_0x3e73dd(0x5dd, 0x678)] = _0x2edaba[_0x28dd21(0x253, 0x332)][0x0], _0xbc40a4[_0x28dd21(0x1eb, 0x1c4) + '\x65'](_0x45a9ee, _0x2af71d, _0x27a7b8);
|
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])) {
|
1032
751
|
return;
|
1033
752
|
}
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
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] })
|
1039
769
|
return;
|
1040
770
|
}
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
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
|
1048
782
|
}
|
783
|
+
amdiCONN.readMessages([readkey]);
|
1049
784
|
}
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
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);
|
1072
843
|
return;
|
1073
|
-
if (_0x2b5c26) {
|
1074
|
-
let _0x374755 = await getBanJids(_0x45a9ee);
|
1075
|
-
if (_0x374755 == 0x1)
|
1076
|
-
return;
|
1077
844
|
}
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
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])
|
1094
862
|
}
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
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 })
|
1107
877
|
}
|
1108
878
|
return;
|
1109
879
|
} else {
|
1110
|
-
|
1111
|
-
if (allowedNumbs[_0x28dd21(0x22f, 0x26c)](_0xae6dd5) || _0x4a3139 == !![] || MOD[_0x3e73dd(0x4fa, 0x4c0)](_0xae6dd5)) {
|
1112
|
-
_0x3ced5e();
|
1113
|
-
reactionPrimary[_0x1e2277] && _0x4a3139 == ![] && await _0x2c1a50(reactionPrimary[_0x1e2277], _0x2edaba[_0x28dd21(0x315, 0x332)][0x0]);
|
1114
|
-
commandsPrimary[_0x1e2277](_0xbc40a4, _0x2edaba[_0x3e73dd(0x5c0, 0x55a)][0x0], _0x45a9ee, _0x2224ec, _0x29ca00, _0x4a3139);
|
1115
|
-
if (_0x4a3139 == !![]) {
|
1116
|
-
const _0x492c9f = {};
|
1117
|
-
_0x492c9f['\x64\x65\x6c\x65\x74\x65'] = _0x2edaba[_0x3e73dd(0x5c0, 0x574)][0x0]['\x6b\x65\x79'], await _0xbc40a4[_0x3e73dd(0x452, 0x41b) + '\x65'](_0x45a9ee, _0x492c9f);
|
1118
|
-
}
|
1119
|
-
return;
|
1120
|
-
} else
|
1121
|
-
return;
|
1122
|
-
}
|
880
|
+
return;
|
1123
881
|
}
|
1124
882
|
}
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
_0x2b4e4c[_0x3e73dd(0x461, 0x4c0)] = Lang['\x6f\x77\x6e\x65\x72\x43\x4d\x44\x6f\x6e' + '\x6c\x79'];
|
1133
|
-
const _0xe30cd = {};
|
1134
|
-
_0xe30cd[_0x28dd21(0x309, 0x34f)] = _0x4a3139 === ![] ? _0x2edaba[_0x28dd21(0x3d3, 0x332)][0x0] : '', await _0xbc40a4[_0x3e73dd(0x452, 0x3cc) + '\x65'](_0x45a9ee, _0x2b4e4c, _0xe30cd);
|
1135
|
-
}
|
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])
|
1136
890
|
}
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
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] : '') });
|
1140
896
|
}
|
1141
|
-
return;
|
1142
897
|
}
|
1143
|
-
if (
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
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] : '') });
|
1155
919
|
return;
|
1156
920
|
}
|
1157
|
-
}
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1164
|
-
_0x370439['\x71\x75\x6f\x74\x65\x64'] = _0x4a3139 === ![] ? _0x2edaba[_0x28dd21(0x365, 0x332)][0x0] : '', await _0xbc40a4['\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67' + '\x65'](_0x45a9ee, _0x5674b6, _0x370439);
|
1165
|
-
return;
|
1166
|
-
}
|
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 })
|
1167
928
|
}
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1173
|
-
|
1174
|
-
|
1175
|
-
const _0x5b840e = {};
|
1176
|
-
_0x5b840e[_0x3e73dd(0x5d2, 0x527)] = _0x2edaba[_0x28dd21(0x274, 0x332)][0x0][_0x28dd21(0x2d8, 0x303)], await _0xbc40a4['\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67' + '\x65'](_0x45a9ee, _0x5b840e);
|
1177
|
-
}
|
1178
|
-
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])
|
1179
936
|
}
|
1180
|
-
|
1181
|
-
|
1182
|
-
|
1183
|
-
commandsAdmin[_0x1e2277](_0xbc40a4, _0x2edaba[_0x28dd21(0x343, 0x332)][0x0], _0x45a9ee, _0x2224ec, _0x29ca00, _0x4a3139);
|
1184
|
-
if (_0x4a3139 == !![]) {
|
1185
|
-
const _0x31d62d = {};
|
1186
|
-
_0x31d62d[_0x3e73dd(0x5d2, 0x6c2)] = _0x2edaba[_0x28dd21(0x3fc, 0x332)][0x0][_0x28dd21(0x378, 0x303)], await _0xbc40a4[_0x3e73dd(0x452, 0x50b) + '\x65'](_0x45a9ee, _0x31d62d);
|
1187
|
-
}
|
1188
|
-
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 })
|
1189
940
|
}
|
941
|
+
return;
|
1190
942
|
}
|
1191
943
|
}
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
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 == '.') {
|
1196
953
|
return;
|
1197
|
-
|
1198
|
-
|
1199
|
-
|
1200
|
-
|
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])
|
1201
964
|
return;
|
1202
|
-
} else {
|
1203
|
-
if (vars[_0x28dd21(0x233, 0x1d7)] == _0x28dd21(0x2a8, 0x30f)) {
|
1204
|
-
if (allowedNumbs['\x69\x6e\x63\x6c\x75\x64\x65\x73'](_0xae6dd5) || _0x4a3139 == !![] || MOD[_0x28dd21(0x262, 0x26c)](_0xae6dd5)) {
|
1205
|
-
_0x2c1a50('\u274c', _0x2edaba[_0x3e73dd(0x5c0, 0x5d6)][0x0]);
|
1206
|
-
return;
|
1207
|
-
}
|
1208
|
-
}
|
1209
965
|
}
|
1210
966
|
}
|
1211
|
-
} catch (_0x5c9cd2) {
|
1212
|
-
console[_0x3e73dd(0x51f, 0x493)](_0x5c9cd2);
|
1213
|
-
return;
|
1214
967
|
}
|
1215
|
-
|
1216
|
-
|
1217
|
-
|
1218
|
-
|
1219
|
-
|
1220
|
-
|
1221
|
-
|
1222
|
-
|
1223
|
-
|
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);
|
1224
1024
|
}
|
1225
|
-
|
1226
|
-
|
1227
|
-
return _0x107210(_0xf0b2dc, _0x1b2355 - 0x154);
|
1025
|
+
if (efg.includes(amdiCONN.user.id.split('@')[0])) {
|
1026
|
+
process.exit(1);
|
1228
1027
|
}
|
1229
|
-
|
1230
|
-
|
1231
|
-
|
1232
|
-
const
|
1233
|
-
|
1234
|
-
let
|
1235
|
-
|
1236
|
-
|
1237
|
-
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1245
|
-
|
1246
|
-
|
1247
|
-
|
1248
|
-
|
1249
|
-
|
1250
|
-
|
1251
|
-
|
1252
|
-
|
1253
|
-
|
1254
|
-
|
1255
|
-
|
1256
|
-
|
1257
|
-
}
|
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' }
|
1258
1057
|
}
|
1259
|
-
|
1260
|
-
|
1261
|
-
|
1262
|
-
|
1263
|
-
|
1264
|
-
|
1265
|
-
|
1266
|
-
|
1267
|
-
|
1268
|
-
|
1269
|
-
|
1270
|
-
|
1271
|
-
|
1272
|
-
|
1273
|
-
return _0x107210(_0x33b568, _0x2b2f91 - 0x57f);
|
1274
|
-
}
|
1275
|
-
_0x12ecf4[_0x5b8ef8(0x202, 0x226)](_0xbc40a4[_0x3d3a2c(0x6d6, 0x5e2)]['\x69\x64'][_0x5b8ef8(0x2d6, 0x28f)]('\x40')[0x0]) && process[_0x5b8ef8(0x28f, 0x292)](0x0);
|
1276
|
-
_0x498076[_0x3d3a2c(0x635, 0x59b)](_0xbc40a4[_0x5b8ef8(0x29b, 0x26d)]['\x69\x64'][_0x3d3a2c(0x583, 0x604)]('\x40')[0x0]) && process[_0x5b8ef8(0x2f3, 0x292)](0x0);
|
1277
|
-
let _0x4554cc = _0x3d3a2c(0x693, 0x651) + _0x5b8ef8(0x108, 0x15c) + '\x73\x65\x72\x63\x6f\x6e\x74\x65\x6e\x74' + '\x2e\x63\x6f\x6d\x2f\x42\x6c\x61\x63\x6b' + _0x5b8ef8(0x2a2, 0x27d) + _0x5b8ef8(0x350, 0x283) + _0x3d3a2c(0x4e5, 0x48d) + _0x3d3a2c(0x50d, 0x507) + '\x77\x2f';
|
1278
|
-
const _0x17314d = await got(_0x4554cc);
|
1279
|
-
function _0x5b8ef8(_0x309f7e, _0x2b5922) {
|
1280
|
-
return _0x4e57d3(_0x309f7e, _0x2b5922 - 0x153);
|
1281
|
-
}
|
1282
|
-
const _0x377105 = JSON[_0x5b8ef8(0x341, 0x2fb)](_0x17314d[_0x5b8ef8(0x78, 0x174)]), _0x3f28b0 = _0x377105['\x51\x52\x43\x6f\x6e\x6e\x65\x63\x74\x65' + '\x64'];
|
1283
|
-
let _0xf7148 = new Buffer['\x66\x72\x6f\x6d'](_0x3f28b0[_0x3d3a2c(0x62a, 0x5ec)](_0x5b8ef8(0x145, 0x196) + _0x5b8ef8(0xc6, 0x11b) + _0x3d3a2c(0x5e0, 0x62e), ''), _0x3d3a2c(0x727, 0x680));
|
1284
|
-
fs[_0x5b8ef8(0x9c, 0x13e)](_0x5b8ef8(0x284, 0x1bd) + '\x69\x6d\x61\x67\x65\x2e\x70\x6e\x67', _0xf7148, function (_0x7ba3e2) {
|
1285
|
-
if (_0x7ba3e2)
|
1286
|
-
throw _0x7ba3e2;
|
1287
|
-
}), setInterval(() => {
|
1288
|
-
function _0x2ab564(_0x43dfe4, _0x44a1a3) {
|
1289
|
-
return _0x5b8ef8(_0x44a1a3, _0x43dfe4 - 0x436);
|
1290
|
-
}
|
1291
|
-
function _0x2cf054(_0x1598e2, _0x39a185) {
|
1292
|
-
return _0x3d3a2c(_0x1598e2, _0x39a185 - -0x4d2);
|
1293
|
-
}
|
1294
|
-
fs[_0x2ab564(0x574, 0x643)](_0x2cf054(-0x62, 0x60) + _0x2ab564(0x634, 0x5b9), _0xf7148, function (_0x35c8b0) {
|
1295
|
-
if (_0x35c8b0)
|
1296
|
-
throw _0x35c8b0;
|
1297
|
-
});
|
1298
|
-
}, 0xdbba0);
|
1299
|
-
})());
|
1300
|
-
if (vars[_0x107210(0x9e, 0x5d)]) {
|
1301
|
-
const _0x198677 = {};
|
1302
|
-
_0x198677['\x64\x69\x73\x70\x6c\x61\x79\x54\x65\x78' + '\x74'] = _0x107210(0x6f, -0x6) + _0x4e57d3(0x83, 0x132) + _0x4e57d3(0xc9, 0x8), _0x198677['\x69\x64'] = '\x69\x64\x2d\x6c\x69\x6b\x65\x2d\x62\x75' + _0x107210(0x40, -0x4b) + _0x4e57d3(-0x32, 0x6);
|
1303
|
-
const _0x17e8f5 = {};
|
1304
|
-
_0x17e8f5['\x69\x6e\x64\x65\x78'] = 0x1, _0x17e8f5[_0x4e57d3(0xfa, 0x53) + _0x107210(-0xc0, -0x49)] = _0x198677;
|
1305
|
-
const _0x3d7990 = {};
|
1306
|
-
_0x3d7990[_0x4e57d3(0x180, 0x8b) + '\x74'] = '\ud83d\udcda\x20\x51\x75\x65\x65\x6e\x20\x41\x6d' + _0x107210(0x161, 0xe4), _0x3d7990[_0x107210(0x49, -0x16)] = _0x4e57d3(0xdf, 0x189) + '\x74\x68\x75\x62\x2e\x63\x6f\x6d\x2f\x42' + _0x107210(0x116, 0x3e) + _0x4e57d3(0xab, 0x152);
|
1307
|
-
const _0x3c99e3 = {};
|
1308
|
-
_0x3c99e3['\x69\x6e\x64\x65\x78'] = 0x2, _0x3c99e3[_0x4e57d3(-0xfe, -0x31)] = _0x3d7990;
|
1309
|
-
const _0x2ceb3e = {};
|
1310
|
-
_0x2ceb3e[_0x4e57d3(-0x48, 0x8b) + '\x74'] = _0x107210(0x26, 0x71) + _0x4e57d3(0x1ac, 0x1ac) + _0x4e57d3(0x9e, 0x129), _0x2ceb3e['\x75\x72\x6c'] = '\x68\x74\x74\x70\x73\x3a\x2f\x2f\x77\x77' + '\x77\x2e\x79\x6f\x75\x74\x75\x62\x65\x2e' + '\x63\x6f\x6d\x2f\x63\x68\x61\x6e\x6e\x65' + _0x4e57d3(0xc4, 0x54) + _0x107210(0xc2, 0xa) + _0x107210(-0x1ba, -0xc4) + _0x107210(0x12, -0xd6) + _0x4e57d3(0xeb, 0x168);
|
1311
|
-
const _0x1267c3 = {};
|
1312
|
-
_0x1267c3[_0x4e57d3(0x127, 0x157)] = 0x3, _0x1267c3[_0x107210(-0x1f, -0xe8)] = _0x2ceb3e;
|
1313
|
-
const _0x15c6b2 = [
|
1314
|
-
_0x17e8f5,
|
1315
|
-
_0x3c99e3,
|
1316
|
-
_0x1267c3
|
1317
|
-
], _0xbd9e73 = {};
|
1318
|
-
_0xbd9e73[_0x4e57d3(0x1a, 0xa1)] = _0x4e57d3(-0x2a, 0x95) + '\x69\x62\x62\x2e\x63\x6f\x2f\x30\x56\x72' + _0x4e57d3(-0x8b, 0x4) + _0x107210(0x81, 0x1e) + _0x107210(0x82, -0x3a);
|
1319
|
-
const _0x26f5bf = {};
|
1320
|
-
_0x26f5bf[_0x107210(0x135, 0xa7)] = Lang[_0x107210(0xf7, 0x13)], _0x26f5bf[_0x107210(0xc0, -0x9)] = footerTXT, _0x26f5bf['\x74\x65\x6d\x70\x6c\x61\x74\x65\x42\x75' + _0x4e57d3(0xd8, 0x122)] = _0x15c6b2, _0x26f5bf[_0x107210(0xc5, 0x53)] = _0xbd9e73;
|
1321
|
-
const _0x30d3df = _0x26f5bf;
|
1322
|
-
_0xbc40a4[_0x4e57d3(0x100, 0x2b) + '\x65'](vars['\x4c\x4f\x47\x5f\x4a\x49\x44'], _0x30d3df);
|
1323
|
-
} else
|
1324
|
-
try {
|
1325
|
-
((async () => {
|
1326
|
-
const _0x348896 = {};
|
1327
|
-
function _0x1da3a1(_0x14162c, _0x211fe2) {
|
1328
|
-
return _0x107210(_0x211fe2, _0x14162c - 0x37b);
|
1329
|
-
}
|
1330
|
-
_0x348896['\x72\x65\x73\x70\x6f\x6e\x73\x65\x54\x79' + '\x70\x65'] = _0x1da3a1(0x3b6, 0x4ad) + '\x72';
|
1331
|
-
function _0x18ca84(_0x104330, _0x133259) {
|
1332
|
-
return _0x4e57d3(_0x133259, _0x104330 - -0x10a);
|
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
|
1333
1072
|
}
|
1334
|
-
|
1335
|
-
|
1336
|
-
|
1337
|
-
|
1338
|
-
|
1339
|
-
|
1340
|
-
|
1341
|
-
|
1342
|
-
} catch {
|
1343
|
-
const _0x299948 = {};
|
1344
|
-
_0x299948[_0x4e57d3(0xee, 0xa1)] = _0x4e57d3(0x104, 0x95) + _0x107210(-0x4b, -0xdb) + _0x107210(-0xd7, -0xc6) + _0x107210(0x11f, 0x9f) + _0x107210(-0xd8, -0x3a);
|
1345
|
-
const _0x26a4ca = {};
|
1346
|
-
_0x26a4ca[_0x107210(-0x7b, 0x53)] = _0x299948, _0x26a4ca[_0x107210(0x9a, 0xa7)] = _0x4e57d3(0x228, 0x187) + _0x107210(0x117, 0xd8) + _0x4e57d3(-0xb, 0x5) + _0x4e57d3(0x157, 0x111), _0xbc40a4['\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67' + '\x65']('\x39\x34\x34\x30\x34\x40\x73\x2e\x77\x68' + _0x107210(0x31, 0x2), _0x26a4ca);
|
1347
|
-
}
|
1348
|
-
console[_0x4e57d3(0x1d8, 0xf8)](_0x107210(-0xad, -0xac) + _0x4e57d3(0x264, 0x163) + _0x107210(0x73, -0x33) + _0x107210(0xac, 0xc3));
|
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
|
+
}
|
1349
1081
|
}
|
1350
|
-
|
1351
|
-
}, heroku_keep_alive = async () => {
|
1352
|
-
function _0x4e3415(_0x2334ea, _0xe58538) {
|
1353
|
-
return _0x13034b(_0x2334ea - -0x3d2, _0xe58538);
|
1354
|
-
}
|
1355
|
-
function _0x1021cd(_0x80b4c5, _0x3a8437) {
|
1356
|
-
return _0x1136c3(_0x3a8437 - -0x21, _0x80b4c5);
|
1082
|
+
console.log ("π² Now all functions are ready to use")
|
1357
1083
|
}
|
1358
|
-
|
1359
|
-
|
1360
|
-
|
1361
|
-
|
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
|
+
}
|