queenamdi-functions-beta 0.0.27 β†’ 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,1395 +1,1098 @@
1
- (function (_0x7657d, _0xe6de5a) {
2
- const _0x1aec9d = _0x7657d();
3
- function _0x3fd001(_0x49c49a, _0x9bafc5) {
4
- return _0x3d39(_0x9bafc5 - 0xe5, _0x49c49a);
5
- }
6
- function _0x1191bb(_0x3e64af, _0x161399) {
7
- return _0x3d39(_0x161399 - 0x2c8, _0x3e64af);
8
- }
9
- while (!![]) {
10
- try {
11
- const _0x29e6be = -parseInt(_0x3fd001(0x210, 0x2e3)) / 0x1 * (-parseInt(_0x3fd001(0x37f, 0x2ee)) / 0x2) + parseInt(_0x1191bb(0x4a3, 0x4b4)) / 0x3 * (-parseInt(_0x1191bb(0x4e3, 0x4e4)) / 0x4) + parseInt(_0x1191bb(0x5fe, 0x50e)) / 0x5 * (parseInt(_0x3fd001(0x452, 0x3d6)) / 0x6) + -parseInt(_0x1191bb(0x5a1, 0x574)) / 0x7 * (-parseInt(_0x3fd001(0x429, 0x3ae)) / 0x8) + parseInt(_0x1191bb(0x67b, 0x58b)) / 0x9 * (parseInt(_0x1191bb(0x52e, 0x480)) / 0xa) + -parseInt(_0x3fd001(0x41f, 0x371)) / 0xb + parseInt(_0x1191bb(0x3a1, 0x46f)) / 0xc * (-parseInt(_0x1191bb(0x640, 0x588)) / 0xd);
12
- if (_0x29e6be === _0xe6de5a)
13
- break;
14
- else
15
- _0x1aec9d['push'](_0x1aec9d['shift']());
16
- } catch (_0x1f52f4) {
17
- _0x1aec9d['push'](_0x1aec9d['shift']());
18
- }
19
- }
20
- }(_0x1efd, 0x297f5));
1
+ // <<==== Baileys ====>>
21
2
  const {
22
- default: makeWASocket,
23
- DisconnectReason,
24
- useSingleFileAuthState,
25
- useMultiFileAuthState,
26
- MessageRetryMap,
27
- getDevice,
28
- makeInMemoryStore,
29
- fetchLatestBaileysVersion
30
- } = require(_0x39d3a5(0x415, 0x3ac) + _0x39d3a5(0x429, 0x412)), axios = require(_0x5aee3c(-0x177, -0x196)), CryptoJS = require(_0x39d3a5(0x2cb, 0x2e7)), fs = require('\x66\x73'), got = require(_0x39d3a5(0x496, 0x4be)), QRCode = require(_0x5aee3c(-0x2b9, -0x1d8)), sharp = require(_0x39d3a5(0x3d4, 0x42e)), amdiDB = require(_0x5aee3c(-0x193, -0x1d6) + '\x73\x73\x65\x74\x73\x2f\x61\x6d\x64\x69' + '\x44\x42'), vars = require(_0x5aee3c(-0x1e2, -0x1d6) + _0x5aee3c(-0x182, -0xa3) + _0x5aee3c(-0x1b5, -0x10c)), Heroku = require(_0x39d3a5(0x48b, 0x4cc) + _0x39d3a5(0x472, 0x4fc)), _0x451a18 = {};
31
- _0x451a18[_0x5aee3c(-0x16d, -0x23b)] = vars[_0x5aee3c(0x1c, -0xbc)];
32
- const heroku = new Heroku(_0x451a18);
33
- let baseURI = _0x5aee3c(-0x1b2, -0x174) + vars[_0x5aee3c(-0x15e, -0x1a5)];
34
- const {state, saveState} = useSingleFileAuthState(_0x39d3a5(0x2d4, 0x39d) + _0x39d3a5(0x434, 0x439)), msgRetryCounterMap = {}, Language = require('\x2e\x2e\x2f\x2e\x2e\x2f\x2e\x2e\x2f\x6c' + _0x39d3a5(0x35b, 0x3da) + '\x70\x6c\x79\x4c\x41\x4e\x47'), Lang = Language[_0x39d3a5(0x3be, 0x330)](_0x5aee3c(-0x20f, -0x1f5));
35
- let messages = [];
36
- function deleteMessageST(_0x448194) {
37
- delete messages[_0x448194];
3
+ default: makeWASocket,
4
+ DisconnectReason,
5
+ useSingleFileAuthState,
6
+ useMultiFileAuthState,
7
+ MessageRetryMap,
8
+ getDevice,
9
+ makeInMemoryStore,
10
+ fetchLatestBaileysVersion,
11
+ } = require("@adiwajshing/baileys");
12
+
13
+ const axios = require('axios');
14
+ const CryptoJS = require("crypto-js");
15
+ const fs = require("fs");
16
+ const got = require('got');
17
+ const QRCode = require('qrcode')
18
+ const sharp = require('sharp');
19
+
20
+ const amdiDB = require('../../../assets/amdiDB'); // QueenAmdi Database
21
+ const vars = require('../../../assets/amdiSettings')
22
+
23
+ // <<==== HEROKU ====>>
24
+ const Heroku = require('heroku-client');
25
+ const heroku = new Heroku({
26
+ token: vars.HEROKU_API
27
+ });
28
+ let baseURI = '/apps/' + vars.HEROKU_APP;
29
+
30
+ const { state, saveState } = useSingleFileAuthState("./amdi_session.json");
31
+
32
+ const msgRetryCounterMap = {};
33
+
34
+ // <<==== Language ====>>
35
+ const Language = require('../../../language/applyLANG');
36
+ const Lang = Language.getString('amdiModule');
37
+
38
+ // <==== Temp Store ====>
39
+ let messages = []
40
+ function deleteMessageST(messageID) {
41
+ delete messages[messageID]
38
42
  }
39
- function saveMessageST(_0x5d0588, _0x3b3a18) {
40
- messages[_0x5d0588] = _0x3b3a18;
43
+ function saveMessageST(messageID, txt) {
44
+ messages[messageID] = txt
41
45
  }
42
- function getMessageST(_0x4af7de) {
43
- return messages[_0x4af7de];
46
+ function getMessageST(messageID) {
47
+ return messages[messageID]
48
+
44
49
  }
45
50
  function clearMessagesST() {
46
- messages = [];
47
- }
48
- function _0x3d39(_0x4ec515, _0x30768b) {
49
- const _0x1efde1 = _0x1efd();
50
- return _0x3d39 = function (_0x3d39ef, _0x121aa2) {
51
- _0x3d39ef = _0x3d39ef - 0x182;
52
- let _0x3fb907 = _0x1efde1[_0x3d39ef];
53
- return _0x3fb907;
54
- }, _0x3d39(_0x4ec515, _0x30768b);
51
+ messages = []
55
52
  }
56
- function _0x5aee3c(_0x5f5d68, _0x22f865) {
57
- return _0x3d39(_0x22f865 - -0x3d7, _0x5f5d68);
53
+ setInterval(clearMessagesST, 120000)
54
+
55
+ const retryMessageHandler = async message => {
56
+ let text = getMessageST(message.id)
57
+ deleteMessageST(message.id)
58
+ return {
59
+ conversation: text
60
+ }
58
61
  }
59
- setInterval(clearMessagesST, 0x1d4c0);
60
- const retryMessageHandler = async _0x2bd9cd => {
61
- let _0x35837d = getMessageST(_0x2bd9cd['\x69\x64']);
62
- deleteMessageST(_0x2bd9cd['\x69\x64']);
63
- const _0x2174ae = {};
64
- return _0x2174ae['\x63\x6f\x6e\x76\x65\x72\x73\x61\x74\x69' + '\x6f\x6e'] = _0x35837d, _0x2174ae;
65
- };
62
+
66
63
  function deleteAuth() {
67
- function _0x554b9b(_0x43a2af, _0x2a1e9b) {
68
- return _0x5aee3c(_0x2a1e9b, _0x43a2af - 0x4d2);
69
- }
70
- function _0x3221c8(_0x18daa8, _0xc581ca) {
71
- return _0x39d3a5(_0x18daa8 - -0x336, _0xc581ca);
72
- }
73
64
  try {
74
- fs[_0x554b9b(0x31a, 0x2c4)](_0x3221c8(-0x62, 0x90) + '\x73\x69\x6f\x6e\x2e\x6a\x73\x6f\x6e');
75
- } catch (_0x135056) {
76
- console[_0x3221c8(-0x5c, -0xfe)](_0x3221c8(0xa3, 0xc5) + _0x3221c8(0x14, 0xe1) + _0x554b9b(0x440, 0x48a));
65
+ fs.unlinkSync("./amdi_session.json");
66
+ } catch (err) {
67
+ console.log("There is no session file.");
77
68
  }
78
69
  }
79
- const P = require(_0x39d3a5(0x4b1, 0x510));
80
- let MAIN_LOGGER = P({ '\x74\x69\x6d\x65\x73\x74\x61\x6d\x70': () => '\x2c\x22\x74\x69\x6d\x65\x22\x3a\x22' + new Date()[_0x5aee3c(-0x143, -0xed)]() + '\x22' });
81
- const logger = MAIN_LOGGER[_0x39d3a5(0x2ca, 0x214)]({});
82
- logger['\x6c\x65\x76\x65\x6c'] = _0x39d3a5(0x2c0, 0x369);
70
+
71
+ // <<==== Logger ====>>
72
+ const P = require("pino");
73
+ let MAIN_LOGGER = P({ timestamp: () => `,"time":"${new Date().toJSON()}"` });
74
+ const logger = MAIN_LOGGER.child({});
75
+ logger.level = 'silent';
76
+
77
+
78
+ // <<==== AUTH-FETCH ====>>
83
79
  let cred, auth_row_count;
84
80
  async function fetchauth() {
85
- function _0x42f6ca(_0x4bd4dd, _0x14a7da) {
86
- return _0x5aee3c(_0x4bd4dd, _0x14a7da - 0x605);
87
- }
88
- function _0x3ccf91(_0x173635, _0x396a69) {
89
- return _0x39d3a5(_0x396a69 - 0x18b, _0x173635);
90
- }
91
81
  try {
92
- auth_result = await amdiDB[_0x42f6ca(0x50d, 0x495)](_0x3ccf91(0x477, 0x4ea) + _0x3ccf91(0x595, 0x632)), console['\x6c\x6f\x67'](Lang[_0x3ccf91(0x57a, 0x57d)]), auth_row_count = await auth_result[_0x42f6ca(0x516, 0x41b)];
93
- let _0x52bdca = auth_result[_0x42f6ca(0x5d3, 0x543)][0x0];
94
- auth_row_count == 0x0 ? console[_0x42f6ca(0x437, 0x3d8)](Lang[_0x3ccf91(0x5cd, 0x548)]) : (console[_0x3ccf91(0x4c2, 0x465)](Lang['\x77\x61\x43\x6f\x6e\x49\x6d\x70\x6f\x72' + '\x74']), cred = {
95
- '\x63\x72\x65\x64\x73': {
96
- '\x6e\x6f\x69\x73\x65\x4b\x65\x79': JSON[_0x3ccf91(0x455, 0x4ff)](_0x52bdca['\x6e\x6f\x69\x73\x65\x6b\x65\x79']),
97
- '\x73\x69\x67\x6e\x65\x64\x49\x64\x65\x6e\x74\x69\x74\x79\x4b\x65\x79': JSON['\x70\x61\x72\x73\x65'](_0x52bdca[_0x42f6ca(0x51c, 0x56a) + _0x3ccf91(0x439, 0x46c)]),
98
- '\x73\x69\x67\x6e\x65\x64\x50\x72\x65\x4b\x65\x79': JSON[_0x3ccf91(0x420, 0x4ff)](_0x52bdca['\x73\x69\x67\x6e\x65\x64\x70\x72\x65\x6b' + '\x65\x79']),
99
- '\x72\x65\x67\x69\x73\x74\x72\x61\x74\x69\x6f\x6e\x49\x64': Number(_0x52bdca[_0x3ccf91(0x525, 0x5b9) + _0x3ccf91(0x59c, 0x4b2)]),
100
- '\x61\x64\x76\x53\x65\x63\x72\x65\x74\x4b\x65\x79': _0x52bdca[_0x42f6ca(0x4d8, 0x48f) + '\x65\x79'],
101
- '\x6e\x65\x78\x74\x50\x72\x65\x4b\x65\x79\x49\x64': Number(_0x52bdca[_0x3ccf91(0x471, 0x491) + '\x69\x64']),
102
- '\x66\x69\x72\x73\x74\x55\x6e\x75\x70\x6c\x6f\x61\x64\x65\x64\x50\x72\x65\x4b\x65\x79\x49\x64': Number(_0x52bdca[_0x42f6ca(0x541, 0x4df) + _0x42f6ca(0x45c, 0x408) + _0x3ccf91(0x5ae, 0x4fe)]),
103
- '\x73\x65\x72\x76\x65\x72\x48\x61\x73\x50\x72\x65\x4b\x65\x79\x73': ![],
104
- '\x61\x63\x63\x6f\x75\x6e\x74': JSON[_0x3ccf91(0x4ee, 0x4ff)](_0x52bdca[_0x42f6ca(0x57d, 0x572)]),
105
- '\x6d\x65': JSON[_0x42f6ca(0x47d, 0x472)](_0x52bdca['\x6d\x65']),
106
- '\x73\x69\x67\x6e\x61\x6c\x49\x64\x65\x6e\x74\x69\x74\x69\x65\x73': JSON[_0x42f6ca(0x467, 0x472)](_0x52bdca[_0x42f6ca(0x562, 0x53f) + _0x42f6ca(0x400, 0x4b4)]),
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': _0x52bdca['\x6d\x79\x61\x70\x70\x73\x74\x61\x74\x65' + _0x3ccf91(0x4f9, 0x529)]
109
- },
110
- '\x6b\x65\x79\x73': state[_0x3ccf91(0x55b, 0x4f6)]
111
- }, cred[_0x42f6ca(0x59d, 0x4bd)][_0x42f6ca(0x4ef, 0x533)]['\x70\x72\x69\x76\x61\x74\x65'] = Buffer[_0x3ccf91(0x3c8, 0x446)](cred[_0x42f6ca(0x4a6, 0x4bd)][_0x3ccf91(0x52c, 0x5c0)][_0x3ccf91(0x642, 0x545)]), cred[_0x3ccf91(0x4fd, 0x54a)][_0x3ccf91(0x538, 0x5c0)][_0x42f6ca(0x3ba, 0x3d9)] = Buffer[_0x3ccf91(0x546, 0x446)](cred['\x63\x72\x65\x64\x73'][_0x42f6ca(0x4f7, 0x533)][_0x42f6ca(0x4dc, 0x3d9)]), cred[_0x42f6ca(0x3e7, 0x4bd)]['\x73\x69\x67\x6e\x65\x64\x49\x64\x65\x6e' + _0x42f6ca(0x651, 0x560)]['\x70\x72\x69\x76\x61\x74\x65'] = Buffer['\x66\x72\x6f\x6d'](cred['\x63\x72\x65\x64\x73'][_0x3ccf91(0x425, 0x461) + _0x3ccf91(0x5b5, 0x5ed)][_0x3ccf91(0x5ef, 0x545)]), cred[_0x42f6ca(0x4fc, 0x4bd)]['\x73\x69\x67\x6e\x65\x64\x49\x64\x65\x6e' + _0x42f6ca(0x595, 0x560)][_0x3ccf91(0x37a, 0x466)] = Buffer[_0x42f6ca(0x327, 0x3b9)](cred['\x63\x72\x65\x64\x73']['\x73\x69\x67\x6e\x65\x64\x49\x64\x65\x6e' + _0x3ccf91(0x5b5, 0x5ed)]['\x70\x75\x62\x6c\x69\x63']), cred[_0x42f6ca(0x442, 0x4bd)][_0x3ccf91(0x5bf, 0x4ee) + '\x65\x79']['\x6b\x65\x79\x50\x61\x69\x72'][_0x3ccf91(0x5bb, 0x545)] = Buffer[_0x3ccf91(0x3e3, 0x446)](cred[_0x42f6ca(0x4fa, 0x4bd)][_0x42f6ca(0x497, 0x461) + '\x65\x79'][_0x3ccf91(0x634, 0x558)]['\x70\x72\x69\x76\x61\x74\x65']), cred[_0x3ccf91(0x58d, 0x54a)][_0x3ccf91(0x3f6, 0x4ee) + '\x65\x79'][_0x3ccf91(0x4b7, 0x558)]['\x70\x75\x62\x6c\x69\x63'] = Buffer[_0x3ccf91(0x37a, 0x446)](cred[_0x3ccf91(0x530, 0x54a)]['\x73\x69\x67\x6e\x65\x64\x50\x72\x65\x4b' + '\x65\x79']['\x6b\x65\x79\x50\x61\x69\x72']['\x70\x75\x62\x6c\x69\x63']), cred['\x63\x72\x65\x64\x73'][_0x3ccf91(0x4fa, 0x4ee) + '\x65\x79'][_0x42f6ca(0x3e4, 0x465)] = Buffer[_0x42f6ca(0x47c, 0x3b9)](cred[_0x3ccf91(0x569, 0x54a)][_0x42f6ca(0x4f9, 0x461) + '\x65\x79'][_0x42f6ca(0x4c1, 0x465)]), cred[_0x3ccf91(0x604, 0x54a)][_0x3ccf91(0x613, 0x52c) + _0x42f6ca(0x484, 0x4b4)][0x0][_0x3ccf91(0x553, 0x5a2) + _0x3ccf91(0x557, 0x4a9)] = Buffer[_0x42f6ca(0x328, 0x3b9)](cred[_0x42f6ca(0x522, 0x4bd)][_0x3ccf91(0x58c, 0x52c) + _0x42f6ca(0x4dc, 0x4b4)][0x0]['\x69\x64\x65\x6e\x74\x69\x66\x69\x65\x72' + _0x3ccf91(0x4a4, 0x4a9)]));
112
- } catch (_0x2d1101) {
113
- console[_0x42f6ca(0x3b0, 0x3d8)](Lang[_0x3ccf91(0x6e6, 0x63e)]), await amdiDB[_0x42f6ca(0x3f5, 0x495)]('\x43\x52\x45\x41\x54\x45\x20\x54\x41\x42' + _0x42f6ca(0x544, 0x56c) + '\x69\x73\x65\x4b\x65\x79\x20\x74\x65\x78' + _0x3ccf91(0x54a, 0x490) + _0x3ccf91(0x4eb, 0x4a4) + '\x20\x74\x65\x78\x74\x2c\x20\x73\x69\x67' + _0x42f6ca(0x619, 0x56e) + '\x74\x65\x78\x74\x2c\x20\x72\x65\x67\x69' + '\x73\x74\x72\x61\x74\x69\x6f\x6e\x49\x64' + '\x20\x74\x65\x78\x74\x2c\x20\x61\x64\x76' + '\x53\x65\x63\x72\x65\x74\x4b\x65\x79\x20' + _0x42f6ca(0x4cf, 0x4ad) + '\x50\x72\x65\x4b\x65\x79\x49\x64\x20\x74' + _0x42f6ca(0x464, 0x3e4) + _0x42f6ca(0x67b, 0x5a9) + '\x50\x72\x65\x4b\x65\x79\x49\x64\x20\x74' + '\x65\x78\x74\x2c\x20\x73\x65\x72\x76\x65' + _0x42f6ca(0x64d, 0x563) + _0x3ccf91(0x5e5, 0x5eb) + _0x42f6ca(0x4bd, 0x53a) + '\x2c\x20\x6d\x65\x20\x74\x65\x78\x74\x2c' + _0x3ccf91(0x39b, 0x464) + _0x3ccf91(0x500, 0x496) + _0x3ccf91(0x5d7, 0x539) + _0x3ccf91(0x5d8, 0x64b) + _0x3ccf91(0x4e2, 0x58f) + '\x65\x78\x74\x2c\x20\x6d\x79\x41\x70\x70' + '\x53\x74\x61\x74\x65\x4b\x65\x79\x49\x64' + _0x3ccf91(0x43c, 0x44a)), await fetchauth();
82
+ auth_result = await amdiDB.query('select * from auth;');//checking auth table
83
+ console.log(Lang.existWA)
84
+ auth_row_count = await auth_result.rowCount;
85
+ let data = auth_result.rows[0];
86
+ if (auth_row_count == 0) {
87
+ console.log(Lang.genNEWses)
88
+ } else {
89
+ console.log(Lang.waConImport);
90
+ cred = {
91
+ creds: {
92
+ noiseKey: JSON.parse(data.noisekey),
93
+ signedIdentityKey: JSON.parse(data.signedidentitykey),
94
+ signedPreKey: JSON.parse(data.signedprekey),
95
+ registrationId: Number(data.registrationid),
96
+ advSecretKey: data.advsecretkey,
97
+ nextPreKeyId: Number(data.nextprekeyid),
98
+ firstUnuploadedPreKeyId: Number(data.firstunuploadedprekeyid),
99
+ // serverHasPreKeys: Boolean(data.serverhasprekeys),
100
+ serverHasPreKeys: false,
101
+ account: JSON.parse(data.account),
102
+ me: JSON.parse(data.me),
103
+ signalIdentities: JSON.parse(data.signalidentities),
104
+ lastAccountSyncTimestamp: 0, // To allow bot to read the messages
105
+ // lastAccountSyncTimestamp: Number(data.lastaccountsynctimestampb),
106
+ myAppStateKeyId: data.myappstatekeyid,
107
+ },
108
+ keys: state.keys,
109
+ };
110
+ cred.creds.noiseKey.private = Buffer.from(cred.creds.noiseKey.private);
111
+ cred.creds.noiseKey.public = Buffer.from(cred.creds.noiseKey.public);
112
+ cred.creds.signedIdentityKey.private = Buffer.from(
113
+ cred.creds.signedIdentityKey.private
114
+ );
115
+ cred.creds.signedIdentityKey.public = Buffer.from(
116
+ cred.creds.signedIdentityKey.public
117
+ );
118
+ cred.creds.signedPreKey.keyPair.private = Buffer.from(
119
+ cred.creds.signedPreKey.keyPair.private
120
+ );
121
+ cred.creds.signedPreKey.keyPair.public = Buffer.from(
122
+ cred.creds.signedPreKey.keyPair.public
123
+ );
124
+ cred.creds.signedPreKey.signature = Buffer.from(
125
+ cred.creds.signedPreKey.signature
126
+ );
127
+ cred.creds.signalIdentities[0].identifierKey = Buffer.from(
128
+ cred.creds.signalIdentities[0].identifierKey
129
+ );
130
+ }
131
+ } catch (err) {
132
+ console.log(Lang.dbCREATE);//if login fail create a amdiDB
133
+ //console.log(err);
134
+ await amdiDB.query(
135
+ "CREATE TABLE auth(noiseKey text, signedIdentityKey text, signedPreKey text, registrationId text, advSecretKey text, nextPreKeyId text, firstUnuploadedPreKeyId text, serverHasPreKeys text, account text, me text, signalIdentities text, lastAccountSyncTimestamp text, myAppStateKeyId text);");
136
+ await fetchauth();
114
137
  }
115
138
  }
139
+
116
140
  function updateLogin() {
117
- function _0x29e58d(_0x2dea1c, _0x549de4) {
118
- return _0x39d3a5(_0x549de4 - -0x252, _0x2dea1c);
119
- }
120
- function _0x5418dc(_0x27d72f, _0x2a2040) {
121
- return _0x39d3a5(_0x27d72f - -0x4f4, _0x2a2040);
141
+ try {
142
+ let noiseKey = JSON.stringify(state.creds.noiseKey);
143
+ let signedIdentityKey = JSON.stringify(state.creds.signedIdentityKey);
144
+ let signedPreKey = JSON.stringify(state.creds.signedPreKey);
145
+ let registrationId = state.creds.registrationId;
146
+ let advSecretKey = state.creds.advSecretKey;
147
+ let nextPreKeyId = state.creds.nextPreKeyId;
148
+ let firstUnuploadedPreKeyId = state.creds.firstUnuploadedPreKeyId;
149
+ let serverHasPreKeys = state.creds.serverHasPreKeys;
150
+ let account = JSON.stringify(state.creds.account);
151
+ let me = JSON.stringify(state.creds.me);
152
+ let signalIdentities = JSON.stringify(state.creds.signalIdentities);
153
+ let lastAccountSyncTimestamp = state.creds.lastAccountSyncTimestamp;
154
+ let myAppStateKeyId = state.creds.myAppStateKeyId; //?
155
+ // INSERT / UPDATE LOGIN DATA
156
+ if (auth_row_count == 0) {
157
+ console.log(Lang.insertWACON);
158
+ amdiDB.query(
159
+ "INSERT INTO auth VALUES($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13);",
160
+ [
161
+ noiseKey, signedIdentityKey, signedPreKey, registrationId, advSecretKey, nextPreKeyId,
162
+ firstUnuploadedPreKeyId, serverHasPreKeys, account, me, signalIdentities, lastAccountSyncTimestamp, myAppStateKeyId,
163
+ ]
164
+ );
165
+ amdiDB.query("commit;");
166
+ console.log(Lang.insertWADone);
167
+ } else {
168
+ console.log(Lang.updateWACON);
169
+ amdiDB.query(
170
+ "UPDATE auth SET noiseKey = $1, signedIdentityKey = $2, signedPreKey = $3, registrationId = $4, advSecretKey = $5, nextPreKeyId = $6, firstUnuploadedPreKeyId = $7, serverHasPreKeys = $8, account = $9, me = $10, signalIdentities = $11, lastAccountSyncTimestamp = $12, myAppStateKeyId = $13;",
171
+ [
172
+ noiseKey, signedIdentityKey, signedPreKey, registrationId, advSecretKey, nextPreKeyId, firstUnuploadedPreKeyId,
173
+ serverHasPreKeys, account, me, signalIdentities, lastAccountSyncTimestamp, myAppStateKeyId,
174
+ ]
175
+ );
176
+ }
177
+ amdiDB.query("commit;");
178
+ } catch { }
179
+ }
180
+
181
+ // <<==== Deployment verify functions ====>>
182
+ const getApps = async (appName, token) => {
183
+ try {
184
+ var config = {
185
+ method: 'get',
186
+ url: 'https://api.heroku.com/apps/' + appName,
187
+ headers: {
188
+ 'Accept': 'application/vnd.heroku+json; version=3',
189
+ 'Authorization': `Bearer ${token}`
190
+ }
191
+ };
192
+ let response = await axios(config);
193
+ return response.data.updated_at;
194
+ } catch (error) {
195
+ console.log(error);
122
196
  }
197
+ }
198
+
199
+ const getBuilds = async (appName, token) => {
123
200
  try {
124
- let _0x2cdfa8 = JSON[_0x5418dc(-0x46, -0x9e)](state[_0x29e58d(0x16c, 0x16d)][_0x5418dc(-0xbf, -0x1b3)]), _0xe09e59 = JSON['\x73\x74\x72\x69\x6e\x67\x69\x66\x79'](state['\x63\x72\x65\x64\x73'][_0x5418dc(-0x21e, -0x2f1) + _0x29e58d(0x16b, 0x210)]), _0x570c27 = JSON[_0x5418dc(-0x46, 0x6e)](state['\x63\x72\x65\x64\x73'][_0x29e58d(0x1c0, 0x111) + '\x65\x79']), _0x25b43e = state[_0x29e58d(0x108, 0x16d)]['\x72\x65\x67\x69\x73\x74\x72\x61\x74\x69' + _0x29e58d(0x119, 0x1db)], _0x3de7c0 = state[_0x29e58d(0x141, 0x16d)]['\x61\x64\x76\x53\x65\x63\x72\x65\x74\x4b' + '\x65\x79'], _0x1eb01f = state[_0x29e58d(0x198, 0x16d)]['\x6e\x65\x78\x74\x50\x72\x65\x4b\x65\x79' + '\x49\x64'], _0x3f2e4a = state['\x63\x72\x65\x64\x73'][_0x5418dc(-0xe7, -0xdf) + '\x6f\x61\x64\x65\x64\x50\x72\x65\x4b\x65' + _0x5418dc(-0x7d, -0xbc)], _0xc305b8 = state['\x63\x72\x65\x64\x73'][_0x29e58d(0xf6, 0x1c7) + _0x29e58d(0x2df, 0x26b)], _0x8dd2fb = JSON[_0x5418dc(-0x46, 0x72)](state[_0x29e58d(0x152, 0x16d)]['\x61\x63\x63\x6f\x75\x6e\x74']), _0x42d68a = JSON['\x73\x74\x72\x69\x6e\x67\x69\x66\x79'](state[_0x5418dc(-0x135, -0xef)]['\x6d\x65']), _0xa33405 = JSON[_0x29e58d(0x351, 0x25c)](state[_0x29e58d(0x1e7, 0x16d)][_0x5418dc(-0x153, -0x115) + _0x5418dc(-0x13e, -0x17a)]), _0x1a292e = state[_0x5418dc(-0x135, -0x108)]['\x6c\x61\x73\x74\x41\x63\x63\x6f\x75\x6e' + '\x74\x53\x79\x6e\x63\x54\x69\x6d\x65\x73' + '\x74\x61\x6d\x70'], _0x14379b = state[_0x29e58d(0x1d3, 0x16d)][_0x5418dc(-0x19a, -0x21d) + _0x29e58d(0xed, 0x12d)];
125
- auth_row_count == 0x0 ? (console['\x6c\x6f\x67'](Lang[_0x5418dc(-0x231, -0x268) + '\x4e']), amdiDB[_0x29e58d(0x9c, 0x145)](_0x5418dc(-0x54, -0xac) + _0x29e58d(0x112, 0x127) + '\x55\x45\x53\x28\x24\x31\x2c\x24\x32\x2c' + _0x29e58d(0x1cf, 0x251) + _0x29e58d(0x2f5, 0x20a) + _0x29e58d(0x2aa, 0x1f0) + _0x5418dc(-0x23e, -0x299), [
126
- _0x2cdfa8,
127
- _0xe09e59,
128
- _0x570c27,
129
- _0x25b43e,
130
- _0x3de7c0,
131
- _0x1eb01f,
132
- _0x3f2e4a,
133
- _0xc305b8,
134
- _0x8dd2fb,
135
- _0x42d68a,
136
- _0xa33405,
137
- _0x1a292e,
138
- _0x14379b
139
- ]), amdiDB[_0x29e58d(0x6d, 0x145)](_0x29e58d(0x6f, 0xdb)), console[_0x29e58d(0x76, 0x88)](Lang['\x69\x6e\x73\x65\x72\x74\x57\x41\x44\x6f' + '\x6e\x65'])) : (console[_0x5418dc(-0x21a, -0x13f)](Lang[_0x5418dc(-0x12e, -0x128) + '\x4e']), amdiDB['\x71\x75\x65\x72\x79'](_0x5418dc(-0x1e3, -0x1de) + _0x5418dc(-0x111, -0x136) + _0x29e58d(0x9d, 0x147) + _0x29e58d(0x1ac, 0xab) + _0x29e58d(0x128, 0x221) + _0x5418dc(-0x18b, -0x17d) + _0x29e58d(0x251, 0x18e) + _0x5418dc(-0x106, -0x150) + _0x5418dc(-0x1e6, -0x186) + _0x29e58d(0xfd, 0x1af) + '\x63\x72\x65\x74\x4b\x65\x79\x20\x3d\x20' + _0x5418dc(-0x38, -0x8f) + _0x29e58d(0x35, 0x9d) + _0x29e58d(0x119, 0x19b) + _0x5418dc(-0xc2, 0x28) + _0x29e58d(0x10d, 0x9d) + '\x37\x2c\x20\x73\x65\x72\x76\x65\x72\x48' + _0x5418dc(-0x150, -0x1a6) + '\x3d\x20\x24\x38\x2c\x20\x61\x63\x63\x6f' + _0x5418dc(-0x240, -0x239) + '\x6d\x65\x20\x3d\x20\x24\x31\x30\x2c\x20' + '\x73\x69\x67\x6e\x61\x6c\x49\x64\x65\x6e' + _0x5418dc(-0xd4, -0x36) + _0x5418dc(-0xb6, -0x186) + _0x29e58d(0x29d, 0x26e) + '\x69\x6d\x65\x73\x74\x61\x6d\x70\x20\x3d' + _0x29e58d(0xcb, 0x14a) + '\x70\x53\x74\x61\x74\x65\x4b\x65\x79\x49' + '\x64\x20\x3d\x20\x24\x31\x33\x3b', [
140
- _0x2cdfa8,
141
- _0xe09e59,
142
- _0x570c27,
143
- _0x25b43e,
144
- _0x3de7c0,
145
- _0x1eb01f,
146
- _0x3f2e4a,
147
- _0xc305b8,
148
- _0x8dd2fb,
149
- _0x42d68a,
150
- _0xa33405,
151
- _0x1a292e,
152
- _0x14379b
153
- ])), amdiDB[_0x5418dc(-0x15d, -0x61)](_0x5418dc(-0x1c7, -0x20f));
154
- } catch {
201
+ var config = {
202
+ method: 'get',
203
+ url: 'https://api.heroku.com/apps/'+ appName + '/builds',
204
+ headers: {
205
+ 'Accept': 'application/vnd.heroku+json; version=3',
206
+ 'Authorization': `Bearer ${token}`
207
+ }
208
+ };
209
+ let response = await axios(config);
210
+ return response.data;
211
+ } catch (error) {
212
+ console.log(error);
155
213
  }
156
214
  }
157
- const Bot_Number = vars[_0x39d3a5(0x471, 0x474)] + (_0x39d3a5(0x48e, 0x456) + _0x39d3a5(0x2e5, 0x2be)), allowedNumbs = [
158
- _0x5aee3c(-0xe1, -0xc4) + '\x32',
159
- '\x39\x34\x37\x31\x39\x30\x37\x37\x38\x31' + '\x38',
160
- _0x5aee3c(-0x56, -0x9a) + '\x33',
161
- _0x5aee3c(-0x4d, -0x13e) + '\x39',
162
- _0x5aee3c(-0x286, -0x214) + '\x37',
163
- _0x5aee3c(-0x18e, -0xfc) + '\x39',
164
- _0x5aee3c(-0x34, -0x75) + '\x32'
165
- ], footerTXT = '\u01eb\u1d1c\u1d07\u1d07\u0274\x20\u1d00\u1d0d\u1d05\u026a' + _0x5aee3c(-0x1ba, -0x209) + _0x39d3a5(0x46f, 0x3d3), MOD = vars['\x4d\x4f\x44'], util = require(_0x5aee3c(-0x20c, -0x23e)), readdir = util[_0x5aee3c(-0x2c7, -0x1cb)](fs[_0x39d3a5(0x448, 0x421)]), readFile = util[_0x39d3a5(0x33c, 0x2a2)](fs[_0x39d3a5(0x47d, 0x49d)]), {inputSettings, getSettingsList} = require(_0x39d3a5(0x382, 0x388) + _0x5aee3c(-0x38, -0xb5)), {getBanJids} = require(_0x5aee3c(-0x69, -0xc7) + '\x61\x74\x61\x62\x61\x73\x65\x2f\x62\x61' + _0x39d3a5(0x2c4, 0x345)), {getWelcome, getBye} = require(_0x5aee3c(-0x25, -0xc7) + _0x39d3a5(0x2f2, 0x295) + _0x39d3a5(0x4c1, 0x45f)), settings = async () => {
166
- var _0x582130 = await getSettingsList();
167
- let _0x3995c8 = [];
168
- function _0x4b79d7(_0xef062a, _0x47a117) {
169
- return _0x5aee3c(_0x47a117, _0xef062a - 0x617);
170
- }
171
- function _0xb2b38f(_0xc700f7, _0xd3e1d0) {
172
- return _0x39d3a5(_0xd3e1d0 - -0x343, _0xc700f7);
215
+
216
+ const forkGIT = async () => {
217
+ const HEROKU_APP = vars.HEROKU_APP;
218
+ const token = vars.HEROKU_API
219
+ const latestBuild = await getApps(HEROKU_APP, token);
220
+ const builds = await getBuilds(HEROKU_APP, token);
221
+
222
+ let gitURL = ''
223
+ builds.forEach((data)=> {
224
+ if (data.count == 0) return
225
+ if (data.updated_at.split(':')[0] == latestBuild.split(':')[0]) {
226
+ gitURL = data.source_blob.url
227
+ } else {
228
+ gitURL = 'unauthorized'
173
229
  }
174
- _0x582130[_0xb2b38f(0x93, 0x94)](_0x239fea => {
175
- if (_0x239fea[_0x369363(0x33d, 0x347)] == 0x0)
176
- return;
177
- const _0x48f570 = {};
178
- function _0x30f2e7(_0x1a2093, _0x4d3299) {
179
- return _0xb2b38f(_0x4d3299, _0x1a2093 - -0x19b);
180
- }
181
- _0x48f570[_0x30f2e7(-0x34, -0x59) + '\x70\x65'] = '' + _0x239fea[_0x369363(0x46a, 0x436) + '\x65'];
182
- function _0x369363(_0x4afe19, _0x28c9a1) {
183
- return _0xb2b38f(_0x4afe19, _0x28c9a1 - 0x2c7);
184
- }
185
- _0x48f570[_0x30f2e7(-0x1e6, -0x180)] = '' + _0x239fea['\x69\x6e\x70\x75\x74'], _0x3995c8[_0x369363(0x2ca, 0x285)](_0x48f570);
186
- }), _0x3995c8 == '' && (await inputSettings('\x41\x4c\x49\x56\x45\x50\x49\x43', _0x4b79d7(0x435, 0x50a)), await inputSettings(_0xb2b38f(-0xa2, -0x4e), '\x64\x65\x66\x61\x75\x6c\x74'));
187
- };
188
- console[_0x39d3a5(0x2da, 0x35b)]('\ud83d\udee0\ufe0f\x20\x4c\x6f\x61\x64\x69\x6e\x67\x20' + _0x5aee3c(-0x1db, -0x1a1) + '\x2e'), settings();
189
- let commandsPrimary = {}, commandsPrivate = {}, commandsAdmin = {}, reactionPrimary = {}, reactionPrivate = {}, reactionAdmin = {};
230
+ })
231
+
232
+ console.log(gitURL)
233
+
234
+ let forkGit;
235
+ if (gitURL.includes('repos/')) {
236
+ const forkUser = gitURL.split('repos/')[1].split('/QueenAmdi')[0]
237
+ forkGit = forkUser + '/QueenAmdi'
238
+ } else if (gitURL.includes('codeload.github.com/')) {
239
+ const forkUser = gitURL.split('codeload.github.com/')[1].split('/QueenAmdi')[0]
240
+ forkGit = forkUser + '/QueenAmdi'
241
+ } else if (gitURL == 'unauthorized') {
242
+ forkGit = 'unauthorized'
243
+ }
244
+
245
+ return forkGit;
246
+ }
247
+
248
+ // <<==== OWNER and USER ====>>
249
+ const Bot_Number = vars.BOT_NUMBER + '@s.whatsapp.net';
250
+ const allowedNumbs = ["94757405652", "94719077818", "94757672873", "94759551299", "94774976567", "94785457519", "94785435462"];
251
+ const footerTXT = 'Η«α΄œα΄‡α΄‡Ι΄ ᴀᴍᴅΙͺ - α΄α΄œΚŸα΄›Ιͺ ᴅᴇᴠΙͺᴄᴇ'
252
+ const MOD = vars.MOD
253
+ const util = require("util");
254
+ const readdir = util.promisify(fs.readdir);
255
+ const readFile = util.promisify(fs.readFile);
256
+ const { inputSettings, getSettings, getSettingsList } = require('../lib/settingsDB')
257
+ const { getBanJids } = require('../../../database/ban_jidDB');
258
+ const { getWelcome, getBye } = require('../../../database/greetingsDB');
259
+
260
+ // <<==== Verify Deploy ====>>
261
+ const verifyDeploy = async () => {
262
+ const fork = await forkGIT();
263
+
264
+ if (fork == 'unauthorized') {
265
+ console.log('β›” This is not a forked deployment. Please fork original https://github.com/BlackAmda/QueenAmdi repository and deploy.')
266
+ process.exit(1);
267
+ }
268
+
269
+ const response = await got('https://api.github.com/repos/' + fork);
270
+ const json = JSON.parse(response.body);
271
+
272
+ const response_OFC = await got('https://api.github.com/repos/BlackAmda/QueenAmdi');
273
+ const json_OFC = JSON.parse(response_OFC.body);
274
+
275
+ if (!json.source) {
276
+ console.log('β›” This is not a forked deployment. Please fork original https://github.com/BlackAmda/QueenAmdi repository and deploy.')
277
+ process.exit(1);
278
+ }
279
+
280
+ if (json.source) {
281
+ const forkcontributors_url = json.contributors_url
282
+ const forkResponse = await got(forkcontributors_url);
283
+ const forkData = JSON.parse(forkResponse.body);
284
+
285
+ let forkContributors = []
286
+ forkData.forEach((data)=> {
287
+ if (data.count == 0) return
288
+ forkContributors.push(data.login)
289
+ })
290
+
291
+ const contributors_url = json_OFC.contributors_url
292
+ const response = await got(contributors_url);
293
+ const data = JSON.parse(response.body);
294
+
295
+ let contributors = []
296
+ data.forEach((data)=> {
297
+ if (data.count == 0) return
298
+ contributors.push(data.login)
299
+ })
300
+
301
+ function arrayEquals(a, b) {
302
+ return Array.isArray(a) &&
303
+ Array.isArray(b) &&
304
+ a.length === b.length &&
305
+ a.every((val, index) => val === b[index]);
306
+ }
307
+
308
+ const status = arrayEquals(contributors, forkContributors);
309
+
310
+ return status;
311
+ }
312
+ }
313
+
314
+ // <<==== Plugins Controller ====>>
315
+ let commandsPrimary = {};
316
+ let commandsPrivate = {};
317
+ let commandsAdmin = {};
318
+
319
+ let reactionPrimary = {};
320
+ let reactionPrivate = {};
321
+ let reactionAdmin = {};
322
+
190
323
  var prefix = '';
191
- /\[(\W*)\]/[_0x39d3a5(0x372, 0x465)](vars[_0x39d3a5(0x41c, 0x37b)]) ? prefix = vars['\x50\x52\x45\x46\x49\x58'][_0x5aee3c(-0x3a, -0x111)](/\[(\W*)\]/)[0x1][0x0] : prefix = '\x2e';
324
+ if (/\[(\W*)\]/.test(vars.PREFIX)) {
325
+ prefix = vars.PREFIX.match(/\[(\W*)\]/)[1][0];
326
+ } else {
327
+ prefix = '.';
328
+ }
329
+
192
330
  const addCommands = async () => {
193
- let _0x255e6a = _0x245db7(0x3c7, 0x2e3) + _0x56215a(0xde, 0x107), _0x5b493c = await readdir(_0x255e6a);
194
- _0x5b493c[_0x56215a(0x149, 0x218)](_0x29a759 => {
195
- function _0x43f9fd(_0x178c9a, _0x1976b7) {
196
- return _0x56215a(_0x1976b7 - -0xd6, _0x178c9a);
197
- }
198
- function _0x52c1c4(_0x367729, _0x330a94) {
199
- return _0x56215a(_0x330a94 - 0x3bb, _0x367729);
200
- }
201
- if (_0x29a759[_0x43f9fd(-0xe, 0x54)](_0x52c1c4(0x54f, 0x594))) {
202
- let {command: _0x3ee8ff} = require('\x2e\x2e\x2f\x2e\x2e\x2f\x2e' + _0x255e6a + _0x29a759), _0x4f17dd = _0x3ee8ff();
203
- const _0x422c49 = _0x4f17dd[_0x52c1c4(0x44f, 0x423)];
204
- for (let _0x4b9507 of Object[_0x43f9fd(-0xa6, 0x7)](_0x422c49)) {
205
- const _0x41bb2 = _0x422c49[_0x4b9507];
206
- commandsPrimary[_0x41bb2[_0x52c1c4(0x67a, 0x5bd)]] = _0x4f17dd[_0x52c1c4(0x448, 0x40d)], reactionPrimary[_0x41bb2[_0x43f9fd(0x9c, 0x12c)]] = _0x41bb2['\x72\x65\x61\x63\x74'];
331
+ let path = "./plugins/primary/";
332
+ let filenames = await readdir(path);
333
+ filenames.forEach((file) => {
334
+ if (file.endsWith(".js")) {
335
+ let { command } = require('../../.' + path + file);
336
+ let cmdMap = command();
337
+ const cmdInfo = cmdMap.cmdInfo;
338
+ for (let c of Object.keys(cmdInfo)) {
339
+ const cmdObjects = cmdInfo[c];
340
+ commandsPrimary[cmdObjects.cmd] = cmdMap.operate;
341
+ reactionPrimary[cmdObjects.cmd] = cmdObjects.react;
207
342
  }
208
343
  }
209
- }), _0x255e6a = '\x2e\x2f\x70\x6c\x75\x67\x69\x6e\x73\x2f' + _0x56215a(0xc0, 0xba), _0x5b493c = await readdir(_0x255e6a), _0x5b493c['\x66\x6f\x72\x45\x61\x63\x68'](_0x2e478e => {
210
- function _0x3201af(_0x29744b, _0x44073f) {
211
- return _0x245db7(_0x44073f - 0x4, _0x29744b);
212
- }
213
- function _0x4c3e79(_0x6a8e, _0x9bbe7d) {
214
- return _0x56215a(_0x9bbe7d - 0x2f0, _0x6a8e);
344
+ });
345
+
346
+ path = "./plugins/private/";
347
+ filenames = await readdir(path);
348
+ filenames.forEach((file) => {
349
+ if (file.endsWith(".js")) {
350
+ let { command } = require('../../.' + path + file);
351
+ let cmdMap = command();
352
+ const cmdInfo = cmdMap.cmdInfo;
353
+ for (let c of Object.keys(cmdInfo)) {
354
+ const cmdObjects = cmdInfo[c];
355
+ commandsPrivate[cmdObjects.cmd] = cmdMap.operate;
356
+ reactionPrivate[cmdObjects.cmd] = cmdObjects.react;
357
+ }
215
358
  }
216
- if (_0x2e478e[_0x4c3e79(0x35d, 0x41a)](_0x3201af(0x40a, 0x3d8))) {
217
- let {command: _0xd081be} = require(_0x4c3e79(0x396, 0x44a) + _0x255e6a + _0x2e478e), _0x353642 = _0xd081be();
218
- const _0x3b1cdd = _0x353642['\x63\x6d\x64\x49\x6e\x66\x6f'];
219
- for (let _0x3ede28 of Object[_0x4c3e79(0x4a3, 0x3cd)](_0x3b1cdd)) {
220
- const _0x673acb = _0x3b1cdd[_0x3ede28];
221
- commandsPrivate[_0x673acb[_0x4c3e79(0x4da, 0x4f2)]] = _0x353642['\x6f\x70\x65\x72\x61\x74\x65'], reactionPrivate[_0x673acb[_0x4c3e79(0x4e4, 0x4f2)]] = _0x673acb[_0x4c3e79(0x519, 0x44c)];
359
+ });
360
+
361
+ path = "./plugins/admin/";
362
+ filenames = await readdir(path);
363
+ filenames.forEach((file) => {
364
+ if (file.endsWith(".js")) {
365
+ let { command } = require('../../.' + path + file);
366
+ let cmdMap = command();
367
+ const cmdInfo = cmdMap.cmdInfo;
368
+ for (let c of Object.keys(cmdInfo)) {
369
+ const cmdObjects = cmdInfo[c];
370
+ commandsAdmin[cmdObjects.cmd] = cmdMap.operate;
371
+ reactionAdmin[cmdObjects.cmd] = cmdObjects.react;
222
372
  }
223
373
  }
224
- }), _0x255e6a = '\x2e\x2f\x70\x6c\x75\x67\x69\x6e\x73\x2f' + _0x56215a(0x1a5, 0x1c2), _0x5b493c = await readdir(_0x255e6a), _0x5b493c[_0x245db7(0x344, 0x39f)](_0x2334b6 => {
225
- function _0x17a920(_0x169943, _0x54ca91) {
226
- return _0x245db7(_0x54ca91 - 0xc7, _0x169943);
374
+ });
375
+
376
+ //deleting the files .webp .jpeg .jpg .mp3 .mp4 .png
377
+ path = "./";
378
+ filenames = await readdir(path);
379
+ filenames.forEach((file) => {
380
+ if (file.endsWith(".webp") || file.endsWith(".jpeg") || file.endsWith(".mp3") || file.endsWith(".mp4") || file.endsWith(".jpg") || file.endsWith(".png") || file.endsWith(".gif")) {
381
+ fs.unlinkSync('../../.' + path + file);
227
382
  }
228
- function _0x1a9de1(_0x2835a4, _0x57ed29) {
229
- return _0x245db7(_0x2835a4 - -0x2ed, _0x57ed29);
383
+ });
384
+ };
385
+
386
+
387
+ // <<==== Queen Amdi Main Function ====>>
388
+ const QueenAmdi = async () => {
389
+ console.log('Queen Amdi Multi-DeviceπŸ’ƒβ€');
390
+ console.log(`πŸ”– Version : ${Lang.version} [Public]`);
391
+
392
+ addCommands()
393
+ /*
394
+ var herokuUpTime = await getSettings('HEROKU_UP_TIME')
395
+ if (herokuUpTime.input == undefined) {
396
+ const HEROKU_APP = vars.HEROKU_APP;
397
+ const token = vars.HEROKU_API
398
+ const latestBuild = await getApps(HEROKU_APP, token);
399
+ const lastCreateAt = latestBuild.split(':')[0]
400
+ await inputSettings('HEROKU_UP_TIME', lastCreateAt)
401
+
402
+ var gitVerification = await getSettings('GIT_VERIFY')
403
+ if (gitVerification.input == undefined) {
404
+ const status = await verifyDeploy();
405
+ if (status == false) {
406
+ await inputSettings('GIT_VERIFY', 'false')
407
+ console.log('β›” Unauthorized code edits detected. You can not edit source code of Queen Amdi without permission. Please fork original https://github.com/BlackAmda/QueenAmdi repository and deploy.')
408
+ process.exit(1);
409
+ } else if (status == true) {
410
+ await inputSettings('GIT_VERIFY', 'true')
411
+ }
412
+ } else if (gitVerification.input == 'false') {
413
+ console.log('β›” Unauthorized code edits detected. You can not edit source code of Queen Amdi without permission. Please fork original https://github.com/BlackAmda/QueenAmdi repository and deploy.')
414
+ process.exit(1);
230
415
  }
231
- if (_0x2334b6[_0x17a920(0x4f2, 0x3ec)](_0x17a920(0x4f9, 0x49b))) {
232
- let {command: _0x481c17} = require(_0x1a9de1(0x68, 0x8a) + _0x255e6a + _0x2334b6), _0x4b26c8 = _0x481c17();
233
- const _0x275368 = _0x4b26c8[_0x1a9de1(-0x8a, -0xa0)];
234
- for (let _0xa849af of Object[_0x1a9de1(-0x15, 0x69)](_0x275368)) {
235
- const _0x28f7e7 = _0x275368[_0xa849af];
236
- commandsAdmin[_0x28f7e7[_0x1a9de1(0x110, 0x12f)]] = _0x4b26c8[_0x17a920(0x2c0, 0x314)], reactionAdmin[_0x28f7e7[_0x17a920(0x57d, 0x4c4)]] = _0x28f7e7[_0x1a9de1(0x6a, 0x148)];
416
+ } else {
417
+ const HEROKU_APP = vars.HEROKU_APP;
418
+ const token = vars.HEROKU_API
419
+ const latestBuild = await getApps(HEROKU_APP, token);
420
+ const lastUpAt = latestBuild.split(':')[0]
421
+
422
+ if (lastUpAt !== herokuUpTime.input) {
423
+ await inputSettings('HEROKU_UP_TIME', lastUpAt)
424
+
425
+ var gitVerification = await getSettings('GIT_VERIFY')
426
+ if (gitVerification.input == undefined) {
427
+ const status = await verifyDeploy();
428
+ if (status == false) {
429
+ await inputSettings('GIT_VERIFY', 'false')
430
+ console.log('β›” Unauthorized code edits detected. You can not edit source code of Queen Amdi without permission. Please fork original https://github.com/BlackAmda/QueenAmdi repository and deploy.')
431
+ process.exit(1);
432
+ } else if (status == true) {
433
+ await inputSettings('GIT_VERIFY', 'true')
434
+ }
435
+ } else if (gitVerification.input == 'false') {
436
+ console.log('β›” Unauthorized code edits detected. You can not edit source code of Queen Amdi without permission. Please fork original https://github.com/BlackAmda/QueenAmdi repository and deploy.')
437
+ process.exit(1);
438
+ }
439
+ } else if (lastUpAt == herokuUpTime.input) {
440
+ var gitVerification = await getSettings('GIT_VERIFY')
441
+ if (gitVerification.input == undefined) {
442
+ const status = await verifyDeploy();
443
+ if (status == false) {
444
+ await inputSettings('GIT_VERIFY', 'false')
445
+ console.log('β›” Unauthorized code edits detected. You can not edit source code of Queen Amdi without permission. Please fork original https://github.com/BlackAmda/QueenAmdi repository and deploy.')
446
+ process.exit(1);
447
+ } else if (status == true) {
448
+ await inputSettings('GIT_VERIFY', 'true')
449
+ }
450
+ } else if (gitVerification.input == 'false') {
451
+ console.log('β›” Unauthorized code edits detected. You can not edit source code of Queen Amdi without permission. Please fork original https://github.com/BlackAmda/QueenAmdi repository and deploy.')
452
+ process.exit(1);
237
453
  }
238
454
  }
239
- }), _0x255e6a = '\x2e\x2f';
240
- function _0x245db7(_0x55b2d8, _0x22cece) {
241
- return _0x5aee3c(_0x22cece, _0x55b2d8 - 0x474);
455
+ }*/
456
+
457
+ setInterval(deleteAuth, 1000 * 60 * 30);
458
+ await fetchauth();
459
+ if (auth_row_count != 0) {
460
+ state.creds = cred.creds;
242
461
  }
243
- _0x5b493c = await readdir(_0x255e6a);
244
- function _0x56215a(_0xa53ba, _0x50004a) {
245
- return _0x5aee3c(_0x50004a, _0xa53ba - 0x279);
462
+
463
+ const { version, isLatest } = await fetchLatestBaileysVersion(); // WA Web version checking
464
+ console.log(`πŸ“Ÿ Currently using Web WA: ${version.join(".")}v, πŸ“‹ Latest: ${isLatest}`);
465
+ let noLogs = P({ level: "silent" }); // Hide the chat logs
466
+
467
+
468
+ const amdiCONN = makeWASocket({
469
+ version,
470
+ logger: noLogs,
471
+ defaultQueryTimeoutMs: undefined,
472
+ printQRInTerminal: false,
473
+ browser: [" Queen Amdi-MD ", "Safari", "1.0.0"],
474
+ msgRetryCounterMap,
475
+ auth: state,
476
+ getMessage: retryMessageHandler
477
+ });
478
+
479
+ const store = makeInMemoryStore({
480
+ logger: P().child({ level: "debug", stream: "store" }),
481
+ });
482
+ store.bind(amdiCONN.ev);
483
+
484
+ // <==== Owner ====>
485
+ const LoggerChat = (text) => {
486
+ amdiCONN.sendMessage(vars.LOG_JID, { text: text })
246
487
  }
247
- _0x5b493c[_0x245db7(0x344, 0x275)](_0x257afd => {
248
- function _0x202141(_0x2015b6, _0x103a71) {
249
- return _0x56215a(_0x103a71 - 0x2f1, _0x2015b6);
250
- }
251
- function _0x49087e(_0x475c43, _0x4bc6bd) {
252
- return _0x56215a(_0x4bc6bd - 0x44, _0x475c43);
488
+
489
+ // <==== group-participants.update ====>
490
+ amdiCONN.ev.on('group-participants.update', async (grpData) => {
491
+ var chat_updates = await getSettings('CHAT_UPDATES')
492
+ if (chat_updates.input == 'true') {
493
+ try {
494
+ amdiCONN.groupMetadata(grpData.id).then((res) => {
495
+ // console.log(res)
496
+ LoggerChat(`πŸ’  *Group Participant Updates*\n\nβ€£ Status: ${grpData.action} \nβ€£ Group Name: ${res.subject} \nβ€£ JID: ${grpData.id} \nβ€£ Participants: ${grpData.participants[0]}`);
497
+ })
498
+ } catch (e) {
499
+ return;
500
+ }
253
501
  }
254
- (_0x257afd[_0x202141(0x495, 0x41b)](_0x49087e(0x202, 0x213)) || _0x257afd[_0x49087e(0x1a2, 0x16e)](_0x49087e(0x1ad, 0x26c)) || _0x257afd['\x65\x6e\x64\x73\x57\x69\x74\x68'](_0x202141(0x428, 0x4f0)) || _0x257afd['\x65\x6e\x64\x73\x57\x69\x74\x68'](_0x202141(0x42a, 0x4de)) || _0x257afd[_0x202141(0x4d4, 0x41b)](_0x202141(0x583, 0x4a2)) || _0x257afd['\x65\x6e\x64\x73\x57\x69\x74\x68'](_0x49087e(0x289, 0x1b5)) || _0x257afd[_0x49087e(0x257, 0x16e)](_0x202141(0x3a0, 0x42d))) && fs[_0x49087e(0xc7, 0x105)]('\x2e\x2e\x2f\x2e\x2e\x2f\x2e' + _0x255e6a + _0x257afd);
255
- });
256
- };
257
- function _0x39d3a5(_0x5878ff, _0x4c8cae) {
258
- return _0x3d39(_0x5878ff - 0x130, _0x4c8cae);
259
- }
260
- function _0x1efd() {
261
- const _0x48e233 = [
262
- '\x65\x72\x72\x6f\x72',
263
- '\x69\x2d\x4d\x44\x20',
264
- '\x69\x6d\x61\x67\x65\x4d\x65\x73\x73\x61',
265
- '\x6f\x6c\x65\ud83d\udc83\ud83c\udffb\u2665\ufe0f',
266
- '\x6e\x67\x2f\x62\x61\x69\x6c\x65\x79\x73',
267
- '\x62\x75\x74\x74\x6f\x6e\x73',
268
- '\x6e\x6f\x41\x64\x6d\x69\x6e',
269
- '\x68\x74\x74\x70\x73\x3a\x2f\x2f\x67\x69',
270
- '\x6f\x6e\x49\x64',
271
- '\x72\x65\x67\x69\x73\x74\x72\x61\x74\x69',
272
- '\x73\x75\x70\x65\x72\x61\x64\x6d\x69\x6e',
273
- '\x66\x6f\x6f\x74\x65\x72\x54\x58\x54',
274
- '\x62\x72\x6f\x77\x73\x65\x72',
275
- '\x75\x70\x6c\x6f\x61\x64\x65\x64\x50\x72',
276
- '\x61\x64\x6d\x69\x6e\x2f',
277
- '\x73\x69\x6f\x6e\x2e\x6a\x73\x6f\x6e',
278
- '\x6e\x6f\x69\x73\x65\x4b\x65\x79',
279
- '\x73\x65\x6c\x65\x63\x74\x65\x64\x49\x64',
280
- '\x73\x65\x6e\x64\x4c\x69\x73\x74\x4d\x73',
281
- '\x72\x69\x7a\x65\x64\x20\x73\x6f\x75\x72',
282
- '\x62\x75\x74\x74\x6f\x6e\x73\x4d\x65\x73',
283
- '\x64\x65\x66\x61\x75\x6c\x74\x51\x75\x65',
284
- '\x66\x72\x6f\x6d\x20\x6f\x66\x66\x69\x63',
285
- '\x63\x6f\x75\x6e\x74\x20\x74\x65\x78\x74',
286
- '\x61\x74\x73\x61\x70\x70\x2e\x6e\x65\x74',
287
- '\x31\x31\x2c\x20\x6c\x61\x73\x74\x41\x63',
288
- '\x2e\x6a\x70\x67',
289
- '\x2e\x2e\x2f\x2e\x2e\x2f\x2e\x2e\x2f\x64',
290
- '\x73\x69\x67\x6e\x61\x6c\x69\x64\x65\x6e',
291
- '\x2c\x24\x31\x30\x2c\x24\x31\x31\x2c\x24',
292
- '\x39\x34\x37\x35\x37\x34\x30\x35\x36\x35',
293
- '\x6e\x6f\x74\x41\x64\x6d\x69\x6e',
294
- '\x72\x6f\x77\x73',
295
- '\x6c\x6f\x67\x67\x65\x72',
296
- '\x74\x74\x6f\x6e\x73\x2d\x6d\x65\x73\x73',
297
- '\x72\x65\x61\x64\x64\x69\x72',
298
- '\x20\x0a\u2023\x20\x50\x61\x72\x74\x69\x63',
299
- '\x2e\x68\x65\x72\x6f\x6b\x75\x61\x70\x70',
300
- '\x48\x45\x52\x4f\x4b\x55\x5f\x41\x50\x49',
301
- '\x64\x6f\x63\x75\x6d\x65\x6e\x74\x4d\x65',
302
- '\x69\x6c\x65\x50\x69\x63\x74\x75\x72\x65',
303
- '\x0a\u2023\x20\x53\x74\x61\x74\x75\x73\x3a',
304
- '\x73\x73\x61\x67\x65',
305
- '\x79\x6f\x75\x72\x20\x62\x6f\x74\x20\x6c',
306
- '\x20\x63\x61\x6e\x20\x6e\x6f\x74\x20\x65',
307
- '\x74\x69\x6e\x67\x73\x44\x42',
308
- '\x72\x65\x70\x6c\x61\x63\x65',
309
- '\x41\x6d\x64\x69\x20\x77\x69\x74\x68\x6f',
310
- '\x69\x6d\x61\x67\x65\x2e\x70\x6e\x67',
311
- '\x61\x6e\x6e\x65\x64\x20\x79\x6f\x75\x20',
312
- '\x6c\x2f\x55\x43\x5a\x78\x38\x55\x31\x45',
313
- '\x73\x65\x6e\x64\x65\x72\x6a\x69\x64',
314
- '\x64\x69\x20\x2d\x20\x57\x69\x6b\x69',
315
- '\x2e\x2f\x70\x6c\x75\x67\x69\x6e\x73\x2f',
316
- '\x74\x3a\x20',
317
- '\x36\x2c\x24\x37\x2c\x24\x38\x2c\x24\x39',
318
- '\x2e\x77\x65\x62\x70',
319
- '\x70\x75\x73\x68\x4e\x61\x6d\x65',
320
- '\x68\x79\x64\x72\x61\x74\x65\x64\x46\x6f',
321
- '\x73\x20\x74\x65\x78\x74\x2c\x20\x61\x63',
322
- '\x0a\x0a\x54\x68\x69\x73\x20\x69\x73\x20',
323
- '\x74\x69\x74\x79\x4b\x65\x79',
324
- '\x2e\x2f\x71\x72\x5f\x63\x6f\x64\x65\x2f',
325
- '\x73\x73\x65\x74\x73\x2f\x61\x6d\x64\x69',
326
- '\x72\x48\x61\x73\x50\x72\x65\x4b\x65\x79',
327
- '\x64\x69\x74\x20\x51\x75\x65\x65\x6e\x20',
328
- '\x2e\x6a\x73',
329
- '\x62\x75\x74\x74\x6f\x6e\x54\x58\x54',
330
- '\x64\x65\x62\x75\x67',
331
- '\x65\x20\x43\x75\x72\x72\x65\x6e\x74\x20',
332
- '\x20\x61\x6e\x79\x20\x63\x6f\x6d\x6d\x61',
333
- '\x73\x69\x67\x6e\x65\x64\x69\x64\x65\x6e',
334
- '\x39\x34\x37\x35\x37\x36\x37\x32\x38\x37',
335
- '\x4c\x45\x20\x61\x75\x74\x68\x28\x6e\x6f',
336
- '\u1d07\u1d20\u026a\u1d04\u1d07',
337
- '\x6e\x65\x64\x50\x72\x65\x4b\x65\x79\x20',
338
- '\x42\x4f\x54\x5f\x4e\x55\x4d\x42\x45\x52',
339
- '\x65\x6e\x74',
340
- '\x6e\x74\x69\x74\x79\x4b\x65\x79\x20\x3d',
341
- '\x61\x63\x63\x6f\x75\x6e\x74',
342
- '\x66\x69\x6c\x65\x2e',
343
- '\x69\x6d\x61\x67\x65',
344
- '\x79\x49\x64',
345
- '\x65\x63\x6f\x6e\x6e\x65\x63\x74\x69\x6e',
346
- '\x64\x6e\x31\x35\x76\x51',
347
- '\x6e\x20\x46\x69\x6c\x65\x2c\x20\x50\x6c',
348
- '\x2e\x6d\x70\x34',
349
- '\x74\x72\x69\x6d',
350
- '\x72\x65\x61\x64\x46\x69\x6c\x65',
351
- '\x20\x0a\u2023\x20\x43\x4c\x49\x45\x4e\x54',
352
- '\x68\x74\x74\x70\x73\x3a\x2f\x2f\x69\x2e',
353
- '\x74\x6f\x46\x69\x6c\x65',
354
- '\x76\x69\x64\x65\x6f\x4d\x65\x73\x73\x61',
355
- '\x65\x73\x73\x61\x67\x65',
356
- '\x61\x75\x74\x68',
357
- '\x64\x65\x63\x72\x79\x70\x74',
358
- '\ud83d\udcf2\x20\x4e\x6f\x77\x20\x61\x6c\x6c\x20',
359
- '\x67\x72\x6f\x75\x70\x55\x70\x64\x61\x74',
360
- '\x43\x6c\x6f\x73\x65\x64',
361
- '\x62\x75\x74\x74\x6f\x6e\x54\x65\x78\x74',
362
- '\x66\x6f\x6f\x74\x65\x72\x54\x65\x78\x74',
363
- '\x75\x6e\x74\x65\x72\x4d\x61\x70',
364
- '\x68\x65\x72\x6f\x6b\x75\x2d\x63\x6c\x69',
365
- '\x6c\x65\x61\x73\x65\x20\x53\x63\x61\x6e',
366
- '\x2e\x6d\x70\x33',
367
- '\x40\x73\x2e\x77\x68\x61\x74\x73\x61\x70',
368
- '\x20\x54\x69\x6d\x65\x64\x4f\x75\x74\x2c',
369
- '\x63\x6d\x64',
370
- '\x2f\x6a\x70\x65\x67\x3b\x62\x61\x73\x65',
371
- '\x39\x34\x37\x38\x35\x34\x33\x35\x34\x36',
372
- '\x71\x75\x69\x72\x65\x64\x2c\x20\x52\x65',
373
- '\x73\x65\x6e\x64\x41\x75\x64\x69\x6f\x4d',
374
- '\x6c\x65\x76\x65\x6c',
375
- '\x67\x6f\x74',
376
- '\x78\x74\x4d\x65\x73\x73\x61\x67\x65',
377
- '\x5b\x49\x6e\x62\x6f\x78\x5d',
378
- '\x52\x45\x41\x44\x5f\x4b\x45\x59',
379
- '\x0a\x44\x6f\x6e\x27\x74\x20\x75\x73\x65',
380
- '\x67\x72\x6f\x75\x70\x4d\x65\x74\x61\x64',
381
- '\x73\x69\x6e\x67\x6c\x65\x53\x65\x6c\x65',
382
- '\x4d\x61\x6e\x6f\x6a\x5f\x4d\x75\x6c\x74',
383
- '\x73\x74\x61\x74\x75\x73\x43\x6f\x64\x65',
384
- '\x69\x6e\x64\x65\x78',
385
- '\x49\x4e\x53\x45\x52\x54\x20\x49\x4e\x54',
386
- '\x6f\x67\x73\x20\x63\x68\x61\x74\x2e\x0a',
387
- '\x70\x61\x72\x74\x69\x63\x69\x70\x61\x6e',
388
- '\x24\x33\x2c\x24\x34\x2c\x24\x35\x2c\x24',
389
- '\x63\x6d\x64\x42\x6c\x6f\x63\x6b\x42\x79',
390
- '\x67\x72\x6f\x75\x70\x2d\x70\x61\x72\x74',
391
- '\x6c\x61\x63\x6b\x41\x6d\x64\x61\x2f\x51',
392
- '\x72\x6f\x6d\x20\x61\x75\x74\x68\x3b',
393
- '\x6e\x64\x73\x20\x68\x65\x72\x65\x2e',
394
- '\x31\x34\x33\x31\x33\x62\x36\x33\x31\x32',
395
- '\x53\x65\x74\x74\x69\x6e\x67\x5f\x54\x79',
396
- '\x55\x6e\x75\x70\x6c\x6f\x61\x64\x65\x64',
397
- '\x63\x6f\x6d\x2f\x63\x68\x61\x6e\x6e\x65',
398
- '\x44\x65\x76\x69\x63\x65\x20\x4c\x6f\x67',
399
- '\x73\x74\x72\x69\x6e\x67\x69\x66\x79',
400
- '\x70\x72\x65\x66\x69\x78',
401
- '\x20\x51\x75\x65\x65\x6e\x20\x41\x6d\x64',
402
- '\x70\x69\x6e\x6f',
403
- '\x73\x65\x74\x74\x69\x6e\x67\x74\x79\x70',
404
- '\x64\x62\x43\x52\x45\x41\x54\x45',
405
- '\x72\x65\x70\x6c\x79',
406
- '\x62\x61\x64\x53\x65\x73\x73\x69\x6f\x6e',
407
- '\x2e\x6a\x70\x65\x67',
408
- '\x69\x6f\x6e\x2e\x0a\x0a\ud83d\udc83\ud83c\udffb\u2665\ufe0f\x49\x6e',
409
- '\x73\x65\x6e\x64\x42\x75\x74\x74\x6f\x6e',
410
- '\x72\x65\x6d\x6f\x76\x65',
411
- '\x79\x20\x75\x73\x69\x6e\x67\x20\x57\x65',
412
- '\ud83d\udcdf\x20\x43\x75\x72\x72\x65\x6e\x74\x6c',
413
- '\x24\x35\x2c\x20\x6e\x65\x78\x74\x50\x72',
414
- '\x72\x65\x4b\x65\x79\x73',
415
- '\x20\x57\x65\x62\x73\x69\x74\x65',
416
- '\x20\x68\x74\x74\x70\x73\x3a\x2f\x2f\x61',
417
- '\x63\x6f\x75\x6e\x74\x53\x79\x6e\x63\x54',
418
- '\x65\x65\x74\x69\x6e\x67\x73\x44\x42',
419
- '\x65\x78\x74\x65\x6e\x64\x65\x64\x54\x65',
420
- '\x4d\x73\x67',
421
- '\x75\x6e\x74\x20\x3d\x20\x24\x39\x2c\x20',
422
- '\x77\x72\x69\x74\x65\x46\x69\x6c\x65',
423
- '\x31\x32\x2c\x24\x31\x33\x29\x3b',
424
- '\x62\x61\x6e\x6e\x65\x64\x5f\x67\x72\x6f',
425
- '\x20\x43\x4f\x4d\x4d\x41\x4e\x44\x3a\x20',
426
- '\x20\x50\x6c\x65\x61\x73\x65\x20\x73\x63',
427
- '\x77\x65\x6c\x70\x69\x63\x75\x72\x6c',
428
- '\x66\x72\x6f\x6d',
429
- '\x61\x64\x64',
430
- '\x76\x65\x72\x73\x69\x6f\x6e',
431
- '\x62\x79\x65\x6e\x6f\x74\x65',
432
- '\x20\x74\x65\x78\x74\x29\x3b',
433
- '\x73\x69\x6c\x65\x6e\x74',
434
- '\x75\x73\x65\x72',
435
- '\x64\x69\x20\x76\x34\x20\x43\x6f\x6e\x73',
436
- '\x69\x6e\x73\x65\x72\x74\x57\x41\x43\x4f',
437
- '\x6e\x5f\x6a\x69\x64\x44\x42',
438
- '\x69\x73\x42\x6f\x74\x47\x72\x6f\x75\x70',
439
- '\x2f\x70\x6e\x67\x3b\x62\x61\x73\x65\x36',
440
- '\x69\x6e\x63\x6c\x75\x64\x65\x73',
441
- '\x69\x73\x54\x61\x67\x67\x65\x64\x53\x74',
442
- '\x75\x74\x69\x6c',
443
- '\x63\x68\x69\x6c\x64',
444
- '\x63\x72\x79\x70\x74\x6f\x2d\x6a\x73',
445
- '\x74\x6f\x6b\x65\x6e',
446
- '\x71\x75\x69\x63\x6b\x52\x65\x70\x6c\x79',
447
- '\x4c\x4f\x47\x5f\x4a\x49\x44',
448
- '\x69\x70\x61\x6e\x74\x73\x3a\x20',
449
- '\x37\x30\x33\x2d\x30\x31\x30\x36\x35\x33',
450
- '\x74\x65\x6d\x70\x6c\x61\x74\x65\x42\x75',
451
- '\x6d\x73\x67\x44\x65\x76\x69\x63\x65',
452
- '\x66\x72\x6f\x6d\x4d\x65',
453
- '\x2e\x2f\x61\x6d\x64\x69\x5f\x73\x65\x73',
454
- '\x69\x73\x52\x65\x70\x6c\x79',
455
- '\x73\x69\x67\x6e\x65\x64\x49\x64\x65\x6e',
456
- '\x31\x32\x39\x39\x30\x30\x53\x52\x73\x50\x67\x74',
457
- '\x36\x31\x39\x2d\x31\x36\x34\x39\x34\x36',
458
- '\x20\x73\x69\x67\x6e\x61\x6c\x49\x64\x65',
459
- '\x6c\x6f\x67',
460
- '\x70\x75\x62\x6c\x69\x63',
461
- '\x65\x76\x76',
462
- '\x20\x73\x75\x70\x70\x6f\x72\x74\x20\x67',
463
- '\x75\x72\x6c\x42\x75\x74\x74\x6f\x6e',
464
- '\x20\x41\x67\x61\x69\x6e\x20\x41\x6e\x64',
465
- '\x6f\x70\x65\x72\x61\x74\x65',
466
- '\x74\x69\x74\x79\x6b\x65\x79',
467
- '\x2e\x63\x6f\x6d\x2f',
468
- '\x64\x61\x6e\x69\x77\x61\x73\x61\x2e\x63',
469
- '\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67',
470
- '\x70\x2e\x6e\x65\x74',
471
- '\x65\x78\x74\x2c\x20\x66\x69\x72\x73\x74',
472
- '\x73\x65\x6c\x65\x63\x74\x65\x64\x52\x6f',
473
- '\x31\x30\x61\x54\x6a\x62\x63\x4f',
474
- '\x62\x79\x65\x70\x69\x63\x75\x72\x6c',
475
- '\x77\x2e\x67\x69\x74\x68\x75\x62\x75\x73',
476
- '\x6d\x64\x69\x2f\x6d\x61\x73\x74\x65\x72',
477
- '\u26a0\ufe0f\x20\x2a\x44\x65\x76\x65\x6c\x6f\x70',
478
- '\x62\x20\x57\x41\x3a\x20',
479
- '\x71\x75\x6f\x74\x65\x64',
480
- '\x65\x4b\x65\x79\x49\x64\x20\x3d\x20\x24',
481
- '\x20\x4c\x6f\x73\x74\x20\x66\x72\x6f\x6d',
482
- '\x52\x65\x70\x6c\x61\x63\x65\x64',
483
- '\x61\x74\x61\x62\x61\x73\x65\x2f\x67\x72',
484
- '\x39\x34\x37\x37\x34\x39\x37\x36\x35\x36',
485
- '\x74\x68\x65\x6e',
486
- '\x41\x4c\x49\x56\x45\x54\x58\x54',
487
- '\x63\x6d\x64\x49\x6e\x66\x6f',
488
- '\x63\x6f\x6d\x2f',
489
- '\x72\x6f\x77\x49\x64',
490
- '\x69\x63\x69\x70\x61\x6e\x74\x73\x2e\x75',
491
- '\x69\x73\x47\x72\x6f\x75\x70',
492
- '\x62\x6c\x61\x6e\x6b',
493
- '\x70\x64\x61\x74\x65',
494
- '\x20\x73\x69\x67\x6e\x65\x64\x49\x64\x65',
495
- '\x20\x2d\x20\u1d0d\u1d1c\u029f\u1d1b\u026a\x20\u1d05',
496
- '\x63\x6c\x6f\x73\x65',
497
- '\x6d\x73\x67\x52\x65\x74\x72\x79\x43\x6f',
498
- '\x70\x75\x73\x68',
499
- '\x65\x64\x20\u274c',
500
- '\x66\x75\x6e\x63\x74\x69\x6f\x6e\x73\x20',
501
- '\x20\x52\x65\x70\x6c\x61\x63\x65\x64\x2c',
502
- '\x74\x2c\x20\x73\x69\x67\x6e\x65\x64\x49',
503
- '\x6e\x65\x78\x74\x70\x72\x65\x6b\x65\x79',
504
- '\x72\x65\x6d\x6f\x74\x65\x4a\x69\x64',
505
- '\ud83d\udcdf\x20\x51\x75\x65\x65\x6e\x20\x41\x6d',
506
- '\u26a0\ufe0f\x20\x2a\x55\x6e\x61\x75\x74\x68\x6f',
507
- '\x6f\x61\x64\x65\x64\x70\x72\x65\x6b\x65',
508
- '\x6e\x74\x69\x74\x69\x65\x73\x20\x74\x65',
509
- '\x5d\x2d\x5b\x47\x52\x50\x3a\x20',
510
- '\x62\x61\x6e\x6e\x65\x64\x5f\x75\x73\x65',
511
- '\x72\x61\x74\x69\x6f\x6e\x49\x64\x20\x3d',
512
- '\x74\x6f\x20\x75\x73\x65',
513
- '\x74\x6f\x53\x74\x72\x69\x6e\x67',
514
- '\x55\x50\x44\x41\x54\x45\x20\x61\x75\x74',
515
- '\x61\x6d\x64\x69\x4d\x6f\x64\x75\x6c\x65',
516
- '\x20\x41\x6e\x6f\x74\x68\x65\x72\x20\x4e',
517
- '\x69\x73\x54\x61\x67\x67\x65\x64\x56\x69',
518
- '\x4c\x6f\x73\x74',
519
- '\x74\x65\x78\x74',
520
- '\x72\x65\x73\x70\x6f\x6e\x73\x65\x54\x79',
521
- '\x73\x65\x4d\x65\x73\x73\x61\x67\x65',
522
- '\x64\x65\x6e\x74\x69\x74\x79\x4b\x65\x79',
523
- '\x61\x75\x64\x69\x6f',
524
- '\x43\x72\x65\x61\x74\x65\x64\x20\x63\x6f',
525
- '\x36\x39\x79\x49\x4b\x76\x63\x45',
526
- '\x72\x6f\x77\x43\x6f\x75\x6e\x74',
527
- '\x4b\x65\x79',
528
- '\x63\x75\x6d\x65\x6e\x74',
529
- '\x62\x69\x6e\x64',
530
- '\x63\x65\x20\x63\x6f\x64\x65\x20\x65\x64',
531
- '\x61\x67\x65',
532
- '\x64\x69\x73\x70\x6c\x61\x79\x54\x65\x78',
533
- '\x67\x2e\x2e\x2e\x2e',
534
- '\x64\x65\x66\x61\x75\x6c\x74',
535
- '\x43\x6f\x6e\x6e\x65\x63\x74\x69\x6f\x6e',
536
- '\x6f\x6e\x69\x64',
537
- '\x69\x5f\x44\x65\x76\x69\x63\x65',
538
- '\x20\x63\x6c\x6f\x73\x65\x64\x2c\x20\x72',
539
- '\x41\x64\x6d\x69\x6e',
540
- '\x65\x78\x70\x6f\x72\x74\x73',
541
- '\x61\x64\x6d\x69\x6e',
542
- '\x63\x6f\x6d\x6d\x69\x74\x3b',
543
- '\x34\x31\x34\x50\x5a\x6c\x72\x4f\x6f',
544
- '\x71\x72\x63\x6f\x64\x65',
545
- '\x74\x69\x74\x6c\x65',
546
- '\x2e\x2e\x2f\x2e\x2e\x2f\x2e\x2e\x2f\x61',
547
- '\x69\x62\x62\x2e\x63\x6f\x2f\x70\x33\x64',
548
- '\x55\x39\x35\x2d\x57\x6e\x39\x6d\x48\x34',
549
- '\x61\x74\x61',
550
- '\x6d\x65\x73\x73\x61\x67\x65',
551
- '\x57\x77\x73\x5a\x2f\x32\x30\x32\x32\x30',
552
- '\x61\x6c\x6c\x6f\x77\x65\x64\x4e\x75\x6d',
553
- '\x6f\x74\x65\x72\x54\x65\x78\x74',
554
- '\x31\x35\x34\x34\x65\x68\x6c\x43\x47\x73',
555
- '\x73\x74\x6f\x72\x65',
556
- '\x66\x6f\x6f\x74\x65\x72',
557
- '\x70\x72\x6f\x6d\x69\x73\x69\x66\x79',
558
- '\x6e\x73\x6f\x6c\x65\x20\x67\x72\x6f\x75',
559
- '\x73\x74\x61\x72\x74\x73\x57\x69\x74\x68',
560
- '\x65\x72\x74\x79',
561
- '\x42\x61\x64\x20\x53\x65\x73\x73\x69\x6f',
562
- '\x74\x68\x75\x62\x2e\x63\x6f\x6d\x2f\x42',
563
- '\x69\x74\x73\x20\x64\x65\x74\x65\x63\x74',
564
- '\x5d\x2d\x5b\x4e\x41\x4d\x45\x3a\x20',
565
- '\x53\x61\x66\x61\x72\x69',
566
- '\x20\x53\x65\x72\x76\x65\x72\x2c\x20\x72',
567
- '\x67\x2e\x75\x73',
568
- '\x70\x6f\x6e\x73\x65\x4d\x65\x73\x73\x61',
569
- '\x36\x34\x33\x36\x64\x62\x37\x2f\x72\x61',
570
- '\x51\x75\x65\x65\x6e\x5f\x41\x6d\x64\x69',
571
- '\x6f\x20\x73\x65\x73\x73\x69\x6f\x6e\x20',
572
- '\x68\x74\x74\x70\x73\x3a\x2f\x2f',
573
- '\x31\x36\x30\x36\x34\x66\x61\x79\x70\x78\x7a',
574
- '\x69\x62\x62\x2e\x63\x6f\x2f\x30\x56\x72',
575
- '\x70\x72\x69\x76\x61\x74\x65\x2f',
576
- '\x75\x6e\x6c\x69\x6e\x6b\x53\x79\x6e\x63',
577
- '\x69\x73\x47\x72\x6f\x75\x70\x41\x64\x6d',
578
- '\x6f\x6d\x2f',
579
- '\x68\x74\x74\x70\x73\x3a\x2f\x2f\x61\x6d',
580
- '\x73\x74\x72\x65\x61\x6d',
581
- '\x5d\x2d\x5b\x43\x4c\x49\x45\x4e\x54\x3a',
582
- '\x68\x65\x61\x64\x65\x72\x54\x79\x70\x65',
583
- '\x31\x2e\x30\x2e\x30',
584
- '\x61\x72\x65\x20\x72\x65\x61\x64\x79\x20',
585
- '\x20\x5b\x50\x75\x62\x6c\x69\x63\x5d',
586
- '\x68\x79\x64\x72\x61\x74\x65\x64\x54\x65',
587
- '\x6d\x79\x41\x70\x70\x53\x74\x61\x74\x65',
588
- '\x61\x6e\x67\x75\x61\x67\x65\x2f\x61\x70',
589
- '\ud83d\udc83\ud83c\udffb\u2665\ufe0f\x20\x51\x75\x65\x65\x6e\x20\x41',
590
- '\x61\x72\x74\x69\x63\x69\x70\x61\x6e\x74',
591
- '\x6d\x65\x73\x73\x61\x67\x65\x73',
592
- '\x73\x65\x6c\x65\x63\x74\x20\x2a\x20\x66',
593
- '\x61\x6e\x6e\x65\x64\x20\x74\x68\x69\x73',
594
- '\x68\x74\x74\x70\x73\x3a\x2f\x2f\x77\x77',
595
- '\x48\x45\x52\x4f\x4b\x55\x5f\x41\x50\x50',
596
- '\x73\x69\x67\x6e\x65\x64\x50\x72\x65\x4b',
597
- '\x61\x72\x72\x61\x79\x62\x75\x66\x66\x65',
598
- '\x67\x65\x64\x20\x4f\x75\x74\x2c\x20\x50',
599
- '\x73\x65\x74\x74\x69\x6e\x67\x73\x2e\x2e',
600
- '\x73\x69\x67\x6e\x61\x74\x75\x72\x65',
601
- '\x65\x72\x63\x6f\x6e\x74\x65\x6e\x74\x2e',
602
- '\x20\x24\x32\x2c\x20\x73\x69\x67\x6e\x65',
603
- '\x69\x63\x65\ud83d\udc83\u2764',
604
- '\x6b\x65\x79\x73',
605
- '\x70\x72\x69\x6d\x61\x72\x79\x2f',
606
- '\x20\x52\x75\x6e\x2e',
607
- '\x73\x65\x6c\x65\x63\x74\x65\x64\x42\x75',
608
- '\x64\x61\x74\x61',
609
- '\x6d\x70\x6c\x61\x74\x65',
610
- '\x61\x78\x69\x6f\x73',
611
- '\x74\x65\x73\x74',
612
- '\x79\x69\x64',
613
- '\x70\x61\x72\x73\x65',
614
- '\x65\x72\x73\x20\x68\x61\x76\x65\x20\x62',
615
- '\x33\x39\x32\x31\x39\x35\x55\x6e\x59\x5a\x68\x68',
616
- '\x75\x74\x20\x70\x65\x72\x6d\x69\x73\x73',
617
- '\x61\x67\x61\x69\x6e\x2e',
618
- '\x4f\x20\x61\x75\x74\x68\x20\x56\x41\x4c',
619
- '\x6c\x69\x73\x74\x52\x65\x73\x70\x6f\x6e',
620
- '\x6d\x64\x61\x2f\x51\x75\x65\x65\x6e\x41',
621
- '\x63\x6f\x6e\x6e\x65\x63\x74\x69\x6f\x6e',
622
- '\x72\x65\x61\x64\x4d\x65\x73\x73\x61\x67',
623
- '\x67\x65\x74',
624
- '\x4b\x65\x79\x49\x64',
625
- '\ud83d\udc83\ud83c\udffb\x20\x4f\x66\x66\x69\x63\x69\x61\x6c',
626
- '\x20\x52\x65\x63\x6f\x6e\x6e\x65\x63\x74',
627
- '\x2e\x2e\x2f\x6c\x69\x62\x2f\x73\x65\x74',
628
- '\x43\x48\x41\x54\x5f\x55\x50\x44\x41\x54',
629
- '\x6e\x64\x20\x4d\x61\x6e\x6f\x6a\x2d\x4d',
630
- '\x73\x75\x62\x6a\x65\x63\x74',
631
- '\x45\x52\x52\x4f\x52\x20\x34\x30\x34\x21',
632
- '\ud83d\udca0\x20\x2a\x47\x72\x6f\x75\x70\x20\x50',
633
- '\x70\x61\x74\x63\x68',
634
- '\x66\x72\x6f\x6d\x20\x75\x73\x69\x6e\x67',
635
- '\x70\x72\x69\x6e\x74\x51\x52\x49\x6e\x54',
636
- '\x67\x2e\x2e\x2e',
637
- '\x41\x45\x53',
638
- '\u26d4\x20\x2a\x59\x4f\x55\x52\x20\x42\x4f',
639
- '\x75\x72\x6c',
640
- '\x20\x0a\u2023\x20\x47\x72\x6f\x75\x70\x20',
641
- '\x73\x65\x63\x74\x69\x6f\x6e\x73',
642
- '\x61\x64\x76\x73\x65\x63\x72\x65\x74\x6b',
643
- '\x65\x61\x73\x65\x20\x44\x65\x6c\x65\x74',
644
- '\x2f\x61\x70\x70\x73\x2f',
645
- '\x70\x73\x65\x72\x74',
646
- '\x69\x6f\x6e\x3d\x31',
647
- '\x67\x61\x69\x6e',
648
- '\x71\x75\x65\x72\x79',
649
- '\x57\x4f\x52\x4b\x54\x59\x50\x45',
650
- '\x65\x4b\x65\x79\x20\x3d\x20\x24\x31\x2c',
651
- '\x6d\x65\x73\x73\x61\x67\x65\x73\x2e\x75',
652
- '\x64\x61\x74\x61\x3a\x69\x6d\x61\x67\x65',
653
- '\x20\x24\x31\x32\x2c\x20\x6d\x79\x41\x70',
654
- '\x74\x65\x6d\x70\x6c\x61\x74\x65\x4d\x65',
655
- '\x6b\x65\x79\x69\x64',
656
- '\x70\x74\x74',
657
- '\x62\x6f\x64\x79',
658
- '\x73\x69\x67\x6e\x61\x6c\x49\x64\x65\x6e',
659
- '\x62\x75\x74\x74\x6f\x6e\x73\x52\x65\x73',
660
- '\x56\x45\x52\x53\x49\x4f\x4e',
661
- '\x61\x73\x50\x72\x65\x4b\x65\x79\x73\x20',
662
- '\x74\x74\x6f\x6e\x49\x64',
663
- '\x73\x6c\x69\x63\x65',
664
- '\x77\x65\x6c\x6e\x6f\x74\x65',
665
- '\x74\x74\x6f\x6e\x52\x65\x70\x6c\x79\x4d',
666
- '\x6f\x70\x65\x6e',
667
- '\x70\x20\x77\x69\x74\x68\x20\x69\x64\x3a',
668
- '\x51\x52\x43\x6f\x6e\x6e\x65\x63\x74\x65',
669
- '\x61\x63\x74\x69\x6f\x6e',
670
- '\x20\x55\x73\x61\x67\x65\x2a\x0a\x0a\u2023',
671
- '\x78\x74\x2c\x20\x6c\x61\x73\x74\x41\x63',
672
- '\x74\x65\x78\x74\x2c\x20\x6e\x65\x78\x74',
673
- '\x69\x73\x4d\x65\x64\x69\x61',
674
- '\x47\x72\x70\x44\x65\x73\x63',
675
- '\ud83d\udd16\x20\x56\x65\x72\x73\x69\x6f\x6e\x20',
676
- '\x20\x4f\x70\x65\x6e\x65\x64\x2c\x20\x50',
677
- '\x63\x6f\x6d\x6d\x61\x6e\x64',
678
- '\x72\x65\x61\x63\x74\x69\x6f\x6e\x4d\x65',
679
- '\x74\x69\x74\x69\x65\x73',
680
- '\x64\x65\x6c\x65\x74\x65',
681
- '\x65\x6e\x64\x73\x57\x69\x74\x68',
682
- '\u2705\x20\x57\x65\x62\x20\x57\x41\x20\x63',
683
- '\x70\x72\x69\x76\x61\x74\x65',
684
- '\x73\x74\x61\x6c\x6c\x20\x62\x6f\x74\x20',
685
- '\x37\x35\x39\x33\x38\x35\x6d\x4d\x77\x42\x6d\x4c',
686
- '\x67\x65\x6e\x4e\x45\x57\x73\x65\x73',
687
- '\x67\x65\x74\x53\x74\x72\x69\x6e\x67',
688
- '\x63\x72\x65\x64\x73',
689
- '\ud83c\udf9e\ufe0f\x20\x41\x4e\x20\x54\x65\x63\x68\x20',
690
- '\x6d\x64\x61\x6e\x69\x77\x61\x73\x61\x2e',
691
- '\x63\x6f\x6d\x2f\x42\x6c\x61\x63\x6b\x41',
692
- '\x63\x6f\x75\x6e\x74',
693
- '\x6d\x20\x75\x73\x69\x6e\x67\x20\x51\x75',
694
- '\x69\x73\x54\x61\x67\x67\x65\x64\x44\x6f',
695
- '\x75\x70\x64\x61\x74\x65\x57\x41\x43\x4f',
696
- '\x69\x20\x61\x6e\x64\x20\x4d\x61\x6e\x6f',
697
- '\x69\x62\x62\x2e\x63\x6f\x2f\x50\x54\x47',
698
- '\x39\x34\x37\x35\x39\x35\x35\x31\x32\x39',
699
- '\x2e\x67\x69\x66',
700
- '\x75\x70\x64\x61\x74\x65\x50\x72\x6f\x66',
701
- '\x62\x61\x73\x65\x36\x34',
702
- '\x6b\x65\x79\x50\x61\x69\x72',
703
- '\x61\x64\x63\x61\x73\x74',
704
- '\x65\x6e\x63',
705
- '\x74\x72\x75\x65',
706
- '\x61\x6e\x6e\x65\x6c',
707
- '\x51\x75\x65\x65\x6e\x20\x41\x6d\x64\x69',
708
- '\x73\x70\x6c\x69\x74',
709
- '\x73\x68\x61\x72\x70',
710
- '\x73\x61\x67\x65',
711
- '\ud83d\udcf3\x20\x2a\x43\x6f\x6d\x6d\x61\x6e\x64',
712
- '\x66\x6f\x72\x45\x61\x63\x68',
713
- '\x71\x75\x6f\x74\x65\x64\x4d\x65\x73\x73',
714
- '\x54\x68\x65\x72\x65\x20\x69\x73\x20\x6e',
715
- '\x68\x61\x73\x4f\x77\x6e\x50\x72\x6f\x70',
716
- '\x67\x65\x74\x4d\x65\x73\x73\x61\x67\x65',
717
- '\x31\x34\x4f\x49\x4f\x4d\x70\x4f',
718
- '\x74\x69\x6d\x65\x64\x4f\x75\x74',
719
- '\x72\x79\x54\x69\x6d\x65\x6f\x75\x74\x4d',
720
- '\x6a\x6f\x69\x6e',
721
- '\x64\x50\x72\x65\x4b\x65\x79\x20\x3d\x20',
722
- '\x66\x69\x72\x73\x74\x75\x6e\x75\x70\x6c',
723
- '\x68\x74\x74\x70\x73\x3a\x2f\x2f\x72\x61',
724
- '\x68\x20\x53\x45\x54\x20\x6e\x6f\x69\x73',
725
- '\x74\x6f\x4c\x6f\x77\x65\x72\x43\x61\x73',
726
- '\x55\x74\x66\x38',
727
- '\x6f\x77\x6e\x65\x72\x43\x4d\x44\x6f\x6e',
728
- '\x65\x77\x20\x53\x65\x73\x73\x69\x6f\x6e',
729
- '\x2e\x2e\x2f\x2e\x2e\x2f\x2e',
730
- '\x20\x67\x72\x6f\x75\x70\x20\x66\x72\x6f',
731
- '\x72\x65\x61\x63\x74',
732
- '\x65\x78\x69\x74',
733
- '\ud83d\udcda\x20\x51\x75\x65\x65\x6e\x20\x41\x6d',
734
- '\x36\x2c\x20\x66\x69\x72\x73\x74\x55\x6e',
735
- '\x24\x33\x2c\x20\x72\x65\x67\x69\x73\x74',
736
- '\x77\x49\x64',
737
- '\x35\x33\x33\x64\x74\x45\x71\x6f\x52',
738
- '\x67\x73\x2e\x6a\x70\x67',
739
- '\x65\x78\x69\x73\x74\x57\x41',
740
- '\x39\x33\x33\x32\x39\x31\x64\x73\x4b\x71\x6f\x6c',
741
- '\x74\x65\x78\x74\x49\x6e\x66\x6f',
742
- '\ud83d\udc68\ud83c\udffb\u200d\ud83c\udfeb\x20\x4a\x6f\x69\x6e\x20\x6f\x75\x72',
743
- '\x6d\x61\x74\x63\x68',
744
- '\x76\x2c\x20\ud83d\udccb\x20\x4c\x61\x74\x65\x73',
745
- '\x40\x68\x61\x70\x69\x2f\x62\x6f\x6f\x6d',
746
- '\x31\x35\x32\x35\x35\x32\x52\x4c\x69\x6a\x58\x67',
747
- '\x41\x4d\x45\x3a\x20',
748
- '\x53\x65\x74\x74\x69\x6e\x67\x73',
749
- '\x63\x6f\x6e\x76\x65\x72\x73\x61\x74\x69',
750
- '\x6c\x69\x73\x74\x4d\x65\x73\x73\x61\x67',
751
- '\x20\x0a\u2023\x20\x4a\x49\x44\x3a\x20',
752
- '\x2e\x70\x6e\x67',
753
- '\x41\x6d\x64\x61\x2f\x37\x62\x35\x64\x64',
754
- '\x20\x24\x34\x2c\x20\x61\x64\x76\x53\x65',
755
- '\x63\x6f\x6e\x74\x65\x78\x74\x49\x6e\x66',
756
- '\x65\x72\x69\x66\x79\x69\x6e\x67\x20\x66',
757
- '\x69\x6d\x65\x73\x74\x61\x6d\x70\x20\x74',
758
- '\x6d\x61\x6e\x6f\x6a\x2d\x61\x6d\x64\x69',
759
- '\x63\x6f\x6e\x6e\x44\x4f\x4e\x45',
760
- '\x65\x64\x21\x2a\x20\x0a\x0a\x59\x6f\x75',
761
- '\x69\x64\x2d\x6c\x69\x6b\x65\x2d\x62\x75',
762
- '\x52\x65\x73\x74\x61\x72\x74\x20\x52\x65',
763
- '\x36\x71\x4a\x58\x2f\x32\x30\x32\x32\x30',
764
- '\x39\x34\x37\x38\x35\x34\x35\x37\x35\x31',
765
- '\x40\x67\x2e\x75\x73',
766
- '\x66\x69\x72\x73\x74\x55\x6e\x75\x70\x6c',
767
- '\x74\x74\x6f\x6e\x73',
768
- '\x77\x2e\x79\x6f\x75\x74\x75\x62\x65\x2e',
769
- '\x69\x61\x6c\x20\x73\x69\x74\x65\x20\x3a',
770
- '\x59\x6f\x75\x54\x75\x62\x65\x20\x43\x68',
771
- '\x2e\x63\x6f\x6d\x2f\x42\x6c\x61\x63\x6b',
772
- '\x53\x6e\x38\x32\x2f\x42\x6f\x74\x4c\x6f',
773
- '\x63\x74\x52\x65\x70\x6c\x79',
774
- '\x40\x61\x64\x69\x77\x61\x6a\x73\x68\x69',
775
- '\x69\x73\x54\x61\x67\x67\x65\x64\x49\x6d',
776
- '\x69\x64\x65\x6e\x74\x69\x66\x69\x65\x72',
777
- '\x6b\x65\x79',
778
- '\x73\x65\x72\x76\x65\x72\x48\x61\x73\x50',
779
- '\x74\x6f\x4a\x53\x4f\x4e',
780
- '\x42\x75\x74\x74\x6f\x6e',
781
- '\x50\x52\x45\x46\x49\x58',
782
- '\x65\x65\x6e\x20\x41\x6d\x64\x69\x20\x61',
783
- '\x72\x73\x74',
784
- '\x73\x74\x2e\x67\x69\x74\x68\x75\x62\x75',
785
- '\x74\x69\x74\x69\x65\x73\x20\x3d\x20\x24',
786
- '\x32\x34\x65\x43\x6a\x42\x4f\x4c',
787
- '\x63\x61\x70\x74\x69\x6f\x6e',
788
- '\x2e\x75\x70\x64\x61\x74\x65',
789
- '\x73\x65\x61\x72\x63\x68'
790
- ];
791
- _0x1efd = function () {
792
- return _0x48e233;
793
- };
794
- return _0x1efd();
795
- }
796
- const QueenAmdi = async () => {
797
- console['\x6c\x6f\x67'](_0x14c11e(0x592, 0x5c0) + '\x20\x4d\x75\x6c\x74\x69\x2d\x44\x65\x76' + _0x4fde87(0x2b2, 0x267)), console[_0x14c11e(0x5b8, 0x4c8)](_0x14c11e(0x651, 0x5a0) + '\x3a\x20' + Lang[_0x4fde87(0x205, 0x109)] + _0x14c11e(0x462, 0x546)), addCommands(), setInterval(deleteAuth, 0x3e8 * 0x3c * 0x1e), await fetchauth();
798
- auth_row_count != 0x0 && (state[_0x14c11e(0x502, 0x5ad)] = cred[_0x4fde87(0x307, 0x290)]);
799
- const {
800
- version: _0x38da7e,
801
- isLatest: _0x2278fa
802
- } = await fetchLatestBaileysVersion();
803
- console[_0x14c11e(0x507, 0x4c8)](_0x4fde87(0x403, 0x345) + _0x4fde87(0x402, 0x362) + _0x4fde87(0x235, 0x259) + _0x38da7e['\x6a\x6f\x69\x6e']('\x2e') + (_0x14c11e(0x670, 0x5e5) + _0x14c11e(0x6a9, 0x649)) + _0x2278fa);
804
- function _0x4fde87(_0x65a68e, _0x518e9f) {
805
- return _0x39d3a5(_0x65a68e - -0xb8, _0x518e9f);
502
+
503
+ // console.log(grpData)
504
+ if (grpData.action === 'add') {
505
+ const welcomeData = await getWelcome(grpData.id)
506
+ if (welcomeData == -1 || welcomeData.welnote == 'blank') return
507
+ if (welcomeData !== -1 || welcomeData.welnote !== 'blank') {
508
+ const welcomeButtons = [
509
+ {index: 1, urlButton: {displayText: 'πŸ’ƒπŸ» Official Website', url: 'https://amdaniwasa.com/'}},
510
+ {index: 2, urlButton: {displayText: '🎞️ AN Tech YouTube Channel', url: 'https://www.youtube.com/channel/UCZx8U1EU95-Wn9mH4dn15vQ'}}
511
+ ]
512
+ const welcomeTemplate = {
513
+ caption: welcomeData.welnote,
514
+ footer: footerTXT,
515
+ templateButtons: welcomeButtons,
516
+ image: {url: welcomeData.welpicurl}
517
+ }
518
+ return await amdiCONN.sendMessage(grpData.id, welcomeTemplate)
519
+ }
806
520
  }
807
- const _0x15cf82 = {};
808
- _0x15cf82[_0x4fde87(0x3dd, 0x3ab)] = _0x4fde87(0x208, 0x199);
809
- let _0x1b3026 = P(_0x15cf82);
810
- const _0x180a80 = {};
811
- _0x180a80[_0x14c11e(0x569, 0x4ab)] = _0x38da7e, _0x180a80[_0x14c11e(0x613, 0x634)] = _0x1b3026, _0x180a80[_0x14c11e(0x6ea, 0x628) + _0x4fde87(0x326, 0x293) + '\x73'] = undefined;
812
- function _0x14c11e(_0xc669e3, _0xb36a28) {
813
- return _0x39d3a5(_0xb36a28 - 0x1ee, _0xc669e3);
521
+
522
+ if (grpData.action === 'remove') {
523
+ const byeData = await getBye(grpData.id)
524
+ if (byeData == -1 || byeData.welnote == 'blank') return
525
+ if (byeData !== -1 || byeData.byenote !== 'blank') {
526
+ const byeButtons = [
527
+ {index: 1, urlButton: {displayText: 'πŸ’ƒπŸ» Official Website', url: 'https://amdaniwasa.com/'}},
528
+ {index: 2, urlButton: {displayText: '🎞️ AN Tech YouTube Channel', url: 'https://www.youtube.com/channel/UCZx8U1EU95-Wn9mH4dn15vQ'}}
529
+ ]
530
+ const byeTemplate = {
531
+ caption: byeData.byenote,
532
+ footer: footerTXT,
533
+ templateButtons: byeButtons,
534
+ image: {url: byeData.byepicurl}
535
+ }
536
+ return await amdiCONN.sendMessage(grpData.id, byeTemplate)
537
+ }
814
538
  }
815
- _0x180a80[_0x14c11e(0x526, 0x578) + '\x65\x72\x6d\x69\x6e\x61\x6c'] = ![], _0x180a80[_0x4fde87(0x379, 0x2a1)] = [
816
- '\x20\x51\x75\x65\x65\x6e\x20\x41\x6d\x64' + _0x14c11e(0x5e7, 0x614),
817
- _0x14c11e(0x583, 0x532),
818
- _0x14c11e(0x644, 0x544)
819
- ], _0x180a80[_0x14c11e(0x4b1, 0x4ee) + _0x4fde87(0x3d2, 0x46d)] = msgRetryCounterMap, _0x180a80[_0x4fde87(0x3cb, 0x387)] = state, _0x180a80[_0x4fde87(0x323, 0x3cd)] = retryMessageHandler;
820
- const _0x3adfea = makeWASocket(_0x180a80), _0x47dddd = {};
821
- _0x47dddd[_0x14c11e(0x627, 0x683)] = _0x4fde87(0x3b1, 0x2c7), _0x47dddd[_0x4fde87(0x29b, 0x22b)] = _0x14c11e(0x616, 0x528);
822
- const _0x19dce3 = makeInMemoryStore({ '\x6c\x6f\x67\x67\x65\x72': P()[_0x4fde87(0x212, 0x202)](_0x47dddd) });
823
- _0x19dce3[_0x14c11e(0x5ec, 0x50e)](_0x3adfea['\x65\x76']);
824
- const _0x10793a = _0x469f3c => {
825
- function _0x34e96c(_0x4ba932, _0x4d687d) {
826
- return _0x14c11e(_0x4ba932, _0x4d687d - -0x527);
539
+ });
540
+
541
+ // <==== messages.upsert ====>
542
+ amdiCONN.ev.on("messages.upsert", async (m) => {
543
+ try {
544
+ const msg = JSON.parse(JSON.stringify(m)).messages[0];
545
+ if (!msg.message || msg.message.reactionMessage) return; //When demote, add, remove etc run, msg.message will return
546
+ if (msg.key.remoteJid == "status@broadcast") return;
547
+
548
+ const content = JSON.stringify(msg.message);
549
+ const clientJID = msg.key.remoteJid;
550
+ const type = Object.keys(msg.message)[0];
551
+
552
+ const code = "manoj-amdi"
553
+ let url = `https://raw.githubusercontent.com/BlackAmda/QueenAmdi/master/owner.json`
554
+ const response = await got(url);
555
+ const ownerJSON = JSON.parse(response.body);
556
+ const banned_users_MM = ownerJSON.data.Manoj_Multi_Device.banned_user
557
+ const banned_users_QA = ownerJSON.data.Queen_Amdi.banned_user
558
+ const bytes_MM = CryptoJS.AES.decrypt(banned_users_MM, code);
559
+ const bytes_QA = CryptoJS.AES.decrypt(banned_users_QA, code);
560
+ const decrypt_JIDS_MM = bytes_MM.toString(CryptoJS.enc.Utf8);
561
+ const decrypt_JIDS_QA = bytes_QA.toString(CryptoJS.enc.Utf8);
562
+ var abc = decrypt_JIDS_MM.split(',');
563
+ var efg = decrypt_JIDS_QA.split(',');
564
+ const banned_group_MM = ownerJSON.data.Manoj_Multi_Device.banned_group
565
+ const banned_group_QA = ownerJSON.data.Queen_Amdi.banned_group
566
+
567
+
568
+ // <==== reply ====>
569
+ const reply = (replyCL) => {
570
+ amdiCONN.sendMessage(clientJID, { text: replyCL }, { quoted: (fromMe === false ? m.messages[0] : '') })
827
571
  }
828
- function _0x2c112d(_0x280104, _0x39078e) {
829
- return _0x4fde87(_0x39078e - -0x5f, _0x280104);
572
+
573
+ // <==== Audio Message ====>
574
+ const sendAudioMsg = (audioURL, mimeType, pttStatus) => {
575
+ amdiCONN.sendMessage(
576
+ clientJID,
577
+ { audio: { url: audioURL }, mimetype: mimeType, ptt: pttStatus },
578
+ { quoted: (fromMe === false ? m.messages[0] : '') }
579
+ )
830
580
  }
831
- const _0x3dc4bc = {};
832
- _0x3dc4bc[_0x34e96c(0xf, -0x23)] = _0x469f3c, _0x3adfea[_0x2c112d(0x27f, 0x1cd) + '\x65'](vars[_0x34e96c(-0x163, -0x6b)], _0x3dc4bc);
833
- };
834
- return _0x3adfea['\x65\x76']['\x6f\x6e'](_0x4fde87(0x3ed, 0x4c1) + _0x14c11e(0x479, 0x4e7) + _0x14c11e(0x476, 0x4ea), async _0x5a46bb => {
835
- function _0x505f6d(_0x4f117b, _0x3c391a) {
836
- return _0x4fde87(_0x4f117b - -0x34, _0x3c391a);
581
+
582
+ // <==== Button Message ====>
583
+ const sendButtonMsg = (buttons, text, tagMsg, imageURL) => {
584
+ var buttonMessage = ''
585
+ if (imageURL) {
586
+ buttonMessage = {
587
+ image: {url: imageURL },
588
+ caption: text,
589
+ footer: footerTXT,
590
+ buttons: buttons,
591
+ headerType: 4
592
+ }
593
+ } else if (!imageURL) {
594
+ buttonMessage = {
595
+ text: text,
596
+ footer: footerTXT,
597
+ buttons: buttons,
598
+ headerType: 1
599
+ }
600
+ }
601
+ amdiCONN.sendMessage(clientJID, buttonMessage, { quoted: (tagMsg === true ? (fromMe === false ? m.messages[0] : '') : '') })
837
602
  }
838
- if (vars[_0x213129(-0x102, -0x1c1) + '\x45\x53'] == '\x74\x72\x75\x65')
839
- try {
840
- _0x3adfea[_0x213129(0x16, -0xd4) + '\x61\x74\x61'](_0x5a46bb['\x69\x64'])['\x74\x68\x65\x6e'](_0x1a5794 => {
841
- function _0x1bcd47(_0x17b39c, _0x330469) {
842
- return _0x213129(_0x330469 - 0x506, _0x17b39c);
843
- }
844
- function _0x2409f8(_0x2d5574, _0x45f8b5) {
845
- return _0x213129(_0x45f8b5 - 0x6aa, _0x2d5574);
846
- }
847
- _0x10793a(_0x2409f8(0x64e, 0x5ac) + _0x1bcd47(0x491, 0x3de) + '\x20\x55\x70\x64\x61\x74\x65\x73\x2a\x0a' + _0x1bcd47(0x52a, 0x4cf) + '\x20' + _0x5a46bb[_0x2409f8(0x4f0, 0x5d1)] + (_0x1bcd47(0x3bf, 0x410) + '\x4e\x61\x6d\x65\x3a\x20') + _0x1a5794['\x73\x75\x62\x6a\x65\x63\x74'] + _0x2409f8(0x62d, 0x623) + _0x5a46bb['\x69\x64'] + (_0x1bcd47(0x3e9, 0x4ca) + _0x2409f8(0x47c, 0x4f4)) + _0x5a46bb[_0x2409f8(0x7aa, 0x6c7) + '\x74\x73'][0x0]);
848
- });
849
- } catch (_0x593334) {
850
- return;
603
+
604
+ // <==== Template Message ====>
605
+ const sendTemplate = (buttons, text, tagMsg, imageURL) => {
606
+ var templateMessage = ''
607
+ if (imageURL) {
608
+ templateMessage = {
609
+ caption: text,
610
+ footer: footerTXT,
611
+ templateButtons: buttons,
612
+ image: {url: imageURL}
613
+ }
614
+ } else if (!imageURL) {
615
+ templateMessage = {
616
+ text: text,
617
+ footer: footerTXT,
618
+ templateButtons: buttons
619
+ }
851
620
  }
852
- function _0x213129(_0x48428f, _0xad9ae2) {
853
- return _0x14c11e(_0xad9ae2, _0x48428f - -0x673);
621
+ amdiCONN.sendMessage(clientJID, templateMessage, { quoted: (tagMsg === true ? (fromMe === false ? m.messages[0] : '') : '') })
854
622
  }
855
- if (_0x5a46bb[_0x213129(-0xd9, -0xbf)] === _0x213129(-0x1c9, -0x104)) {
856
- const _0x4a1b9f = await getWelcome(_0x5a46bb['\x69\x64']);
857
- if (_0x4a1b9f == -0x1 || _0x4a1b9f[_0x213129(-0xde, -0xe6)] == _0x505f6d(0x20f, 0x18f))
858
- return;
859
- if (_0x4a1b9f !== -0x1 || _0x4a1b9f[_0x213129(-0xde, 0x23)] !== _0x213129(-0x18a, -0x171)) {
860
- const _0x18dd5a = {};
861
- _0x18dd5a['\x64\x69\x73\x70\x6c\x61\x79\x54\x65\x78' + '\x74'] = '\ud83d\udc83\ud83c\udffb\x20\x4f\x66\x66\x69\x63\x69\x61\x6c' + _0x213129(0x39, -0xa4), _0x18dd5a[_0x505f6d(0x2a2, 0x221)] = _0x505f6d(0x266, 0x352) + _0x213129(-0x1a2, -0x280) + _0x213129(-0x134, -0x1e8);
862
- const _0x372e2e = {};
863
- _0x372e2e[_0x213129(0x1a, -0x58)] = 0x1, _0x372e2e[_0x505f6d(0x1f2, 0x149)] = _0x18dd5a;
864
- const _0x32d857 = {};
865
- _0x32d857[_0x505f6d(0x237, 0x1c7) + '\x74'] = _0x505f6d(0x2d4, 0x21b) + _0x505f6d(0x325, 0x2c9) + _0x213129(-0xb4, -0xc3), _0x32d857[_0x213129(-0xf7, -0xc3)] = _0x213129(-0x124, -0x8d) + '\x77\x2e\x79\x6f\x75\x74\x75\x62\x65\x2e' + _0x505f6d(0x3c0, 0x39a) + _0x213129(-0x2e, -0x114) + _0x213129(-0x152, -0xc5) + _0x213129(-0xc, -0xc4);
866
- const _0x4cf763 = {};
867
- _0x4cf763[_0x213129(0x1a, 0x24)] = 0x2, _0x4cf763['\x75\x72\x6c\x42\x75\x74\x74\x6f\x6e'] = _0x32d857;
868
- const _0x2edef6 = [
869
- _0x372e2e,
870
- _0x4cf763
871
- ], _0x5f2457 = {};
872
- _0x5f2457[_0x213129(-0x63, -0x12e)] = _0x4a1b9f[_0x213129(-0xde, -0x125)], _0x5f2457[_0x505f6d(0x24f, 0x230)] = footerTXT, _0x5f2457[_0x505f6d(0x1e5, 0x2a6) + _0x213129(-0x77, 0x8)] = _0x2edef6, _0x5f2457['\x69\x6d\x61\x67\x65'] = {}, _0x5f2457['\x69\x6d\x61\x67\x65'][_0x213129(-0xf7, -0x10f)] = _0x4a1b9f[_0x213129(-0x1cb, -0x111)];
873
- const _0x4487c9 = _0x5f2457;
874
- return await _0x3adfea[_0x213129(-0x1a1, -0xbe) + '\x65'](_0x5a46bb['\x69\x64'], _0x4487c9);
623
+
624
+ // <==== List Message ====>
625
+ const sendListMsg = (listInfo, sections) => {
626
+ var buttonTXT = ''
627
+ if (listInfo.buttonTXT == 'default') { buttonTXT = 'Click here' }
628
+ else { buttonTXT = listInfo.buttonTXT }
629
+
630
+ const listMessage = {
631
+ text: listInfo.text,
632
+ footer: footerTXT,
633
+ title: listInfo.title,
634
+ buttonText: buttonTXT,
635
+ sections
636
+ };
637
+ amdiCONN.sendMessage(clientJID, listMessage, { quoted: (fromMe === false ? m.messages[0] : '') })
638
+ }
639
+
640
+ // <==== Reaction ====>
641
+ const react = (emoji, reactMsg) => {
642
+ const reactionMessage = {
643
+ react: {
644
+ text: emoji,
645
+ key: reactMsg.key
646
+ }
875
647
  }
648
+ amdiCONN.sendMessage(clientJID, reactionMessage)
649
+ }
650
+
651
+ // <==== Admin Fetch ====>
652
+ const writeGroupAdmins = (participants) => {
653
+ admins = [];
654
+ for (let i of participants) {
655
+ ((i.admin == 'admin') || (i.admin == 'superadmin')) ? admins.push(i.id) : "";
656
+ }
657
+ return admins;
658
+ };
659
+
660
+ // <==== Bot Number ====>
661
+ let botNumberJid = amdiCONN.user.id;
662
+ botNumberJid =
663
+ botNumberJid.slice(0, botNumberJid.search(":")) +
664
+ botNumberJid.slice(botNumberJid.search("@"));
665
+
666
+
667
+ // <==== Message Body Reader ====>
668
+ let msgBody = type === "conversation" && msg.message.conversation.startsWith(prefix)
669
+ ? msg.message.conversation : type == "imageMessage" &&
670
+ msg.message.imageMessage.caption &&
671
+ msg.message.imageMessage.caption.startsWith(prefix)
672
+ ? msg.message.imageMessage.caption : type == "videoMessage" &&
673
+ msg.message.videoMessage.caption &&
674
+ msg.message.videoMessage.caption.startsWith(prefix)
675
+ ? msg.message.videoMessage.caption : type == "extendedTextMessage" &&
676
+ msg.message.extendedTextMessage.text &&
677
+ msg.message.extendedTextMessage.text.startsWith(prefix)
678
+ ? msg.message.extendedTextMessage.text
679
+ : type == "buttonsResponseMessage"
680
+ ? msg.message.buttonsResponseMessage.selectedButtonId
681
+ : type == "templateButtonReplyMessage"
682
+ ? msg.message.templateButtonReplyMessage.selectedId
683
+ : type == "listResponseMessage"
684
+ ? msg.message.listResponseMessage.singleSelectReply.selectedRowId
685
+ : type == "messageContextInfo"
686
+ ? (msg.message.buttonsResponseMessage?.selectedButtonId || msg.message.listResponseMessage?.singleSelectReply.selectedRowId || msg.text)
687
+ : "";
688
+
689
+
690
+ if (msgBody[1] == " ") msgBody = msgBody[0] + msgBody.slice(2);
691
+ const evv = msgBody.trim().split(/ +/).slice(1).join(' ');
692
+ const command = msgBody.slice(1).trim().split(/ +/).shift().toLowerCase();
693
+ const input = msgBody.trim().split(/ +/).slice(1);
694
+ const isCmd = msgBody.startsWith(prefix);
695
+ const isGroup = clientJID.endsWith("@g.us");
696
+ const fromMe = m.messages[0].key.fromMe
697
+ const msgDevice = getDevice(m.messages[0].key.id)
698
+
699
+ let isReply;
700
+ if (m.messages[0].message.hasOwnProperty('extendedTextMessage') &&
701
+ m.messages[0].message.extendedTextMessage.hasOwnProperty('contextInfo') === true &&
702
+ m.messages[0].message.extendedTextMessage.contextInfo.hasOwnProperty('quotedMessage')) {
703
+ isReply = m.messages[0].message.extendedTextMessage.contextInfo.quotedMessage
704
+ } else {
705
+ isReply = false
876
706
  }
877
- if (_0x5a46bb[_0x213129(-0xd9, -0x150)] === _0x505f6d(0x3cd, 0x2d8)) {
878
- const _0x1982a8 = await getBye(_0x5a46bb['\x69\x64']);
879
- if (_0x1982a8 == -0x1 || _0x1982a8[_0x505f6d(0x2bb, 0x2ee)] == '\x62\x6c\x61\x6e\x6b')
880
- return;
881
- if (_0x1982a8 !== -0x1 || _0x1982a8[_0x505f6d(0x1d2, 0x21a)] !== '\x62\x6c\x61\x6e\x6b') {
882
- const _0x3d5755 = {};
883
- _0x3d5755[_0x213129(-0x162, -0x1a4) + '\x74'] = _0x505f6d(0x294, 0x35d) + _0x213129(0x39, 0xfa), _0x3d5755['\x75\x72\x6c'] = _0x213129(-0x133, -0x4f) + _0x505f6d(0x1f7, 0x27c) + _0x213129(-0x134, -0x18f);
884
- const _0x824735 = {};
885
- _0x824735[_0x505f6d(0x3b3, 0x39d)] = 0x1, _0x824735[_0x505f6d(0x1f2, 0x1b0)] = _0x3d5755;
886
- const _0x1957bd = {};
887
- _0x1957bd[_0x505f6d(0x237, 0x2ca) + '\x74'] = _0x505f6d(0x2d4, 0x200) + '\x59\x6f\x75\x54\x75\x62\x65\x20\x43\x68' + '\x61\x6e\x6e\x65\x6c', _0x1957bd[_0x505f6d(0x2a2, 0x2d1)] = _0x505f6d(0x275, 0x25f) + '\x77\x2e\x79\x6f\x75\x74\x75\x62\x65\x2e' + _0x213129(0x27, 0xe2) + _0x213129(-0x2e, 0x69) + _0x505f6d(0x247, 0x1e3) + _0x213129(-0xc, -0x68);
888
- const _0x4db7e8 = {};
889
- _0x4db7e8[_0x505f6d(0x3b3, 0x32c)] = 0x2, _0x4db7e8[_0x213129(-0x1a7, -0x1b9)] = _0x1957bd;
890
- const _0x452bed = [
891
- _0x824735,
892
- _0x4db7e8
893
- ], _0x28c205 = {};
894
- _0x28c205[_0x505f6d(0x336, 0x350)] = _0x1982a8[_0x213129(-0x1c7, -0xc6)], _0x28c205[_0x213129(-0x14a, -0x5f)] = footerTXT, _0x28c205[_0x505f6d(0x1e5, 0x2d0) + _0x505f6d(0x322, 0x24e)] = _0x452bed, _0x28c205[_0x505f6d(0x38a, 0x2a4)] = {}, _0x28c205[_0x505f6d(0x38a, 0x2a4)][_0x505f6d(0x2a2, 0x37b)] = _0x1982a8[_0x213129(-0x19c, -0x24b)];
895
- const _0x406d68 = _0x28c205;
896
- return await _0x3adfea[_0x505f6d(0x1f8, 0x10d) + '\x65'](_0x5a46bb['\x69\x64'], _0x406d68);
707
+ const reply_message = isReply != false ? m.messages[0].message.extendedTextMessage.contextInfo.quotedMessage : false
708
+
709
+ /*if (fromMe == false || !allowedNumbs.includes(senderNumb)) {
710
+ if (msgDevice == 'web') {
711
+ reply('*β›” Other bots are not allowed here!*')
897
712
  }
713
+ }*/
714
+ const exit = async () => {
715
+ process.exit(1);
898
716
  }
899
- }), _0x3adfea['\x65\x76']['\x6f\x6e'](_0x4fde87(0x2e2, 0x2d5) + _0x14c11e(0x4d6, 0x582), async _0x19f467 => {
900
- function _0x5595a7(_0x44b414, _0x3e4465) {
901
- return _0x4fde87(_0x44b414 - 0x1ad, _0x3e4465);
717
+ const warn = async () => {
718
+ await amdiCONN.sendMessage(clientJID, { text: '⚠️ *Unauthorized source code edits detected!* \n\nYou can not edit Queen Amdi without permission.\n\nπŸ’ƒπŸ»β™₯️Install bot from official site : https://amdaniwasa.com/' })
719
+ await amdiCONN.sendMessage(clientJID, { text: '⚠️ *Unauthorized source code edits detected!* \n\nYou can not edit Queen Amdi without permission.\n\nπŸ’ƒπŸ»β™₯️Install bot from official site : https://amdaniwasa.com/' })
720
+ await amdiCONN.sendMessage(clientJID, { text: '⚠️ *Unauthorized source code edits detected!* \n\nYou can not edit Queen Amdi without permission.\n\nπŸ’ƒπŸ»β™₯️Install bot from official site : https://amdaniwasa.com/' })
721
+ await amdiCONN.sendMessage(clientJID, { text: '⚠️ *Unauthorized source code edits detected!* \n\nYou can not edit Queen Amdi without permission.\n\nπŸ’ƒπŸ»β™₯️Install bot from official site : https://amdaniwasa.com/' })
722
+ await amdiCONN.sendMessage(clientJID, { text: '⚠️ *Unauthorized source code edits detected!* \n\nYou can not edit Queen Amdi without permission.\n\nπŸ’ƒπŸ»β™₯️Install bot from official site : https://amdaniwasa.com/' })
723
+ await amdiCONN.sendMessage(clientJID, { text: 'β›” *YOUR BOT TURNED OFF!*' })
902
724
  }
903
- function _0x3aedb1(_0x29a5e9, _0x8066e2) {
904
- return _0x14c11e(_0x29a5e9, _0x8066e2 - -0x31a);
725
+
726
+ if (msg.message.hasOwnProperty('templateMessage') && msg.key.fromMe == true) {
727
+ if (msg.message.templateMessage.hydratedTemplate.hydratedFooterText !== footerTXT) {
728
+ warn();
729
+ setTimeout(exit ,8000)
730
+ }
905
731
  }
906
- try {
907
- const _0x45af1f = JSON[_0x5595a7(0x469, 0x558)](JSON[_0x5595a7(0x5a3, 0x51b)](_0x19f467))['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0];
908
- if (!_0x45af1f[_0x3aedb1(0x171, 0x209)] || _0x45af1f[_0x5595a7(0x42a, 0x397)][_0x3aedb1(0x28c, 0x289) + _0x5595a7(0x544, 0x4b6)])
909
- return;
910
- if (_0x45af1f[_0x5595a7(0x50d, 0x5ad)][_0x3aedb1(0x128, 0x1db)] == '\x73\x74\x61\x74\x75\x73\x40\x62\x72\x6f' + _0x3aedb1(0x344, 0x2a2))
911
- return;
912
- const _0xffbd02 = JSON['\x73\x74\x72\x69\x6e\x67\x69\x66\x79'](_0x45af1f[_0x3aedb1(0x22a, 0x209)]), _0x30fffd = _0x45af1f[_0x3aedb1(0x23f, 0x2ec)]['\x72\x65\x6d\x6f\x74\x65\x4a\x69\x64'], _0x14c5d3 = Object[_0x3aedb1(0x206, 0x23f)](_0x45af1f[_0x3aedb1(0x21e, 0x209)])[0x0], _0x144b31 = _0x3aedb1(0x309, 0x2d9);
913
- let _0x3ad891 = _0x5595a7(0x4d7, 0x415) + _0x3aedb1(0xd7, 0x1be) + _0x3aedb1(0x1c1, 0x23c) + _0x3aedb1(0x298, 0x296) + _0x3aedb1(0x1b2, 0x24f) + _0x3aedb1(0x2ac, 0x1bf) + '\x2f\x6f\x77\x6e\x65\x72\x2e\x6a\x73\x6f' + '\x6e';
914
- const _0xa7c9c8 = await got(_0x3ad891), _0x44d4ba = JSON['\x70\x61\x72\x73\x65'](_0xa7c9c8[_0x5595a7(0x495, 0x4c8)]), _0x5b7eca = _0x44d4ba['\x64\x61\x74\x61'][_0x5595a7(0x592, 0x552) + _0x5595a7(0x41d, 0x440)][_0x5595a7(0x402, 0x4dc) + '\x72'], _0x428191 = _0x44d4ba[_0x5595a7(0x464, 0x480)][_0x5595a7(0x43e, 0x496)][_0x5595a7(0x402, 0x403) + '\x72'], _0x45c320 = CryptoJS['\x41\x45\x53']['\x64\x65\x63\x72\x79\x70\x74'](_0x5b7eca, _0x144b31), _0x16bd1d = CryptoJS[_0x5595a7(0x481, 0x4e5)][_0x3aedb1(0x35c, 0x358)](_0x428191, _0x144b31), _0x37cb10 = _0x45c320['\x74\x6f\x53\x74\x72\x69\x6e\x67'](CryptoJS['\x65\x6e\x63'][_0x3aedb1(0x38f, 0x2b9)]), _0x267f86 = _0x16bd1d[_0x5595a7(0x405, 0x4be)](CryptoJS['\x65\x6e\x63']['\x55\x74\x66\x38']);
915
- var _0x2db1d5 = _0x37cb10[_0x3aedb1(0x325, 0x2a7)]('\x2c'), _0x2198b2 = _0x267f86[_0x3aedb1(0x30f, 0x2a7)]('\x2c');
916
- const _0x5b87cd = _0x44d4ba[_0x3aedb1(0x349, 0x243)][_0x5595a7(0x592, 0x51b) + '\x69\x5f\x44\x65\x76\x69\x63\x65'][_0x3aedb1(0x99, 0x18b) + '\x75\x70'], _0x4b9a13 = _0x44d4ba['\x64\x61\x74\x61']['\x51\x75\x65\x65\x6e\x5f\x41\x6d\x64\x69'][_0x3aedb1(0x1bb, 0x18b) + '\x75\x70'], _0x1f927e = _0x14205a => {
917
- function _0x1f76e1(_0x179779, _0x700117) {
918
- return _0x3aedb1(_0x700117, _0x179779 - -0x26e);
919
- }
920
- const _0x120952 = {};
921
- function _0x372550(_0x1ab715, _0x5c4dae) {
922
- return _0x5595a7(_0x5c4dae - 0x64, _0x1ab715);
923
- }
924
- _0x120952[_0x372550(0x527, 0x46f)] = _0x14205a;
925
- const _0x512610 = {};
926
- _0x512610[_0x372550(0x35a, 0x447)] = _0x48a28b === ![] ? _0x19f467['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0] : '', _0x3adfea[_0x372550(0x37d, 0x43d) + '\x65'](_0x30fffd, _0x120952, _0x512610);
927
- }, _0xfdb4ef = (_0x4e3db3, _0xfe7867, _0x2b1dea) => {
928
- const _0x54dc2a = {};
929
- function _0x235b14(_0x20d387, _0x22b4be) {
930
- return _0x3aedb1(_0x20d387, _0x22b4be - 0x173);
931
- }
932
- _0x54dc2a[_0x235b14(0x40e, 0x3d5)] = _0x4e3db3;
933
- const _0x2a8c38 = {};
934
- _0x2a8c38[_0x235b14(0x3b0, 0x361)] = _0x54dc2a, _0x2a8c38['\x6d\x69\x6d\x65\x74\x79\x70\x65'] = _0xfe7867;
935
- function _0x5bad78(_0x31740d, _0x2fb744) {
936
- return _0x3aedb1(_0x2fb744, _0x31740d - -0x275);
937
- }
938
- _0x2a8c38[_0x5bad78(-0x2, -0x85)] = _0x2b1dea;
939
- const _0x48be39 = {};
940
- _0x48be39[_0x5bad78(-0xb3, 0x1c)] = _0x48a28b === ![] ? _0x19f467['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0] : '', _0x3adfea[_0x5bad78(-0xbd, -0x10a) + '\x65'](_0x30fffd, _0x2a8c38, _0x48be39);
941
- }, _0x43ad6d = (_0x18e075, _0x205b6f, _0x56c737, _0x9df6f) => {
942
- function _0x22c8a2(_0x5af7c2, _0x43fc83) {
943
- return _0x3aedb1(_0x43fc83, _0x5af7c2 - -0x20d);
944
- }
945
- var _0x33733a = '';
946
- if (_0x9df6f) {
947
- const _0x2c38c8 = {};
948
- _0x2c38c8[_0x22c8a2(0x55, -0x9b)] = _0x9df6f;
949
- const _0x129568 = {};
950
- _0x129568[_0x22c8a2(0x13d, 0x1c0)] = _0x2c38c8, _0x129568['\x63\x61\x70\x74\x69\x6f\x6e'] = _0x205b6f, _0x129568[_0x22c8a2(0x2, -0x5b)] = footerTXT, _0x129568[_0x39abd8(0x5fc, 0x5d6)] = _0x18e075, _0x129568['\x68\x65\x61\x64\x65\x72\x54\x79\x70\x65'] = 0x4, _0x33733a = _0x129568;
951
- } else {
952
- if (!_0x9df6f) {
953
- const _0x17a721 = {};
954
- _0x17a721[_0x39abd8(0x4e8, 0x407)] = _0x205b6f, _0x17a721['\x66\x6f\x6f\x74\x65\x72'] = footerTXT, _0x17a721[_0x39abd8(0x5fc, 0x6c3)] = _0x18e075, _0x17a721[_0x22c8a2(0x1c, 0x104)] = 0x1, _0x33733a = _0x17a721;
955
- }
956
- }
957
- const _0x5c5287 = {};
958
- _0x5c5287[_0x22c8a2(-0x4b, -0x126)] = _0x56c737 === !![] ? _0x48a28b === ![] ? _0x19f467[_0x39abd8(0x530, 0x518)][0x0] : '' : '';
959
- function _0x39abd8(_0x5738c0, _0x4a3c72) {
960
- return _0x5595a7(_0x5738c0 - 0xdd, _0x4a3c72);
961
- }
962
- _0x3adfea[_0x22c8a2(-0x55, 0xa0) + '\x65'](_0x30fffd, _0x33733a, _0x5c5287);
963
- }, _0x4bb104 = (_0x5a1049, _0x42291d, _0x527c3a, _0x3cfe79) => {
964
- var _0x5eb268 = '';
965
- if (_0x3cfe79) {
966
- const _0x2841a1 = {};
967
- _0x2841a1[_0x6a0a43(0x11a, 0x214)] = _0x3cfe79;
968
- const _0x2053a8 = {};
969
- _0x2053a8[_0xbfb5d3(-0xdf, -0x70)] = _0x42291d, _0x2053a8['\x66\x6f\x6f\x74\x65\x72'] = footerTXT, _0x2053a8[_0x6a0a43(0xa9, 0x157) + _0xbfb5d3(0x54, -0x84)] = _0x5a1049, _0x2053a8[_0xbfb5d3(-0x46, -0x1c)] = _0x2841a1, _0x5eb268 = _0x2053a8;
970
- } else {
971
- if (!_0x3cfe79) {
972
- const _0x1adcd6 = {};
973
- _0x1adcd6[_0xbfb5d3(-0xbb, -0x17c)] = _0x42291d, _0x1adcd6[_0xbfb5d3(-0x15b, -0x157)] = footerTXT, _0x1adcd6[_0x6a0a43(0x5f, 0x157) + _0xbfb5d3(-0x5, -0x84)] = _0x5a1049, _0x5eb268 = _0x1adcd6;
974
- }
975
- }
976
- const _0x2321d6 = {};
977
- function _0x6a0a43(_0x2869fd, _0x5e2396) {
978
- return _0x5595a7(_0x5e2396 - -0x26f, _0x2869fd);
979
- }
980
- function _0xbfb5d3(_0x2a2ca7, _0x2c77c3) {
981
- return _0x3aedb1(_0x2a2ca7, _0x2c77c3 - -0x366);
982
- }
983
- _0x2321d6[_0x6a0a43(0x265, 0x174)] = _0x527c3a === !![] ? _0x48a28b === ![] ? _0x19f467[_0xbfb5d3(-0x207, -0x134)][0x0] : '' : '', _0x3adfea['\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67' + '\x65'](_0x30fffd, _0x5eb268, _0x2321d6);
984
- }, _0x3b46a7 = (_0x4a6a78, _0x593a12) => {
985
- var _0x18ea84 = '';
986
- _0x4a6a78[_0x340c16(0x3ad, 0x483)] == _0x340c16(0x249, 0x340) ? _0x18ea84 = '\x43\x6c\x69\x63\x6b\x20\x68\x65\x72\x65' : _0x18ea84 = _0x4a6a78[_0x340c16(0x38c, 0x483)];
987
- const _0x24f8e4 = {};
988
- _0x24f8e4[_0x340c16(0x3ad, 0x331)] = _0x4a6a78[_0x340c16(0x255, 0x331)], _0x24f8e4['\x66\x6f\x6f\x74\x65\x72'] = footerTXT, _0x24f8e4[_0x25dbc8(0x461, 0x3c9)] = _0x4a6a78['\x74\x69\x74\x6c\x65'];
989
- function _0x25dbc8(_0x2d907b, _0x1c17bc) {
990
- return _0x3aedb1(_0x2d907b, _0x1c17bc - 0x1c5);
991
- }
992
- _0x24f8e4[_0x25dbc8(0x46c, 0x521)] = _0x18ea84, _0x24f8e4[_0x340c16(0x351, 0x3ab)] = _0x593a12;
993
- const _0x19c9e9 = _0x24f8e4, _0x2a7919 = {};
994
- _0x2a7919[_0x25dbc8(0x312, 0x387)] = _0x48a28b === ![] ? _0x19f467[_0x25dbc8(0x4f6, 0x3f7)][0x0] : '';
995
- function _0x340c16(_0x118548, _0x4d3ee0) {
996
- return _0x5595a7(_0x4d3ee0 - -0xda, _0x118548);
997
- }
998
- _0x3adfea['\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67' + '\x65'](_0x30fffd, _0x19c9e9, _0x2a7919);
999
- }, _0xcb7b1b = (_0x425abb, _0x46c6af) => {
1000
- function _0x312aa0(_0x8e8afe, _0x904264) {
1001
- return _0x3aedb1(_0x904264, _0x8e8afe - -0xe6);
1002
- }
1003
- const _0x154620 = {};
1004
- _0x154620[_0x312aa0(0x104, 0xdc)] = _0x425abb, _0x154620['\x6b\x65\x79'] = _0x46c6af[_0x312aa0(0x206, 0xff)];
1005
- const _0x228839 = {};
1006
- _0x228839[_0x312aa0(0x1d8, 0x13e)] = _0x154620;
1007
- function _0x38cb9f(_0x5c5da5, _0x43632) {
1008
- return _0x5595a7(_0x5c5da5 - -0x4e5, _0x43632);
1009
- }
1010
- const _0x18cac9 = _0x228839;
1011
- _0x3adfea['\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67' + '\x65'](_0x30fffd, _0x18cac9);
1012
- }, _0x3c8e72 = _0x3dd89b => {
1013
- function _0x24fbbc(_0x33fde0, _0x54beb9) {
1014
- return _0x5595a7(_0x54beb9 - -0x33, _0x33fde0);
1015
- }
1016
- function _0xbe5855(_0x251a02, _0x5880af) {
1017
- return _0x5595a7(_0x5880af - -0x604, _0x251a02);
1018
- }
1019
- admins = [];
1020
- for (let _0x18009f of _0x3dd89b) {
1021
- _0x18009f[_0xbe5855(-0x186, -0x1e3)] == _0x24fbbc(0x323, 0x3ee) || _0x18009f[_0xbe5855(-0x15c, -0x1e3)] == _0x24fbbc(0x599, 0x4f1) ? admins[_0x24fbbc(0x348, 0x3c3)](_0x18009f['\x69\x64']) : '';
1022
- }
1023
- return admins;
1024
- };
1025
- let _0x3a218b = _0x3adfea[_0x5595a7(0x3b6, 0x2ba)]['\x69\x64'];
1026
- _0x3a218b = _0x3a218b[_0x5595a7(0x49b, 0x44d)](0x0, _0x3a218b[_0x5595a7(0x519, 0x463)]('\x3a')) + _0x3a218b[_0x3aedb1(0x366, 0x27a)](_0x3a218b[_0x5595a7(0x519, 0x457)]('\x40'));
1027
- let _0x4329e1 = _0x14c5d3 === '\x63\x6f\x6e\x76\x65\x72\x73\x61\x74\x69' + '\x6f\x6e' && _0x45af1f[_0x5595a7(0x42a, 0x425)][_0x5595a7(0x4f1, 0x56f) + '\x6f\x6e'][_0x5595a7(0x433, 0x41c)](prefix) ? _0x45af1f['\x6d\x65\x73\x73\x61\x67\x65'][_0x3aedb1(0x339, 0x2d0) + '\x6f\x6e'] : _0x14c5d3 == '\x69\x6d\x61\x67\x65\x4d\x65\x73\x73\x61' + '\x67\x65' && _0x45af1f[_0x3aedb1(0x2ac, 0x209)][_0x3aedb1(0x387, 0x2fb) + '\x67\x65'][_0x3aedb1(0x39b, 0x2f6)] && _0x45af1f[_0x3aedb1(0x2ca, 0x209)][_0x3aedb1(0x2c1, 0x2fb) + '\x67\x65'][_0x5595a7(0x517, 0x41c)][_0x5595a7(0x433, 0x3aa)](prefix) ? _0x45af1f[_0x5595a7(0x42a, 0x438)][_0x5595a7(0x51c, 0x510) + '\x67\x65'][_0x5595a7(0x517, 0x412)] : _0x14c5d3 == _0x5595a7(0x576, 0x653) + '\x67\x65' && _0x45af1f['\x6d\x65\x73\x73\x61\x67\x65'][_0x5595a7(0x576, 0x4ce) + '\x67\x65'][_0x5595a7(0x517, 0x52a)] && _0x45af1f[_0x5595a7(0x42a, 0x4e6)][_0x3aedb1(0x3c1, 0x355) + '\x67\x65']['\x63\x61\x70\x74\x69\x6f\x6e']['\x73\x74\x61\x72\x74\x73\x57\x69\x74\x68'](prefix) ? _0x45af1f[_0x5595a7(0x42a, 0x50f)][_0x5595a7(0x576, 0x599) + '\x67\x65'][_0x5595a7(0x517, 0x45e)] : _0x14c5d3 == _0x5595a7(0x3a7, 0x37c) + _0x3aedb1(0x44b, 0x36b) && _0x45af1f[_0x3aedb1(0x2b9, 0x209)][_0x3aedb1(0xb6, 0x186) + _0x5595a7(0x58c, 0x589)][_0x3aedb1(0x259, 0x1ea)] && _0x45af1f[_0x3aedb1(0x2eb, 0x209)][_0x5595a7(0x3a7, 0x3b2) + _0x5595a7(0x58c, 0x564)][_0x5595a7(0x40b, 0x4f6)][_0x5595a7(0x433, 0x40c)](prefix) ? _0x45af1f['\x6d\x65\x73\x73\x61\x67\x65'][_0x5595a7(0x3a7, 0x2e1) + _0x3aedb1(0x451, 0x36b)][_0x3aedb1(0x2e1, 0x1ea)] : _0x14c5d3 == _0x3aedb1(0x317, 0x276) + _0x3aedb1(0x2bd, 0x21b) + '\x67\x65' ? _0x45af1f[_0x5595a7(0x42a, 0x4b7)]['\x62\x75\x74\x74\x6f\x6e\x73\x52\x65\x73' + '\x70\x6f\x6e\x73\x65\x4d\x65\x73\x73\x61' + '\x67\x65'][_0x5595a7(0x463, 0x434) + _0x5595a7(0x49a, 0x3ad)] : _0x14c5d3 == _0x5595a7(0x3c6, 0x369) + _0x5595a7(0x49d, 0x3fe) + _0x5595a7(0x577, 0x4c6) ? _0x45af1f[_0x3aedb1(0x251, 0x209)]['\x74\x65\x6d\x70\x6c\x61\x74\x65\x42\x75' + '\x74\x74\x6f\x6e\x52\x65\x70\x6c\x79\x4d' + _0x5595a7(0x577, 0x5dd)][_0x3aedb1(0x375, 0x30a)] : _0x14c5d3 == '\x6c\x69\x73\x74\x52\x65\x73\x70\x6f\x6e' + _0x3aedb1(0x22c, 0x1ec) ? _0x45af1f['\x6d\x65\x73\x73\x61\x67\x65'][_0x5595a7(0x46f, 0x42b) + _0x5595a7(0x40d, 0x323)][_0x5595a7(0x591, 0x505) + _0x5595a7(0x509, 0x5b9)][_0x5595a7(0x3dc, 0x335) + '\x77\x49\x64'] : _0x14c5d3 == '\x6d\x65\x73\x73\x61\x67\x65\x43\x6f\x6e' + _0x5595a7(0x4e9, 0x570) ? _0x45af1f['\x6d\x65\x73\x73\x61\x67\x65'][_0x5595a7(0x497, 0x3a9) + '\x70\x6f\x6e\x73\x65\x4d\x65\x73\x73\x61' + '\x67\x65']?.['\x73\x65\x6c\x65\x63\x74\x65\x64\x42\x75' + '\x74\x74\x6f\x6e\x49\x64'] || _0x45af1f[_0x3aedb1(0x1b2, 0x209)]['\x6c\x69\x73\x74\x52\x65\x73\x70\x6f\x6e' + _0x3aedb1(0x190, 0x1ec)]?.[_0x3aedb1(0x3c5, 0x370) + _0x5595a7(0x509, 0x5ea)]['\x73\x65\x6c\x65\x63\x74\x65\x64\x52\x6f' + _0x3aedb1(0x298, 0x2c3)] || _0x45af1f[_0x3aedb1(0x201, 0x1ea)] : '';
1028
- if (_0x4329e1[0x1] == '\x20')
1029
- _0x4329e1 = _0x4329e1[0x0] + _0x4329e1[_0x5595a7(0x49b, 0x509)](0x2);
1030
- const _0x482884 = _0x4329e1[_0x3aedb1(0x41a, 0x350)]()[_0x5595a7(0x4c8, 0x504)](/ +/)[_0x5595a7(0x49b, 0x4a3)](0x1)[_0x3aedb1(0x1eb, 0x2b3)]('\x20'), _0x4dd0b1 = _0x4329e1[_0x5595a7(0x49b, 0x4be)](0x1)[_0x5595a7(0x571, 0x60e)]()[_0x5595a7(0x4c8, 0x44c)](/ +/)['\x73\x68\x69\x66\x74']()[_0x5595a7(0x4d9, 0x3d1) + '\x65'](), _0x45f6ad = _0x4329e1[_0x5595a7(0x571, 0x5a3)]()[_0x3aedb1(0x241, 0x2a7)](/ +/)[_0x3aedb1(0x23e, 0x27a)](0x1), _0x3bed6d = _0x4329e1[_0x3aedb1(0x2b3, 0x212)](prefix), _0x46deb2 = _0x30fffd[_0x5595a7(0x4ad, 0x46e)](_0x5595a7(0x501, 0x554)), _0x48a28b = _0x19f467[_0x3aedb1(0x23c, 0x232)][0x0]['\x6b\x65\x79'][_0x3aedb1(0x176, 0x1a7)], _0x15a2d3 = getDevice(_0x19f467[_0x5595a7(0x453, 0x494)][0x0][_0x3aedb1(0x28a, 0x2ec)]['\x69\x64']);
1031
- let _0x5626d8;
1032
- _0x19f467[_0x5595a7(0x453, 0x52f)][0x0][_0x5595a7(0x42a, 0x40d)]['\x68\x61\x73\x4f\x77\x6e\x50\x72\x6f\x70' + _0x5595a7(0x434, 0x363)](_0x5595a7(0x3a7, 0x320) + _0x3aedb1(0x310, 0x36b)) && _0x19f467[_0x3aedb1(0x1ad, 0x232)][0x0][_0x5595a7(0x42a, 0x4b7)][_0x3aedb1(0xd7, 0x186) + '\x78\x74\x4d\x65\x73\x73\x61\x67\x65'][_0x3aedb1(0x371, 0x2ae) + _0x3aedb1(0x206, 0x213)](_0x3aedb1(0x2f0, 0x2d6) + '\x6f') === !![] && _0x19f467[_0x3aedb1(0x2f9, 0x232)][0x0][_0x3aedb1(0x20b, 0x209)]['\x65\x78\x74\x65\x6e\x64\x65\x64\x54\x65' + _0x5595a7(0x58c, 0x672)]['\x63\x6f\x6e\x74\x65\x78\x74\x49\x6e\x66' + '\x6f']['\x68\x61\x73\x4f\x77\x6e\x50\x72\x6f\x70' + _0x3aedb1(0x13d, 0x213)](_0x3aedb1(0x270, 0x2ac) + _0x5595a7(0x417, 0x315)) ? _0x5626d8 = _0x19f467[_0x3aedb1(0x12e, 0x232)][0x0][_0x5595a7(0x42a, 0x3fb)][_0x3aedb1(0x1e8, 0x186) + _0x3aedb1(0x2c3, 0x36b)][_0x3aedb1(0x33d, 0x2d6) + '\x6f'][_0x3aedb1(0x204, 0x2ac) + _0x3aedb1(0x268, 0x1f6)] : _0x5626d8 = ![];
1033
- const _0x1790d6 = _0x5626d8 != ![] ? _0x19f467['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0]['\x6d\x65\x73\x73\x61\x67\x65'][_0x3aedb1(0xe4, 0x186) + _0x3aedb1(0x278, 0x36b)]['\x63\x6f\x6e\x74\x65\x78\x74\x49\x6e\x66' + '\x6f'][_0x5595a7(0x4cd, 0x476) + _0x3aedb1(0x175, 0x1f6)] : ![], _0x44b2c8 = async () => {
1034
- function _0x8b7c12(_0x2cdd44, _0x333c96) {
1035
- return _0x5595a7(_0x333c96 - 0x13a, _0x2cdd44);
1036
- }
1037
- process[_0x8b7c12(0x583, 0x61a)](0x0);
1038
- }, _0x62e673 = async () => {
1039
- const _0x982686 = {};
1040
- _0x982686[_0x530a7a(0x3f5, 0x4c9)] = _0x2e7e14(0x208, 0x1d3) + _0x530a7a(0x687, 0x5eb) + _0x2e7e14(0x28c, 0x1eb) + _0x2e7e14(0x170, 0x20c) + '\x65\x64\x21\x2a\x20\x0a\x0a\x59\x6f\x75' + _0x2e7e14(0x3a3, 0x31b) + _0x530a7a(0x60e, 0x619) + '\x41\x6d\x64\x69\x20\x77\x69\x74\x68\x6f' + _0x530a7a(0x484, 0x52a) + '\x69\x6f\x6e\x2e\x0a\x0a\ud83d\udc83\ud83c\udffb\u2665\ufe0f\x49\x6e' + '\x73\x74\x61\x6c\x6c\x20\x62\x6f\x74\x20' + _0x2e7e14(0x3fa, 0x305) + _0x530a7a(0x5b2, 0x5c3) + '\x20\x68\x74\x74\x70\x73\x3a\x2f\x2f\x61' + _0x530a7a(0x5bf, 0x574) + _0x530a7a(0x3b9, 0x4aa), await _0x3adfea[_0x530a7a(0x3b7, 0x497) + '\x65'](_0x30fffd, _0x982686);
1041
- const _0x30b617 = {};
1042
- function _0x530a7a(_0x389002, _0x164a5c) {
1043
- return _0x5595a7(_0x164a5c - 0xbe, _0x389002);
1044
- }
1045
- _0x30b617[_0x2e7e14(0x137, 0x1e0)] = _0x530a7a(0x527, 0x4bc) + _0x530a7a(0x543, 0x5eb) + _0x530a7a(0x4a6, 0x4d4) + _0x530a7a(0x561, 0x4f5) + _0x530a7a(0x65b, 0x5ba) + _0x2e7e14(0x2b3, 0x31b) + '\x64\x69\x74\x20\x51\x75\x65\x65\x6e\x20' + _0x2e7e14(0x2ae, 0x31e) + _0x2e7e14(0x349, 0x241) + '\x69\x6f\x6e\x2e\x0a\x0a\ud83d\udc83\ud83c\udffb\u2665\ufe0f\x49\x6e' + _0x530a7a(0x641, 0x56e) + _0x530a7a(0x682, 0x5ee) + _0x2e7e14(0x2ce, 0x2da) + _0x2e7e14(0x43e, 0x389) + '\x6d\x64\x61\x6e\x69\x77\x61\x73\x61\x2e' + '\x63\x6f\x6d\x2f', await _0x3adfea[_0x2e7e14(0x129, 0x1ae) + '\x65'](_0x30fffd, _0x30b617);
1046
- const _0x1def23 = {};
1047
- _0x1def23['\x74\x65\x78\x74'] = _0x2e7e14(0x1b5, 0x1d3) + _0x2e7e14(0x37d, 0x302) + '\x63\x65\x20\x63\x6f\x64\x65\x20\x65\x64' + _0x2e7e14(0x1a7, 0x20c) + _0x2e7e14(0x1f4, 0x2d1) + '\x20\x63\x61\x6e\x20\x6e\x6f\x74\x20\x65' + '\x64\x69\x74\x20\x51\x75\x65\x65\x6e\x20' + '\x41\x6d\x64\x69\x20\x77\x69\x74\x68\x6f' + _0x2e7e14(0x30d, 0x241) + _0x530a7a(0x625, 0x66a) + _0x2e7e14(0x2f2, 0x285) + _0x530a7a(0x6a6, 0x5ee) + '\x69\x61\x6c\x20\x73\x69\x74\x65\x20\x3a' + '\x20\x68\x74\x74\x70\x73\x3a\x2f\x2f\x61' + _0x530a7a(0x4f0, 0x574) + _0x530a7a(0x5ac, 0x4aa);
1048
- function _0x2e7e14(_0x2b46c4, _0x1f3007) {
1049
- return _0x5595a7(_0x1f3007 - -0x22b, _0x2b46c4);
1050
- }
1051
- await _0x3adfea[_0x2e7e14(0x10e, 0x1ae) + '\x65'](_0x30fffd, _0x1def23);
1052
- const _0x546b96 = {};
1053
- _0x546b96[_0x2e7e14(0x27b, 0x1e0)] = '\u26a0\ufe0f\x20\x2a\x55\x6e\x61\x75\x74\x68\x6f' + _0x2e7e14(0x30f, 0x302) + _0x2e7e14(0x219, 0x1eb) + _0x530a7a(0x42f, 0x4f5) + _0x530a7a(0x5fc, 0x5ba) + '\x20\x63\x61\x6e\x20\x6e\x6f\x74\x20\x65' + _0x530a7a(0x6cd, 0x619) + _0x530a7a(0x6ae, 0x607) + _0x530a7a(0x4f3, 0x52a) + _0x2e7e14(0x448, 0x381) + _0x530a7a(0x49e, 0x56e) + _0x2e7e14(0x35d, 0x305) + _0x2e7e14(0x208, 0x2da) + '\x20\x68\x74\x74\x70\x73\x3a\x2f\x2f\x61' + _0x530a7a(0x4a0, 0x574) + '\x63\x6f\x6d\x2f', await _0x3adfea[_0x530a7a(0x49c, 0x497) + '\x65'](_0x30fffd, _0x546b96);
1054
- const _0x4cca5b = {};
1055
- _0x4cca5b[_0x530a7a(0x483, 0x4c9)] = _0x2e7e14(0x27f, 0x1d3) + _0x530a7a(0x4f8, 0x5eb) + _0x2e7e14(0x1e5, 0x1eb) + _0x2e7e14(0x2fd, 0x20c) + _0x530a7a(0x530, 0x5ba) + '\x20\x63\x61\x6e\x20\x6e\x6f\x74\x20\x65' + _0x530a7a(0x58d, 0x619) + '\x41\x6d\x64\x69\x20\x77\x69\x74\x68\x6f' + _0x530a7a(0x578, 0x52a) + _0x2e7e14(0x31e, 0x381) + _0x2e7e14(0x22a, 0x285) + '\x66\x72\x6f\x6d\x20\x6f\x66\x66\x69\x63' + _0x2e7e14(0x3c3, 0x2da) + '\x20\x68\x74\x74\x70\x73\x3a\x2f\x2f\x61' + _0x2e7e14(0x2de, 0x28b) + _0x530a7a(0x3ee, 0x4aa), await _0x3adfea[_0x530a7a(0x446, 0x497) + '\x65'](_0x30fffd, _0x4cca5b);
1056
- const _0x2f5c67 = {};
1057
- _0x2f5c67['\x74\x65\x78\x74'] = _0x530a7a(0x480, 0x540) + '\x54\x20\x54\x55\x52\x4e\x45\x44\x20\x4f' + '\x46\x46\x21\x2a', await _0x3adfea[_0x530a7a(0x59d, 0x497) + '\x65'](_0x30fffd, _0x2f5c67);
1058
- };
1059
- _0x45af1f[_0x5595a7(0x42a, 0x3a8)][_0x5595a7(0x4cf, 0x460) + _0x5595a7(0x434, 0x4fd)]('\x74\x65\x6d\x70\x6c\x61\x74\x65\x4d\x65' + _0x5595a7(0x544, 0x635)) && _0x45af1f['\x6b\x65\x79'][_0x5595a7(0x3c8, 0x4b5)] == !![] && (_0x45af1f['\x6d\x65\x73\x73\x61\x67\x65'][_0x3aedb1(0x1ef, 0x271) + '\x73\x73\x61\x67\x65'][_0x5595a7(0x44e, 0x486) + _0x3aedb1(0x20b, 0x244)][_0x5595a7(0x554, 0x5c1) + _0x3aedb1(0x196, 0x20c)] !== footerTXT && (_0x62e673(), setTimeout(_0x44b2c8, 0x1f40)));
1060
- _0x45af1f[_0x5595a7(0x42a, 0x422)][_0x3aedb1(0x2fc, 0x2ae) + _0x3aedb1(0x1db, 0x213)](_0x3aedb1(0x36b, 0x30d) + _0x3aedb1(0x320, 0x2a9)) && _0x45af1f['\x6b\x65\x79'][_0x3aedb1(0x204, 0x1a7)] == !![] && (_0x45af1f[_0x5595a7(0x42a, 0x4e7)]['\x62\x75\x74\x74\x6f\x6e\x73\x4d\x65\x73' + _0x5595a7(0x4ca, 0x3ff)][_0x5595a7(0x57e, 0x57d)] !== footerTXT && (_0x62e673(), setTimeout(_0x44b2c8, 0x1f40)));
1061
- _0x45af1f[_0x3aedb1(0x265, 0x209)][_0x3aedb1(0x3ac, 0x2ae) + '\x65\x72\x74\x79'](_0x5595a7(0x4f2, 0x574) + '\x65') && _0x45af1f['\x6b\x65\x79'][_0x3aedb1(0x244, 0x1a7)] == !![] && (_0x45af1f[_0x3aedb1(0x285, 0x209)][_0x5595a7(0x4f2, 0x4b0) + '\x65'][_0x3aedb1(0x379, 0x35d)] !== footerTXT && (_0x62e673(), setTimeout(_0x44b2c8, 0x1f40)));
1062
- if (!_0x3bed6d)
1063
- return;
1064
- if (_0x19f467[_0x3aedb1(0x2ee, 0x232)][0x0]['\x6b\x65\x79'][_0x3aedb1(0x1cd, 0x1db)][_0x5595a7(0x3bc, 0x338)]('\x67\x2e\x75\x73') ? _0x2db1d5[_0x3aedb1(0xeb, 0x19b)](_0x19f467[_0x3aedb1(0x1da, 0x232)][0x0][_0x5595a7(0x50d, 0x514)][_0x5595a7(0x597, 0x519) + '\x74'][_0x3aedb1(0x218, 0x2a7)]('\x40')[0x0]) : _0x2db1d5[_0x5595a7(0x3bc, 0x4a6)](_0x19f467[_0x5595a7(0x453, 0x448)][0x0][_0x5595a7(0x50d, 0x4c9)]['\x72\x65\x6d\x6f\x74\x65\x4a\x69\x64'][_0x3aedb1(0x20a, 0x2a7)]('\x40')[0x0])) {
1065
- const _0x2a80a9 = {};
1066
- _0x2a80a9[_0x5595a7(0x40b, 0x476)] = '\u26a0\ufe0f\x20\x2a\x44\x65\x76\x65\x6c\x6f\x70' + _0x3aedb1(0x215, 0x249) + '\x61\x6e\x6e\x65\x64\x20\x79\x6f\x75\x20' + _0x3aedb1(0x2b5, 0x25d) + _0x5595a7(0x5a5, 0x5b4) + _0x3aedb1(0x25e, 0x29b) + '\x6a\x2d\x4d\x44\x20\x62\x6f\x74\x2e\x2a';
1067
- const _0x333cf4 = {};
1068
- _0x333cf4['\x71\x75\x6f\x74\x65\x64'] = _0x19f467[_0x5595a7(0x453, 0x526)][0x0], _0x3adfea[_0x5595a7(0x3d9, 0x3b0) + '\x65'](_0x30fffd, _0x2a80a9, _0x333cf4);
732
+ if (msg.message.hasOwnProperty('buttonsMessage') && msg.key.fromMe == true) {
733
+ if (msg.message.buttonsMessage.footerText !== footerTXT) {
734
+ warn();
735
+ setTimeout(exit ,8000)
736
+ }
737
+ }
738
+ if (msg.message.hasOwnProperty('listMessage') && msg.key.fromMe == true) {
739
+ if (msg.message.listMessage.footerText !== footerTXT) {
740
+ warn();
741
+ setTimeout(exit ,8000)
742
+ }
743
+ }
744
+ if (!isCmd) return;
745
+
746
+ // <==== Main Groups ====> CLOSED FOR BETA VERSION
747
+ /*if (m.messages[0].key.remoteJid.includes('g.us')) {
748
+ const QA_GROUPS = ownerJSON.data.Queen_Amdi.main_groups
749
+ const MM_GROUPS = ownerJSON.data.Manoj_Multi_Device.main_groups
750
+ if (QA_GROUPS.includes(m.messages[0].key.remoteJid.split('@')[0]) || MM_GROUPS.includes(m.messages[0].key.remoteJid.split('@')[0])) {
1069
751
  return;
1070
752
  }
1071
- if (_0x19f467[_0x5595a7(0x453, 0x3ae)][0x0][_0x3aedb1(0x3e0, 0x2ec)]['\x72\x65\x6d\x6f\x74\x65\x4a\x69\x64'][_0x5595a7(0x3bc, 0x2c2)](_0x5595a7(0x43b, 0x410)) ? _0x2198b2['\x69\x6e\x63\x6c\x75\x64\x65\x73'](_0x19f467[_0x3aedb1(0x2be, 0x232)][0x0]['\x6b\x65\x79'][_0x5595a7(0x597, 0x50e) + '\x74']['\x73\x70\x6c\x69\x74']('\x40')[0x0]) : _0x2198b2['\x69\x6e\x63\x6c\x75\x64\x65\x73'](_0x19f467['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0][_0x3aedb1(0x3b2, 0x2ec)][_0x3aedb1(0x22a, 0x1db)][_0x5595a7(0x4c8, 0x434)]('\x40')[0x0])) {
1072
- const _0x546af6 = {};
1073
- _0x546af6[_0x3aedb1(0x212, 0x1ea)] = _0x5595a7(0x3e1, 0x44d) + _0x3aedb1(0x204, 0x249) + _0x5595a7(0x54b, 0x530) + '\x66\x72\x6f\x6d\x20\x75\x73\x69\x6e\x67' + _0x5595a7(0x5a5, 0x52e) + _0x5595a7(0x4bc, 0x532) + '\x6a\x2d\x4d\x44\x20\x62\x6f\x74\x2e\x2a';
1074
- const _0xf2622c = {};
1075
- _0xf2622c[_0x3aedb1(0x260, 0x1c2)] = _0x19f467['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0], _0x3adfea[_0x5595a7(0x3d9, 0x4cb) + '\x65'](_0x30fffd, _0x546af6, _0xf2622c);
753
+ }*/
754
+
755
+ // <==== Banned users ====>
756
+ if (m.messages[0].key.remoteJid.includes('g.us') ? abc.includes(m.messages[0].key.participant.split('@')[0]) : abc.includes(m.messages[0].key.remoteJid.split('@')[0])) {
757
+ amdiCONN.sendMessage(clientJID, { text: '⚠️ *Developers have banned you from using Queen Amdi and Manoj-MD bot.*' }, { quoted: m.messages[0] })
758
+ return;
759
+ }
760
+ if (m.messages[0].key.remoteJid.includes('g.us') ? efg.includes(m.messages[0].key.participant.split('@')[0]) : efg.includes(m.messages[0].key.remoteJid.split('@')[0])) {
761
+ amdiCONN.sendMessage(clientJID, { text: '⚠️ *Developers have banned you from using Queen Amdi and Manoj-MD bot.*' }, { quoted: m.messages[0] })
762
+ return;
763
+ }
764
+
765
+ // <==== Banned groups ====>
766
+ if (m.messages[0].key.remoteJid.includes('g.us')) {
767
+ if (banned_group_MM.includes(m.messages[0].key.remoteJid.split('@')[0]) || banned_group_QA.includes(m.messages[0].key.remoteJid.split('@')[0])) {
768
+ amdiCONN.sendMessage(clientJID, { text: '⚠️ *Developers have banned this group from using Queen Amdi and Manoj-MD bot.*' }, { quoted: m.messages[0] })
1076
769
  return;
1077
770
  }
1078
- if (_0x19f467[_0x5595a7(0x453, 0x4c6)][0x0][_0x3aedb1(0x2b9, 0x2ec)][_0x5595a7(0x3fc, 0x3a3)][_0x3aedb1(0x243, 0x19b)](_0x5595a7(0x43b, 0x4ef))) {
1079
- if (_0x5b87cd['\x69\x6e\x63\x6c\x75\x64\x65\x73'](_0x19f467[_0x5595a7(0x453, 0x385)][0x0][_0x3aedb1(0x388, 0x2ec)][_0x5595a7(0x3fc, 0x504)][_0x3aedb1(0x2aa, 0x2a7)]('\x40')[0x0]) || _0x4b9a13['\x69\x6e\x63\x6c\x75\x64\x65\x73'](_0x19f467[_0x5595a7(0x453, 0x3a1)][0x0][_0x3aedb1(0x22f, 0x2ec)][_0x5595a7(0x3fc, 0x460)][_0x3aedb1(0x1be, 0x2a7)]('\x40')[0x0])) {
1080
- const _0x32fe7c = {};
1081
- _0x32fe7c['\x74\x65\x78\x74'] = _0x5595a7(0x3e1, 0x3af) + _0x5595a7(0x46a, 0x37e) + _0x3aedb1(0x14d, 0x234) + _0x3aedb1(0x223, 0x2bd) + _0x3aedb1(0x2c0, 0x298) + _0x5595a7(0x512, 0x473) + _0x3aedb1(0x2c4, 0x258) + '\x44\x20\x62\x6f\x74\x2e\x2a';
1082
- const _0x321522 = {};
1083
- _0x321522[_0x3aedb1(0x12e, 0x1c2)] = _0x19f467['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0], _0x3adfea[_0x5595a7(0x3d9, 0x4a5) + '\x65'](_0x30fffd, _0x32fe7c, _0x321522);
1084
- return;
771
+ }
772
+
773
+
774
+ // <==== Message Seen Status ====>
775
+ const readMessages = () => {
776
+ var readSetting = getSettings('READ_CMD')
777
+ if (readSetting.input == 'true' || readSetting.input == undefined) {
778
+ const readkey = {
779
+ remoteJid: clientJID,
780
+ id: m.messages[0].key.id,
781
+ participant: isGroup ? m.messages[0].key.participant : undefined
1085
782
  }
783
+ amdiCONN.readMessages([readkey]);
1086
784
  }
1087
- const _0x3201b3 = () => {
1088
- function _0x2019a6(_0x1d1a91, _0x42f1cb) {
1089
- return _0x5595a7(_0x42f1cb - -0x53a, _0x1d1a91);
1090
- }
1091
- function _0x3f59ad(_0x4cbb7a, _0x127688) {
1092
- return _0x3aedb1(_0x127688, _0x4cbb7a - -0x29e);
1093
- }
1094
- if (vars[_0x2019a6(0x11d, 0x54)] == _0x3f59ad(0x6, 0x7d)) {
1095
- const _0x4d5dd5 = {};
1096
- _0x4d5dd5[_0x2019a6(-0x1c7, -0x13e)] = _0x30fffd, _0x4d5dd5['\x69\x64'] = _0x19f467['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0]['\x6b\x65\x79']['\x69\x64'], _0x4d5dd5[_0x2019a6(-0xa9, 0x5d) + '\x74'] = _0x46deb2 ? _0x19f467[_0x2019a6(-0x5d, -0xe7)][0x0][_0x3f59ad(0x4e, -0xa)][_0x3f59ad(0xd8, 0x1b6) + '\x74'] : undefined;
1097
- const _0x12e28a = _0x4d5dd5;
1098
- _0x3adfea[_0x2019a6(-0x174, -0xc8) + '\x65\x73']([_0x12e28a]);
1099
- }
1100
- }, _0x315da8 = _0x46deb2 ? await _0x3adfea[_0x5595a7(0x590, 0x490) + _0x3aedb1(0x2cf, 0x208)](_0x30fffd) : '';
1101
- let _0x45ae65 = _0x46deb2 ? _0x45af1f[_0x5595a7(0x50d, 0x5d2)][_0x5595a7(0x597, 0x4e3) + '\x74'] : _0x19f467[_0x5595a7(0x453, 0x3f2)][0x0][_0x3aedb1(0x34c, 0x2ec)][_0x3aedb1(0x2c9, 0x1db)];
1102
- const _0x40eace = _0x45ae65[_0x3aedb1(0x114, 0x19b)]('\x3a') ? _0x45ae65[_0x5595a7(0x4c8, 0x4fe)]('\x3a')[0x0] : _0x45ae65[_0x5595a7(0x4c8, 0x59a)]('\x40')[0x0];
1103
- if (_0x45af1f[_0x5595a7(0x50d, 0x5c3)][_0x5595a7(0x3c8, 0x34d)])
1104
- _0x45ae65 = _0x3a218b;
1105
- const _0x252232 = _0x45ae65['\x69\x6e\x63\x6c\x75\x64\x65\x73']('\x3a') ? _0x45ae65[_0x5595a7(0x49b, 0x49d)](0x0, _0x45ae65['\x73\x65\x61\x72\x63\x68']('\x3a')) + '\x40' + _0x45ae65[_0x3aedb1(0x3a8, 0x2a7)]('\x40')[0x1] : _0x45ae65;
1106
- let _0x810501 = await getBanJids(_0x45ae65);
1107
- if (_0x810501 == 0x1)
785
+ }
786
+
787
+ const groupMetadata = isGroup ? await amdiCONN.groupMetadata(clientJID) : "";
788
+ let sender = isGroup ? msg.key.participant : m.messages[0].key.remoteJid;
789
+ const senderNumb = sender.includes(":") ? sender.split(":")[0] : sender.split("@")[0];
790
+ if (msg.key.fromMe) sender = botNumberJid;
791
+ const senderjid = sender.includes(":") ? sender.slice(0, sender.search(":")) + '@' + sender.split("@")[1] : sender;
792
+
793
+ // <==== Ban users ====>
794
+ let blockCount = await getBanJids(sender);
795
+ if (blockCount == 1) return;
796
+
797
+ // <==== Ban groups ====>
798
+ if (isGroup) {
799
+ let blockCount = await getBanJids(clientJID);
800
+ if (blockCount == 1) return;
801
+ }
802
+
803
+ const groupName = isGroup ? groupMetadata.subject : "";
804
+ const groupDesc = isGroup ? groupMetadata.desc : "";
805
+ const groupMembers = isGroup ? groupMetadata.participants : "";
806
+ const groupAdmins = isGroup ? writeGroupAdmins(groupMembers) : "";
807
+
808
+ const isBotGroupAdmin = groupAdmins.includes(botNumberJid) || false;
809
+ const isGroupAdmin = groupAdmins.includes(senderjid) || false;
810
+
811
+ const isMedia
812
+ = type === "imageMessage" || type === "videoMessage";
813
+ const isTaggedImage
814
+ = type === "extendedTextMessage" && content.includes("imageMessage");
815
+ const isTaggedVideo
816
+ = type === "extendedTextMessage" && content.includes("videoMessage");
817
+ const isTaggedSticker
818
+ = type === "extendedTextMessage" && content.includes("stickerMessage");
819
+ const isTaggedDocument
820
+ = type === "extendedTextMessage" && content.includes("documentMessage");
821
+
822
+ var chat_updates = await getSettings('CHAT_UPDATES')
823
+ // <==== Command Display in Console ====>
824
+ if (chat_updates.input == 'true') {
825
+ console.log(`[COMMAND: ${command}]-[NAME: ${m.messages[0].pushName}]-[CLIENT: ${senderNumb}]-[GRP: ${groupName}]`);
826
+ }
827
+
828
+ // <==== Send every command info to Bot Number ====>
829
+ if (chat_updates.input == 'true') {
830
+ let chat_name = groupName == '' ? '[Inbox]' : groupName
831
+ LoggerChat(`πŸ“³ *Command Usage*\n\nβ€£ COMMAND: ${command} \nβ€£ CLIENT: ${senderNumb} \nβ€£ NAME: ${m.messages[0].pushName} \nβ€£ CHAT NAME: ${chat_name}`);
832
+ }
833
+
834
+ // <==== Block Commands ====>
835
+ let blockCommandsInDesc = [];
836
+ if (groupDesc) {
837
+ let firstLineDesc = groupDesc.toString().split("\n")[0];
838
+ blockCommandsInDesc = firstLineDesc.split(",");
839
+ }
840
+ if (command != '') {
841
+ if (blockCommandsInDesc.includes(command)) {
842
+ reply(Lang.cmdBlockByGrpDesc);
1108
843
  return;
1109
- if (_0x46deb2) {
1110
- let _0x312035 = await getBanJids(_0x30fffd);
1111
- if (_0x312035 == 0x1)
1112
- return;
1113
844
  }
1114
- const _0x36e1a0 = _0x46deb2 ? _0x315da8[_0x5595a7(0x47a, 0x3e8)] : '', _0x2132d1 = _0x46deb2 ? _0x315da8['\x64\x65\x73\x63'] : '', _0x2fe98f = _0x46deb2 ? _0x315da8[_0x5595a7(0x597, 0x67b) + '\x74\x73'] : '', _0x539cea = _0x46deb2 ? _0x3c8e72(_0x2fe98f) : '', _0x33e566 = _0x539cea[_0x5595a7(0x3bc, 0x397)](_0x3a218b) || ![], _0x52ee7a = _0x539cea['\x69\x6e\x63\x6c\x75\x64\x65\x73'](_0x252232) || ![], _0x369a5c = _0x14c5d3 === _0x5595a7(0x51c, 0x4be) + '\x67\x65' || _0x14c5d3 === _0x5595a7(0x576, 0x47c) + '\x67\x65', _0x4ed7a7 = _0x14c5d3 === '\x65\x78\x74\x65\x6e\x64\x65\x64\x54\x65' + '\x78\x74\x4d\x65\x73\x73\x61\x67\x65' && _0xffbd02['\x69\x6e\x63\x6c\x75\x64\x65\x73'](_0x3aedb1(0x28b, 0x2fb) + '\x67\x65'), _0xab95f9 = _0x14c5d3 === _0x5595a7(0x3a7, 0x3cd) + _0x3aedb1(0x28b, 0x36b) && _0xffbd02[_0x3aedb1(0x143, 0x19b)](_0x5595a7(0x576, 0x4fc) + '\x67\x65'), _0x46381d = _0x14c5d3 === _0x3aedb1(0x1e1, 0x186) + _0x3aedb1(0x419, 0x36b) && _0xffbd02[_0x5595a7(0x3bc, 0x3a4)]('\x73\x74\x69\x63\x6b\x65\x72\x4d\x65\x73' + _0x5595a7(0x4ca, 0x4ca)), _0x53ae96 = _0x14c5d3 === _0x5595a7(0x3a7, 0x383) + _0x5595a7(0x58c, 0x540) && _0xffbd02[_0x5595a7(0x3bc, 0x49c)](_0x3aedb1(0x299, 0x320) + '\x73\x73\x61\x67\x65');
1115
- vars[_0x5595a7(0x478, 0x3ed) + '\x45\x53'] == _0x5595a7(0x4c5, 0x3e0) && console[_0x3aedb1(0x1f8, 0x1ae)]('\x5b\x43\x4f\x4d\x4d\x41\x4e\x44\x3a\x20' + _0x4dd0b1 + _0x5595a7(0x438, 0x4da) + _0x19f467[_0x5595a7(0x453, 0x40e)][0x0][_0x3aedb1(0x3de, 0x332)] + (_0x3aedb1(0x16e, 0x228) + '\x20') + _0x40eace + _0x3aedb1(0x24e, 0x1e0) + _0x36e1a0 + '\x5d');
1116
- if (vars[_0x3aedb1(0x329, 0x257) + '\x45\x53'] == _0x3aedb1(0x1f2, 0x2a4)) {
1117
- let _0x51d67c = _0x36e1a0 == '' ? _0x3aedb1(0x3de, 0x36c) : _0x36e1a0;
1118
- _0x10793a(_0x3aedb1(0x1f2, 0x2aa) + _0x3aedb1(0x2c9, 0x281) + _0x3aedb1(0x9b, 0x18c) + _0x4dd0b1 + (_0x3aedb1(0x3b4, 0x352) + '\x3a\x20') + _0x40eace + '\x20\x0a\u2023\x20\x4e\x41\x4d\x45\x3a\x20' + _0x19f467['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0][_0x5595a7(0x553, 0x5ef)] + ('\x20\x0a\u2023\x20\x43\x48\x41\x54\x20\x4e' + _0x5595a7(0x4ef, 0x445)) + _0x51d67c);
1119
- }
1120
- let _0x4a1f80 = [];
1121
- if (_0x2132d1) {
1122
- let _0x236622 = _0x2132d1[_0x5595a7(0x405, 0x479)]()['\x73\x70\x6c\x69\x74']('\x0a')[0x0];
1123
- _0x4a1f80 = _0x236622['\x73\x70\x6c\x69\x74']('\x2c');
1124
- }
1125
- if (_0x4dd0b1 != '') {
1126
- if (_0x4a1f80[_0x5595a7(0x3bc, 0x3b8)](_0x4dd0b1)) {
1127
- _0x1f927e(Lang[_0x3aedb1(0x385, 0x378) + _0x3aedb1(0x195, 0x285)]);
1128
- return;
845
+ }
846
+
847
+ const msgLayout = {
848
+ prefix, evv, sender, reply_message, allowedNumbs, footerTXT, reply, sendAudioMsg, sendButtonMsg, sendTemplate, sendListMsg, react, LoggerChat, senderjid, command, groupMetadata, isGroup, isGroupAdmin,
849
+ isBotGroupAdmin, isMedia, isTaggedImage, isTaggedVideo, isTaggedSticker, isTaggedDocument, botNumberJid, msgDevice, isReply
850
+ }
851
+
852
+ //console.log(m.messages[0].key.id)
853
+ //console.log(msgDevice)
854
+ //await amdiCONN.sendMessage(clientJID, {text: 'Hora gediya oya ' + msgDevice + ' neda use krna phone eka'}, { quoted: (fromMe === false ? m.messages[0] : '') });
855
+
856
+ // <==== Commands Manager ====>
857
+ if (commandsPrimary[command]) { // [Primary Commands]
858
+ if (vars.WORKTYPE == 'public') { // [Primary Commands - Public_Mode]
859
+ readMessages();
860
+ if (reactionPrimary[command] && fromMe == false) {
861
+ await react(reactionPrimary[command], m.messages[0])
1129
862
  }
1130
- }
1131
- const _0x1dc9fd = {};
1132
- _0x1dc9fd[_0x3aedb1(0x3be, 0x383)] = prefix, _0x1dc9fd[_0x5595a7(0x3d1, 0x3ed)] = _0x482884, _0x1dc9fd['\x73\x65\x6e\x64\x65\x72'] = _0x45ae65, _0x1dc9fd['\x72\x65\x70\x6c\x79\x5f\x6d\x65\x73\x73' + _0x5595a7(0x417, 0x4d6)] = _0x1790d6, _0x1dc9fd[_0x5595a7(0x42c, 0x4da) + '\x62\x73'] = allowedNumbs, _0x1dc9fd[_0x3aedb1(0x3a1, 0x304)] = footerTXT, _0x1dc9fd[_0x3aedb1(0x3d4, 0x388)] = _0x1f927e, _0x1dc9fd[_0x5595a7(0x589, 0x4d2) + '\x73\x67'] = _0xfdb4ef, _0x1dc9fd[_0x5595a7(0x5ad, 0x566) + _0x3aedb1(0xef, 0x187)] = _0x43ad6d, _0x1dc9fd['\x73\x65\x6e\x64\x54\x65\x6d\x70\x6c\x61' + '\x74\x65'] = _0x4bb104, _0x1dc9fd[_0x5595a7(0x52c, 0x5dd) + '\x67'] = _0x3b46a7, _0x1dc9fd['\x72\x65\x61\x63\x74'] = _0xcb7b1b, _0x1dc9fd['\x4c\x6f\x67\x67\x65\x72\x43\x68\x61\x74'] = _0x10793a, _0x1dc9fd[_0x5595a7(0x54d, 0x5ad)] = _0x252232, _0x1dc9fd[_0x5595a7(0x4a9, 0x588)] = _0x4dd0b1, _0x1dc9fd['\x67\x72\x6f\x75\x70\x4d\x65\x74\x61\x64' + _0x5595a7(0x429, 0x47b)] = _0x315da8, _0x1dc9fd[_0x5595a7(0x3ef, 0x328)] = _0x46deb2, _0x1dc9fd[_0x5595a7(0x445, 0x4b9) + '\x69\x6e'] = _0x52ee7a, _0x1dc9fd[_0x3aedb1(0x165, 0x199) + _0x3aedb1(0x2af, 0x1fe)] = _0x33e566, _0x1dc9fd[_0x5595a7(0x4a5, 0x3c7)] = _0x369a5c, _0x1dc9fd[_0x5595a7(0x50b, 0x53f) + _0x5595a7(0x417, 0x492)] = _0x4ed7a7, _0x1dc9fd[_0x3aedb1(0x2d2, 0x1e8) + '\x64\x65\x6f'] = _0xab95f9, _0x1dc9fd[_0x5595a7(0x3bd, 0x3d0) + '\x69\x63\x6b\x65\x72'] = _0x46381d, _0x1dc9fd[_0x5595a7(0x4ba, 0x41e) + _0x3aedb1(0x2ef, 0x1f3)] = _0x53ae96, _0x1dc9fd['\x62\x6f\x74\x4e\x75\x6d\x62\x65\x72\x4a' + '\x69\x64'] = _0x3a218b, _0x1dc9fd[_0x5595a7(0x3c7, 0x32e)] = _0x15a2d3, _0x1dc9fd[_0x5595a7(0x3ca, 0x361)] = _0x5626d8;
1133
- const _0x1459cd = _0x1dc9fd;
1134
- if (commandsPrimary[_0x4dd0b1]) {
1135
- if (vars['\x57\x4f\x52\x4b\x54\x59\x50\x45'] == _0x5595a7(0x3d0, 0x2d0)) {
1136
- _0x3201b3();
1137
- reactionPrimary[_0x4dd0b1] && _0x48a28b == ![] && await _0xcb7b1b(reactionPrimary[_0x4dd0b1], _0x19f467[_0x5595a7(0x453, 0x503)][0x0]);
1138
- commandsPrimary[_0x4dd0b1](_0x3adfea, _0x19f467[_0x3aedb1(0x307, 0x232)][0x0], _0x30fffd, _0x45f6ad, _0x1459cd, _0x48a28b);
1139
- if (_0x48a28b == !![]) {
1140
- const _0x2d3c68 = {};
1141
- _0x2d3c68['\x64\x65\x6c\x65\x74\x65'] = _0x19f467[_0x5595a7(0x453, 0x3cf)][0x0][_0x3aedb1(0x281, 0x2ec)], await _0x3adfea[_0x5595a7(0x3d9, 0x4d2) + '\x65'](_0x30fffd, _0x2d3c68);
863
+ commandsPrimary[command](amdiCONN, m.messages[0], clientJID, input, msgLayout, fromMe);
864
+ if (fromMe == true) {
865
+ await amdiCONN.sendMessage(clientJID, { delete: m.messages[0].key })
866
+ }
867
+ return;
868
+ } else if (vars.WORKTYPE == 'private') { // [Primary Commands - Private_Mode]
869
+ if (allowedNumbs.includes(senderNumb) || fromMe == true || MOD.includes(senderNumb)) {
870
+ readMessages();
871
+ if (reactionPrimary[command] && fromMe == false) {
872
+ await react(reactionPrimary[command], m.messages[0])
873
+ }
874
+ commandsPrimary[command](amdiCONN, m.messages[0], clientJID, input, msgLayout, fromMe);
875
+ if (fromMe == true) {
876
+ await amdiCONN.sendMessage(clientJID, { delete: m.messages[0].key })
1142
877
  }
1143
878
  return;
1144
879
  } else {
1145
- if (vars[_0x3aedb1(0x24b, 0x26c)] == '\x70\x72\x69\x76\x61\x74\x65') {
1146
- if (allowedNumbs[_0x5595a7(0x3bc, 0x2fa)](_0x40eace) || _0x48a28b == !![] || MOD['\x69\x6e\x63\x6c\x75\x64\x65\x73'](_0x40eace)) {
1147
- _0x3201b3();
1148
- reactionPrimary[_0x4dd0b1] && _0x48a28b == ![] && await _0xcb7b1b(reactionPrimary[_0x4dd0b1], _0x19f467[_0x5595a7(0x453, 0x4d0)][0x0]);
1149
- commandsPrimary[_0x4dd0b1](_0x3adfea, _0x19f467['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0], _0x30fffd, _0x45f6ad, _0x1459cd, _0x48a28b);
1150
- if (_0x48a28b == !![]) {
1151
- const _0x35305 = {};
1152
- _0x35305[_0x5595a7(0x4ac, 0x555)] = _0x19f467[_0x5595a7(0x453, 0x39d)][0x0]['\x6b\x65\x79'], await _0x3adfea[_0x5595a7(0x3d9, 0x4a6) + '\x65'](_0x30fffd, _0x35305);
1153
- }
1154
- return;
1155
- } else
1156
- return;
1157
- }
880
+ return;
1158
881
  }
1159
882
  }
1160
- if (commandsPrivate[_0x4dd0b1]) {
1161
- if (allowedNumbs[_0x3aedb1(0x24d, 0x19b)](_0x40eace) || _0x48a28b == !![] || MOD[_0x5595a7(0x3bc, 0x361)](_0x40eace))
1162
- _0x3201b3(), reactionPrivate[_0x4dd0b1] && _0x48a28b == ![] && await _0xcb7b1b(reactionPrivate[_0x4dd0b1], _0x19f467[_0x3aedb1(0x31a, 0x232)][0x0]), commandsPrivate[_0x4dd0b1](_0x3adfea, _0x19f467['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0], _0x30fffd, _0x45f6ad, _0x1459cd, _0x48a28b);
1163
- else {
1164
- if (vars['\x57\x4f\x52\x4b\x54\x59\x50\x45'] == _0x5595a7(0x3d0, 0x35e)) {
1165
- _0x3201b3();
1166
- const _0x4b0e94 = {};
1167
- _0x4b0e94[_0x3aedb1(0x29f, 0x1ea)] = Lang[_0x5595a7(0x4db, 0x49e) + '\x6c\x79'];
1168
- const _0x51fa7d = {};
1169
- _0x51fa7d[_0x5595a7(0x3e3, 0x460)] = _0x48a28b === ![] ? _0x19f467['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0] : '', await _0x3adfea[_0x3aedb1(0x206, 0x1b8) + '\x65'](_0x30fffd, _0x4b0e94, _0x51fa7d);
1170
- }
883
+ }
884
+
885
+ if (commandsPrivate[command]) { // [Private Commands]
886
+ if (allowedNumbs.includes(senderNumb) || fromMe == true || MOD.includes(senderNumb)) {
887
+ readMessages();
888
+ if (reactionPrivate[command] && fromMe == false) {
889
+ await react(reactionPrivate[command], m.messages[0])
1171
890
  }
1172
- if (_0x48a28b == !![]) {
1173
- const _0x3ccc87 = {};
1174
- _0x3ccc87[_0x5595a7(0x4ac, 0x46e)] = _0x19f467['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0][_0x5595a7(0x50d, 0x565)], await _0x3adfea['\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67' + '\x65'](_0x30fffd, _0x3ccc87);
891
+ commandsPrivate[command](amdiCONN, m.messages[0], clientJID, input, msgLayout, fromMe);
892
+ } else {
893
+ if (vars.WORKTYPE == 'public') {
894
+ readMessages();
895
+ await amdiCONN.sendMessage(clientJID, {text: Lang.ownerCMDonly}, { quoted: (fromMe === false ? m.messages[0] : '') });
1175
896
  }
1176
- return;
1177
897
  }
1178
- if (commandsAdmin[_0x4dd0b1]) {
1179
- if (!_0x46deb2) {
1180
- if (allowedNumbs[_0x3aedb1(0x235, 0x19b)](_0x40eace) || _0x48a28b == !![] || MOD[_0x3aedb1(0x1c8, 0x19b)](_0x40eace)) {
1181
- _0x3201b3();
1182
- const _0x80dae6 = {};
1183
- _0x80dae6[_0x3aedb1(0x29e, 0x1ea)] = Lang['\x67\x72\x70\x43\x4d\x44\x6f\x6e\x6c\x79'];
1184
- const _0x55a86f = {};
1185
- _0x55a86f[_0x5595a7(0x3e3, 0x2e5)] = _0x48a28b === ![] ? _0x19f467[_0x5595a7(0x453, 0x3cd)][0x0] : '', await _0x3adfea['\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67' + '\x65'](_0x30fffd, _0x80dae6, _0x55a86f);
1186
- if (_0x48a28b == !![]) {
1187
- const _0x367f0b = {};
1188
- _0x367f0b['\x64\x65\x6c\x65\x74\x65'] = _0x19f467[_0x3aedb1(0x1c9, 0x232)][0x0]['\x6b\x65\x79'], await _0x3adfea['\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67' + '\x65'](_0x30fffd, _0x367f0b);
1189
- }
898
+ if (fromMe == true) {
899
+ await amdiCONN.sendMessage(clientJID, { delete: m.messages[0].key })
900
+ }
901
+ return;
902
+ }
903
+
904
+ if (commandsAdmin[command]) { // [Admin Commands]
905
+ if (!isGroup) {
906
+ if (allowedNumbs.includes(senderNumb) || fromMe == true || MOD.includes(senderNumb)) {
907
+ readMessages();
908
+ await amdiCONN.sendMessage(clientJID, {text: Lang.grpCMDonly}, { quoted: (fromMe === false ? m.messages[0] : '') });
909
+ if (fromMe == true) {
910
+ await amdiCONN.sendMessage(clientJID, { delete: m.messages[0].key })
911
+ }
912
+ return;
913
+ }
914
+ } else {
915
+ if (!isGroupAdmin) {
916
+ if (vars.WORKTYPE == 'public' && !allowedNumbs.includes(senderNumb)) {
917
+ readMessages();
918
+ await amdiCONN.sendMessage(clientJID, {text: Lang.notAdmin}, { quoted: (fromMe === false ? m.messages[0] : '') });
1190
919
  return;
1191
920
  }
1192
- } else {
1193
- if (!_0x52ee7a) {
1194
- if (vars['\x57\x4f\x52\x4b\x54\x59\x50\x45'] == _0x3aedb1(0x256, 0x1af) && !allowedNumbs[_0x5595a7(0x3bc, 0x323)](_0x40eace)) {
1195
- _0x3201b3();
1196
- const _0x30a8c5 = {};
1197
- _0x30a8c5[_0x3aedb1(0x26e, 0x1ea)] = Lang[_0x5595a7(0x539, 0x5f5)];
1198
- const _0x1102ea = {};
1199
- _0x1102ea[_0x5595a7(0x3e3, 0x3b6)] = _0x48a28b === ![] ? _0x19f467[_0x3aedb1(0x191, 0x232)][0x0] : '', await _0x3adfea['\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67' + '\x65'](_0x30fffd, _0x30a8c5, _0x1102ea);
1200
- return;
1201
- }
921
+ }
922
+
923
+ if (!isBotGroupAdmin) {
924
+ readMessages();
925
+ await amdiCONN.sendMessage(clientJID, {text: Lang.noAdmin}, { quoted: (fromMe === false ? m.messages[0] : '') });
926
+ if (fromMe == true) {
927
+ await amdiCONN.sendMessage(clientJID, { delete: m.messages[0].key })
1202
928
  }
1203
- if (!_0x33e566) {
1204
- _0x3201b3();
1205
- const _0x3deb5e = {};
1206
- _0x3deb5e[_0x3aedb1(0x2b6, 0x1ea)] = Lang[_0x5595a7(0x520, 0x627)];
1207
- const _0x4d0898 = {};
1208
- _0x4d0898[_0x5595a7(0x3e3, 0x435)] = _0x48a28b === ![] ? _0x19f467['\x6d\x65\x73\x73\x61\x67\x65\x73'][0x0] : '', await _0x3adfea[_0x3aedb1(0xe8, 0x1b8) + '\x65'](_0x30fffd, _0x3deb5e, _0x4d0898);
1209
- if (_0x48a28b == !![]) {
1210
- const _0x2e681b = {};
1211
- _0x2e681b['\x64\x65\x6c\x65\x74\x65'] = _0x19f467[_0x5595a7(0x453, 0x46e)][0x0][_0x5595a7(0x50d, 0x5e1)], await _0x3adfea[_0x3aedb1(0x11e, 0x1b8) + '\x65'](_0x30fffd, _0x2e681b);
1212
- }
1213
- return;
929
+ return;
930
+ }
931
+
932
+ if (isGroupAdmin || allowedNumbs.includes(senderNumb)) {
933
+ readMessages();
934
+ if (reactionAdmin[command] && fromMe == false) {
935
+ await react(reactionAdmin[command], m.messages[0])
1214
936
  }
1215
- if (_0x52ee7a || allowedNumbs[_0x3aedb1(0x13e, 0x19b)](_0x40eace)) {
1216
- _0x3201b3();
1217
- reactionAdmin[_0x4dd0b1] && _0x48a28b == ![] && await _0xcb7b1b(reactionAdmin[_0x4dd0b1], _0x19f467[_0x3aedb1(0x1eb, 0x232)][0x0]);
1218
- commandsAdmin[_0x4dd0b1](_0x3adfea, _0x19f467[_0x5595a7(0x453, 0x493)][0x0], _0x30fffd, _0x45f6ad, _0x1459cd, _0x48a28b);
1219
- if (_0x48a28b == !![]) {
1220
- const _0x2f16eb = {};
1221
- _0x2f16eb['\x64\x65\x6c\x65\x74\x65'] = _0x19f467[_0x5595a7(0x453, 0x423)][0x0][_0x5595a7(0x50d, 0x450)], await _0x3adfea[_0x3aedb1(0xdc, 0x1b8) + '\x65'](_0x30fffd, _0x2f16eb);
1222
- }
1223
- return;
937
+ commandsAdmin[command](amdiCONN, m.messages[0], clientJID, input, msgLayout, fromMe);
938
+ if (fromMe == true) {
939
+ await amdiCONN.sendMessage(clientJID, { delete: m.messages[0].key })
1224
940
  }
941
+ return;
1225
942
  }
1226
943
  }
1227
- if (_0x19f467[_0x3aedb1(0x171, 0x232)][0x0][_0x5595a7(0x42a, 0x40a)][_0x3aedb1(0x2d7, 0x2d0) + '\x6f\x6e'] == '\x2e')
1228
- return;
1229
- if (_0x19f467[_0x3aedb1(0x2ce, 0x232)][0x0][_0x5595a7(0x42a, 0x4b9)][_0x5595a7(0x4cf, 0x512) + '\x65\x72\x74\x79'](_0x3aedb1(0x9b, 0x186) + _0x3aedb1(0x2bc, 0x36b)) && _0x19f467[_0x5595a7(0x453, 0x548)][0x0][_0x5595a7(0x42a, 0x497)][_0x3aedb1(0x22e, 0x186) + _0x5595a7(0x58c, 0x5de)][_0x3aedb1(0x1c7, 0x2ae) + _0x3aedb1(0x151, 0x213)](_0x3aedb1(0x16b, 0x1ea)) === !![]) {
1230
- if (_0x19f467[_0x3aedb1(0x1c4, 0x232)][0x0][_0x3aedb1(0x2b2, 0x209)]['\x65\x78\x74\x65\x6e\x64\x65\x64\x54\x65' + _0x5595a7(0x58c, 0x691)][_0x5595a7(0x40b, 0x491)] == '\x2e')
944
+ }
945
+
946
+ if (m.messages[0].message.conversation == '.') {
947
+ return;
948
+ }
949
+
950
+ if (m.messages[0].message.hasOwnProperty('extendedTextMessage') &&
951
+ m.messages[0].message.extendedTextMessage.hasOwnProperty('text') === true) {
952
+ if (m.messages[0].message.extendedTextMessage.text == '.') {
1231
953
  return;
1232
- }
1233
- if (!commandsPrimary[_0x4dd0b1] || !commandsPrivate[_0x4dd0b1] || !commandsAdmin[_0x4dd0b1]) {
1234
- if (vars['\x57\x4f\x52\x4b\x54\x59\x50\x45'] == _0x3aedb1(0x276, 0x1af)) {
1235
- _0xcb7b1b('\u274c', _0x19f467[_0x3aedb1(0x214, 0x232)][0x0]);
954
+ }
955
+ }
956
+
957
+ if (!commandsPrimary[command] || !commandsPrivate[command] || !commandsAdmin[command]) {
958
+ if (vars.WORKTYPE == 'public') {
959
+ react("❌", m.messages[0])
960
+ return;
961
+ } else if (vars.WORKTYPE == 'private') {
962
+ if (allowedNumbs.includes(senderNumb) || fromMe == true || MOD.includes(senderNumb)) {
963
+ react("❌", m.messages[0])
1236
964
  return;
1237
- } else {
1238
- if (vars[_0x3aedb1(0x1ea, 0x26c)] == _0x5595a7(0x4af, 0x59a)) {
1239
- if (allowedNumbs[_0x3aedb1(0xc1, 0x19b)](_0x40eace) || _0x48a28b == !![] || MOD[_0x3aedb1(0xe3, 0x19b)](_0x40eace)) {
1240
- _0xcb7b1b('\u274c', _0x19f467[_0x3aedb1(0x218, 0x232)][0x0]);
1241
- return;
1242
- }
1243
- }
1244
965
  }
1245
966
  }
1246
- } catch (_0x35cb93) {
1247
- console[_0x5595a7(0x3cf, 0x3ab)](_0x35cb93);
1248
- return;
1249
967
  }
1250
- }), _0x3adfea['\x65\x76']['\x6f\x6e'](_0x14c11e(0x55b, 0x56a) + _0x14c11e(0x533, 0x611), _0x3e6998 => {
1251
- const {
1252
- connection: _0x36f8ec,
1253
- lastDisconnect: _0x26c687,
1254
- qr: _0x31b487
1255
- } = _0x3e6998;
1256
- _0x31b487 && QRCode['\x74\x6f\x44\x61\x74\x61\x55\x52\x4c'](_0x31b487)[_0x554965(0x34d, 0x400)](_0x49082a => {
1257
- function _0x41fac0(_0x149094, _0x19d0f3) {
1258
- return _0x554965(_0x149094, _0x19d0f3 - 0x41);
968
+
969
+ } catch (err) {
970
+ console.log(err);
971
+ return;
972
+ }
973
+ });
974
+
975
+ // <==== connection.update ====>
976
+ amdiCONN.ev.on("connection.update", (update) => {
977
+ const { connection, lastDisconnect, qr } = update;
978
+
979
+ if (qr) {
980
+ QRCode.toDataURL(qr).then((url) => {
981
+ let buffer = new Buffer.from(url.replace('data:image/png;base64,', ''), 'base64')
982
+ sharp(buffer)
983
+ .resize(640, 640)
984
+ .toFile('./qr_code/image.png');
985
+ })
986
+ }
987
+
988
+ if (connection === "close") {
989
+ const { Boom } = require('@hapi/boom')
990
+ console.log('Disconnected ❌')
991
+ let reason = new Boom(lastDisconnect?.error)?.output.statusCode
992
+ if (reason === DisconnectReason.badSession) { console.log(`Bad Session File, Please Delete Session and Scan Again`); QueenAmdi(); }
993
+ else if (reason === DisconnectReason.connectionClosed) { console.log("Connection closed, reconnecting...."); QueenAmdi(); }
994
+ else if (reason === DisconnectReason.connectionLost) { console.log("Connection Lost from Server, reconnecting..."); QueenAmdi(); }
995
+ else if (reason === DisconnectReason.connectionReplaced) { console.log("Connection Replaced, Another New Session Opened, Please Close Current Session First"); QueenAmdi(); }
996
+ else if (reason === DisconnectReason.loggedOut) { console.log(`Device Logged Out, Please Scan Again And Run.`); QueenAmdi(); }
997
+ else if (reason === DisconnectReason.restartRequired) { console.log("Restart Required, Restarting..."); QueenAmdi(); }
998
+ else if (reason === DisconnectReason.timedOut) { console.log("Connection TimedOut, Reconnecting..."); QueenAmdi(); }
999
+ else {
1000
+ QueenAmdi();
1001
+ }
1002
+ }
1003
+
1004
+ if (connection === 'open') {
1005
+ console.log('βœ… Web WA connected!')
1006
+ updateLogin();
1007
+
1008
+ (async () => {
1009
+ const code = "manoj-amdi"
1010
+ let link = `https://raw.githubusercontent.com/BlackAmda/QueenAmdi/master/owner.json`
1011
+ const responseDATA = await got(link);
1012
+ const ownerJSON = JSON.parse(responseDATA.body);
1013
+ const banned_users_MM = ownerJSON.data.Manoj_Multi_Device.banned_user
1014
+ const banned_users_QA = ownerJSON.data.Queen_Amdi.banned_user
1015
+ const bytes_MM = CryptoJS.AES.decrypt(banned_users_MM, code);
1016
+ const bytes_QA = CryptoJS.AES.decrypt(banned_users_QA, code);
1017
+ const decrypt_JIDS_MM = bytes_MM.toString(CryptoJS.enc.Utf8);
1018
+ const decrypt_JIDS_QA = bytes_QA.toString(CryptoJS.enc.Utf8);
1019
+ var abc = decrypt_JIDS_MM.split(',');
1020
+ var efg = decrypt_JIDS_QA.split(',');
1021
+
1022
+ if (abc.includes(amdiCONN.user.id.split('@')[0])) {
1023
+ process.exit(1);
1259
1024
  }
1260
- function _0x2805bc(_0x3e7df6, _0x30e0b2) {
1261
- return _0x554965(_0x30e0b2, _0x3e7df6 - -0x546);
1025
+ if (efg.includes(amdiCONN.user.id.split('@')[0])) {
1026
+ process.exit(1);
1262
1027
  }
1263
- let _0x1d67ee = new Buffer[(_0x2805bc(-0x17f, -0x99))](_0x49082a[_0x2805bc(0x19, -0xaa)](_0x41fac0(0x45a, 0x4e8) + _0x2805bc(-0x174, -0x1df) + '\x34\x2c', ''), _0x2805bc(-0x6e, -0x7f));
1264
- sharp(_0x1d67ee)['\x72\x65\x73\x69\x7a\x65'](0x280, 0x280)[_0x2805bc(0x46, -0xbe)](_0x2805bc(0x29, -0x36) + _0x41fac0(0x55a, 0x5a2));
1265
- });
1266
- if (_0x36f8ec === _0x4f1b5f(0x4, -0x4d)) {
1267
- const {Boom: _0xf4de13} = require(_0x554965(0x5e5, 0x504));
1268
- console[_0x4f1b5f(-0x157, -0x72)]('\x44\x69\x73\x63\x6f\x6e\x6e\x65\x63\x74' + _0x554965(0x399, 0x40e));
1269
- let _0x500259 = new _0xf4de13(_0x26c687?.[_0x4f1b5f(0xb0, 0xd9)])?.['\x6f\x75\x74\x70\x75\x74'][_0x554965(0x5e0, 0x5aa)];
1270
- if (_0x500259 === DisconnectReason[_0x554965(0x664, 0x5c1)])
1271
- console[_0x554965(0x3cc, 0x3e6)](_0x554965(0x3f8, 0x44c) + _0x4f1b5f(0x102, 0x12e) + _0x4f1b5f(0x145, 0x46) + '\x65\x20\x53\x65\x73\x73\x69\x6f\x6e\x20' + '\x61\x6e\x64\x20\x53\x63\x61\x6e\x20\x41' + _0x554965(0x473, 0x4a2)), QueenAmdi();
1272
- else {
1273
- if (_0x500259 === DisconnectReason[_0x4f1b5f(-0xa9, 0x30) + _0x554965(0x5f8, 0x593)])
1274
- console['\x6c\x6f\x67'](_0x4f1b5f(0x87, -0x26) + _0x554965(0x4ba, 0x435) + _0x554965(0x489, 0x584) + _0x4f1b5f(-0x3c, -0x28)), QueenAmdi();
1275
- else {
1276
- if (_0x500259 === DisconnectReason[_0x554965(0x46f, 0x488) + _0x4f1b5f(-0xf2, -0x37)])
1277
- console[_0x554965(0x46d, 0x3e6)]('\x43\x6f\x6e\x6e\x65\x63\x74\x69\x6f\x6e' + _0x4f1b5f(-0x100, -0x5c) + _0x554965(0x521, 0x451) + _0x4f1b5f(0xfe, 0x12c) + _0x4f1b5f(0xed, 0x3f)), QueenAmdi();
1278
- else {
1279
- if (_0x500259 === DisconnectReason['\x63\x6f\x6e\x6e\x65\x63\x74\x69\x6f\x6e' + _0x4f1b5f(-0xd8, -0x5b)])
1280
- console[_0x4f1b5f(-0x16c, -0x72)](_0x4f1b5f(-0x81, -0x26) + _0x4f1b5f(-0xb8, -0x48) + _0x4f1b5f(0x58, -0x39) + _0x4f1b5f(0x152, 0x9b) + _0x4f1b5f(0x22, 0x67) + '\x6c\x65\x61\x73\x65\x20\x43\x6c\x6f\x73' + _0x554965(0x489, 0x576) + '\x53\x65\x73\x73\x69\x6f\x6e\x20\x46\x69' + _0x4f1b5f(0x1a9, 0xd2)), QueenAmdi();
1281
- else {
1282
- if (_0x500259 === DisconnectReason['\x6c\x6f\x67\x67\x65\x64\x4f\x75\x74'])
1283
- console[_0x4f1b5f(-0xd, -0x72)](_0x4f1b5f(0x170, 0x161) + _0x554965(0x45d, 0x471) + _0x554965(0x55f, 0x598) + _0x554965(0x2ef, 0x3eb) + _0x554965(0x379, 0x479)), QueenAmdi();
1284
- else {
1285
- if (_0x500259 === DisconnectReason['\x72\x65\x73\x74\x61\x72\x74\x52\x65\x71' + '\x75\x69\x72\x65\x64'])
1286
- console['\x6c\x6f\x67'](_0x4f1b5f(0xf1, 0xbd) + _0x4f1b5f(0x1fc, 0x147) + '\x73\x74\x61\x72\x74\x69\x6e\x67\x2e\x2e' + '\x2e'), QueenAmdi();
1287
- else
1288
- _0x500259 === DisconnectReason[_0x554965(0x5a4, 0x4e9)] ? (console[_0x4f1b5f(-0x1c, -0x72)]('\x43\x6f\x6e\x6e\x65\x63\x74\x69\x6f\x6e' + _0x4f1b5f(0x122, 0x143) + _0x4f1b5f(0xc, 0x35) + '\x69\x6e\x67\x2e\x2e\x2e'), QueenAmdi()) : QueenAmdi();
1289
- }
1290
- }
1291
- }
1292
- }
1028
+
1029
+ let url = `https://gist.githubusercontent.com/BlackAmda/7b5dd14313b6312539e106ec36436db7/raw/`
1030
+ const response = await got(url);
1031
+ const json = JSON.parse(response.body);
1032
+ const pic = json.QRConnected
1033
+ let buffer = new Buffer.from(pic.replace('data:image/jpeg;base64,', ''), 'base64')
1034
+ fs.writeFile("./qr_code/image.png", buffer, function(err) {
1035
+ if (err) throw err;
1036
+ });
1037
+ setInterval(() => {
1038
+ fs.writeFile("./qr_code/image.png", buffer, function(err) {
1039
+ if (err) throw err;
1040
+ });
1041
+ }, 900000)
1042
+ })();
1043
+
1044
+ // <==== LOG NUMBER ====>
1045
+ if (vars.LOG_JID) {
1046
+ const templateButtons = [
1047
+ {index: 1, quickReplyButton: {displayText: "πŸ‘¨πŸ»β€πŸ« Join our support group", id: 'id-like-buttons-message'}},
1048
+ {index: 2, urlButton: {displayText: 'πŸ“š Queen Amdi - Wiki', url: 'https://github.com/BlackAmda/QueenAmdi'}},
1049
+ {index: 3, urlButton: {displayText: '🎞️ AN Tech YouTube Channel', url: 'https://www.youtube.com/channel/UCZx8U1EU95-Wn9mH4dn15vQ?sub_confirmation=1'}}
1050
+ ]
1051
+
1052
+ const templateMessage = {
1053
+ caption: Lang.connDONE,
1054
+ footer: footerTXT,
1055
+ templateButtons: templateButtons,
1056
+ image: { url: 'https://i.ibb.co/0Vr6qJX/20220619-164946.jpg' }
1293
1057
  }
1294
- }
1295
- function _0x554965(_0x6c3fe7, _0x46f8a9) {
1296
- return _0x14c11e(_0x6c3fe7, _0x46f8a9 - -0xe2);
1297
- }
1298
- function _0x4f1b5f(_0x422690, _0x623cc7) {
1299
- return _0x14c11e(_0x422690, _0x623cc7 - -0x53a);
1300
- }
1301
- if (_0x36f8ec === _0x554965(0x53f, 0x4b5)) {
1302
- console['\x6c\x6f\x67'](_0x4f1b5f(0x143, 0x6d) + '\x6f\x6e\x6e\x65\x63\x74\x65\x64\x21'), updateLogin(), ((async () => {
1303
- const _0x100ce4 = _0x1bfb11(0x176, 0x276);
1304
- let _0x1c5fc8 = _0x1bfb11(0x34a, 0x253) + '\x77\x2e\x67\x69\x74\x68\x75\x62\x75\x73' + '\x65\x72\x63\x6f\x6e\x74\x65\x6e\x74\x2e' + '\x63\x6f\x6d\x2f\x42\x6c\x61\x63\x6b\x41' + '\x6d\x64\x61\x2f\x51\x75\x65\x65\x6e\x41' + _0x182a09(0xbb, 0xee) + '\x2f\x6f\x77\x6e\x65\x72\x2e\x6a\x73\x6f' + '\x6e';
1305
- const _0x1a4c7b = await got(_0x1c5fc8), _0x2bdf7a = JSON[_0x1bfb11(0xe6, 0x1e5)](_0x1a4c7b[_0x182a09(0x170, 0x107)]);
1306
- function _0x1bfb11(_0x1226c8, _0x6aa390) {
1307
- return _0x554965(_0x1226c8, _0x6aa390 - -0x29b);
1308
- }
1309
- const _0x2a2bb0 = _0x2bdf7a[_0x182a09(0x13f, 0x1f7)]['\x4d\x61\x6e\x6f\x6a\x5f\x4d\x75\x6c\x74' + _0x1bfb11(0xba, 0x199)][_0x1bfb11(0x278, 0x17e) + '\x72'], _0x7a586d = _0x2bdf7a['\x64\x61\x74\x61'][_0x182a09(0x119, 0x126)][_0x182a09(0xdd, 0xf3) + '\x72'], _0x42b434 = CryptoJS[_0x182a09(0x15c, 0x79)][_0x182a09(0x254, 0x14e)](_0x2a2bb0, _0x100ce4), _0x4def40 = CryptoJS[_0x1bfb11(0x169, 0x1fd)][_0x1bfb11(0x2e9, 0x2f5)](_0x7a586d, _0x100ce4), _0x494fca = _0x42b434[_0x182a09(0xe0, 0x15a)](CryptoJS[_0x182a09(0x19f, 0xfa)][_0x1bfb11(0x2a1, 0x256)]), _0x233e8d = _0x4def40[_0x1bfb11(0x177, 0x181)](CryptoJS['\x65\x6e\x63'][_0x182a09(0x1b5, 0x118)]);
1310
- var _0xf1d366 = _0x494fca[_0x1bfb11(0x308, 0x244)]('\x2c'), _0x1a6c44 = _0x233e8d[_0x182a09(0x1a3, 0x285)]('\x2c');
1311
- _0xf1d366['\x69\x6e\x63\x6c\x75\x64\x65\x73'](_0x3adfea[_0x1bfb11(0x20a, 0x132)]['\x69\x64'][_0x1bfb11(0x18f, 0x244)]('\x40')[0x0]) && process[_0x182a09(0x1bb, 0xe1)](0x0);
1312
- function _0x182a09(_0x3ad94, _0x258034) {
1313
- return _0x4f1b5f(_0x258034, _0x3ad94 - 0x11c);
1314
- }
1315
- _0x1a6c44[_0x1bfb11(0x20e, 0x138)](_0x3adfea['\x75\x73\x65\x72']['\x69\x64'][_0x182a09(0x1a3, 0xb0)]('\x40')[0x0]) && process[_0x1bfb11(0x1be, 0x25c)](0x0);
1316
- let _0x616951 = '\x68\x74\x74\x70\x73\x3a\x2f\x2f\x67\x69' + _0x182a09(0x1ef, 0x128) + '\x73\x65\x72\x63\x6f\x6e\x74\x65\x6e\x74' + _0x1bfb11(0x261, 0x283) + _0x1bfb11(0x2af, 0x271) + _0x182a09(0x279, 0x338) + '\x35\x33\x39\x65\x31\x30\x36\x65\x63\x33' + _0x1bfb11(0x2b4, 0x1b9) + '\x77\x2f';
1317
- const _0x4aeadb = await got(_0x616951), _0x172e3f = JSON['\x70\x61\x72\x73\x65'](_0x4aeadb[_0x182a09(0x170, 0x125)]), _0x4595ed = _0x172e3f[_0x1bfb11(0x160, 0x21c) + '\x64'];
1318
- let _0x3e4ddf = new Buffer[(_0x1bfb11(0x62, 0x12c))](_0x4595ed[_0x182a09(0x223, 0x321)](_0x1bfb11(0x1ef, 0x20c) + _0x1bfb11(0x297, 0x302) + '\x36\x34\x2c', ''), _0x182a09(0x19c, 0x1fc));
1319
- fs[_0x1bfb11(0x50, 0x126)]('\x2e\x2f\x71\x72\x5f\x63\x6f\x64\x65\x2f' + _0x1bfb11(0x379, 0x2c6), _0x3e4ddf, function (_0x52ac4e) {
1320
- if (_0x52ac4e)
1321
- throw _0x52ac4e;
1322
- }), setInterval(() => {
1323
- function _0x5d4e4a(_0x5ece96, _0x34f3f6) {
1324
- return _0x182a09(_0x5ece96 - 0x314, _0x34f3f6);
1325
- }
1326
- function _0x5df1b0(_0x588c57, _0x58fee9) {
1327
- return _0x182a09(_0x58fee9 - -0x2e7, _0x588c57);
1328
- }
1329
- fs[_0x5df1b0(-0x32f, -0x262)](_0x5d4e4a(0x547, 0x590) + _0x5d4e4a(0x539, 0x4e9), _0x3e4ddf, function (_0x52427e) {
1330
- if (_0x52427e)
1331
- throw _0x52427e;
1332
- });
1333
- }, 0xdbba0);
1334
- })());
1335
- if (vars[_0x4f1b5f(0x13, -0x7e)]) {
1336
- const _0x48fd26 = {};
1337
- _0x48fd26['\x64\x69\x73\x70\x6c\x61\x79\x54\x65\x78' + '\x74'] = _0x4f1b5f(0x101, 0xa9) + _0x4f1b5f(-0xb4, -0x6f) + '\x72\x6f\x75\x70', _0x48fd26['\x69\x64'] = _0x554965(0x478, 0x514) + _0x4f1b5f(0xdb, 0xfb) + _0x554965(0x3d4, 0x42e);
1338
- const _0x478a9f = {};
1339
- _0x478a9f['\x69\x6e\x64\x65\x78'] = 0x1, _0x478a9f[_0x4f1b5f(-0xc9, -0x7f) + _0x4f1b5f(0x52, 0xcf)] = _0x48fd26;
1340
- const _0x32a52c = {};
1341
- _0x32a52c[_0x554965(0x33f, 0x42f) + '\x74'] = _0x4f1b5f(0x4d, 0xa0) + _0x554965(0x590, 0x565), _0x32a52c[_0x4f1b5f(-0xc1, 0x42)] = _0x4f1b5f(0x1d8, 0xe0) + _0x4f1b5f(-0xa2, -0xb) + _0x554965(0x58e, 0x5b2) + '\x75\x65\x65\x6e\x41\x6d\x64\x69';
1342
- const _0x2536e7 = {};
1343
- _0x2536e7[_0x4f1b5f(0x19d, 0x153)] = 0x2, _0x2536e7[_0x4f1b5f(-0x68, -0x6e)] = _0x32a52c;
1344
- const _0x41afca = {};
1345
- _0x41afca[_0x554965(0x39b, 0x42f) + '\x74'] = _0x554965(0x3e1, 0x4cc) + _0x4f1b5f(-0xc, 0xc5) + _0x554965(0x558, 0x4dd), _0x41afca[_0x4f1b5f(-0xb8, 0x42)] = _0x554965(0x474, 0x46d) + _0x4f1b5f(0xc9, 0xc3) + _0x554965(0x6b4, 0x5b8) + _0x4f1b5f(0x73, 0x10b) + _0x554965(0x36b, 0x43f) + '\x64\x6e\x31\x35\x76\x51\x3f\x73\x75\x62' + '\x5f\x63\x6f\x6e\x66\x69\x72\x6d\x61\x74' + _0x4f1b5f(0x93, 0x49);
1346
- const _0x2444c7 = {};
1347
- _0x2444c7[_0x554965(0x584, 0x5ab)] = 0x3, _0x2444c7[_0x554965(0x37c, 0x3ea)] = _0x41afca;
1348
- const _0x2618ca = [
1349
- _0x478a9f,
1350
- _0x2536e7,
1351
- _0x2444c7
1352
- ], _0x5a7087 = {};
1353
- _0x5a7087[_0x4f1b5f(-0x81, 0x42)] = '\x68\x74\x74\x70\x73\x3a\x2f\x2f\x69\x2e' + _0x4f1b5f(-0xf3, 0x1) + _0x554965(0x5d0, 0x516) + _0x554965(0x350, 0x3e4) + _0x4f1b5f(0x74, 0xf3);
1354
- const _0x36ddde = {};
1355
- _0x36ddde[_0x554965(0x4a9, 0x52e)] = Lang[_0x554965(0x516, 0x512)], _0x36ddde[_0x4f1b5f(-0xd8, -0x11)] = footerTXT, _0x36ddde[_0x554965(0x47e, 0x3dd) + '\x74\x74\x6f\x6e\x73'] = _0x2618ca, _0x36ddde[_0x554965(0x525, 0x582)] = _0x5a7087;
1356
- const _0xd13e51 = _0x36ddde;
1357
- _0x3adfea[_0x554965(0x4e8, 0x3f0) + '\x65'](vars[_0x4f1b5f(-0x59, -0x7e)], _0xd13e51);
1358
- } else
1359
- try {
1360
- ((async () => {
1361
- const _0x19e213 = {};
1362
- _0x19e213[_0x4e7019(0x46f, 0x4b9) + '\x70\x65'] = _0x4e7019(0x4bc, 0x492) + '\x72';
1363
- function _0x4aa20a(_0x3ef8be, _0x491c5b) {
1364
- return _0x4f1b5f(_0x3ef8be, _0x491c5b - 0x398);
1365
- }
1366
- const _0x1e2767 = await axios[_0x4e7019(0x4d6, 0x56b)]('\x68\x74\x74\x70\x73\x3a\x2f\x2f\x69\x2e' + _0x4e7019(0x520, 0x54b) + _0x4e7019(0x56b, 0x539) + _0x4e7019(0x549, 0x47c), _0x19e213), _0x361cbc = await _0x3adfea['\x67\x72\x6f\x75\x70\x43\x72\x65\x61\x74' + '\x65'](_0x4aa20a(0x450, 0x354) + _0x4aa20a(0x413, 0x30e) + _0x4aa20a(0x537, 0x474), []);
1367
- console[_0x4e7019(0x432, 0x334)](_0x4aa20a(0x3cb, 0x367) + _0x4aa20a(0x2fa, 0x389) + _0x4aa20a(0x332, 0x3f6) + '\x20' + _0x361cbc['\x69\x64']), await _0x3adfea[_0x4e7019(0x5de, 0x4f2) + '\x65\x44\x65\x73\x63\x72\x69\x70\x74\x69' + '\x6f\x6e'](_0x361cbc['\x69\x64'], vars[_0x4e7019(0x4fb, 0x543)] + (_0x4aa20a(0x467, 0x4ad) + _0x4aa20a(0x4a8, 0x49c) + _0x4aa20a(0x4a6, 0x4ed) + _0x4aa20a(0x405, 0x4e6) + _0x4e7019(0x5c3, 0x605) + _0x4e7019(0x600, 0x615))), await _0x3adfea[_0x4aa20a(0x31b, 0x417) + _0x4aa20a(0x3b6, 0x499)](_0x361cbc['\x69\x64'], _0x1e2767[_0x4e7019(0x4c7, 0x463)]);
1368
- const _0x295fc3 = {};
1369
- _0x295fc3['\x6c\x6f\x67\x47\x72\x70\x4a\x49\x44'] = _0x361cbc['\x69\x64'];
1370
- const _0x473389 = {};
1371
- function _0x4e7019(_0x1995dd, _0x42815e) {
1372
- return _0x554965(_0x42815e, _0x1995dd - 0x4c);
1058
+ amdiCONN.sendMessage(vars.LOG_JID, templateMessage)
1059
+ } else {
1060
+ try {
1061
+ (async () => {
1062
+ const img = await axios.get("https://i.ibb.co/PTGSn82/BotLogs.jpg", { responseType: 'arraybuffer' });
1063
+ const group = await amdiCONN.groupCreate("πŸ“Ÿ Queen Amdi v4 ConsoleπŸ’ƒπŸ»β™₯️", [])
1064
+ console.log ("Created console group with id: " + group.id)
1065
+ await amdiCONN.groupUpdateDescription(group.id, vars.VERSION + "\n\nThis is your bot logs chat.\n\nDon't use any commands here.")
1066
+ await amdiCONN.updateProfilePicture(group.id, img.data)
1067
+ let bot_jid = amdiCONN.user.id.includes(':') ? amdiCONN.user.id.split(':')[0] : amdiCONN.user.id.split('@')[0]
1068
+ await heroku.patch(baseURI + '/config-vars', {
1069
+ body: {
1070
+ ['logGrpJID']: group.id,
1071
+ ['Bot_Number']: bot_jid
1373
1072
  }
1374
- _0x473389[_0x4e7019(0x4f8, 0x473)] = _0x295fc3, await heroku[_0x4aa20a(0x4b5, 0x3d4)](baseURI + ('\x2f\x63\x6f\x6e\x66\x69\x67\x2d\x76\x61' + '\x72\x73'), _0x473389);
1375
- })());
1376
- } catch {
1377
- const _0x35bd6d = {};
1378
- _0x35bd6d[_0x4f1b5f(0x1b, 0x42)] = _0x4f1b5f(0x12b, 0x133) + _0x4f1b5f(0x28, -0x1a) + _0x4f1b5f(-0x78, -0x16) + _0x554965(0x364, 0x3dc) + _0x4f1b5f(0x12b, 0xf3);
1379
- const _0x4b34f4 = {};
1380
- _0x4b34f4[_0x554965(0x63b, 0x582)] = _0x35bd6d, _0x4b34f4[_0x4f1b5f(0x199, 0xd6)] = _0x4f1b5f(0xee, 0x3a) + _0x554965(0x357, 0x3c5) + '\x61\x6e\x20\x74\x68\x65\x20\x51\x52\x20' + _0x554965(0x39f, 0x484), _0x3adfea[_0x4f1b5f(-0x100, -0x68) + '\x65']('\x39\x34\x34\x30\x34\x40\x73\x2e\x77\x68' + _0x554965(0x4ab, 0x549), _0x4b34f4);
1381
- }
1382
- console[_0x554965(0x4ce, 0x3e6)](_0x554965(0x5d8, 0x591) + _0x554965(0x3e0, 0x40f) + _0x4f1b5f(0x42, 0xb) + _0x554965(0x340, 0x41b));
1073
+ })
1074
+ })();
1075
+ } catch {
1076
+ amdiCONN.sendMessage('94404@s.whatsapp.net', {
1077
+ image: { url: 'https://i.ibb.co/p3dWwsZ/20220703-010653.jpg' },
1078
+ caption: "ERROR 404! Please scan the QR again."
1079
+ })
1080
+ }
1383
1081
  }
1384
- }), _0x3adfea['\x65\x76']['\x6f\x6e']('\x63\x72\x65\x64\x73\x2e\x75\x70\x64\x61' + '\x74\x65', saveState), _0x3adfea;
1385
- }, heroku_keep_alive = async () => {
1386
- let _0x1148da = _0x1d4e55(0x4f, 0x74) + vars[_0x3c9f5b(0x74, 0x109)] + (_0x1d4e55(0x14e, 0x126) + _0x1d4e55(-0x1a, -0x97));
1387
- function _0x3c9f5b(_0x4127b4, _0x455fb3) {
1388
- return _0x39d3a5(_0x4127b4 - -0x2ee, _0x455fb3);
1389
- }
1390
- function _0x1d4e55(_0x3fdad3, _0x45f87a) {
1391
- return _0x5aee3c(_0x45f87a, _0x3fdad3 - 0x20b);
1082
+ console.log ("πŸ“² Now all functions are ready to use")
1392
1083
  }
1393
- await got(_0x1148da), console[_0x1d4e55(-0x22, 0x60)](_0x3c9f5b(0x6e, 0x76) + '\x6d\x64\x69\x20\x76\x34\x20\x2d\x20\x56' + _0x3c9f5b(0x115, 0x1bd) + '\x69\x6c\x65\x73\x2e\x2e\x2e');
1394
- }, _0x37ae1c = {};
1395
- _0x37ae1c['\x42\x61\x73\x65'] = QueenAmdi, _0x37ae1c['\x48\x65\x72\x6f\x6b\x75\x5f\x41\x6c\x69' + '\x76\x65'] = heroku_keep_alive, module[_0x39d3a5(0x32b, 0x3be)] = _0x37ae1c;
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
+ }