Spaces:
Paused
Paused
πππ₯π₯πππ π π¨ππππ₯π β‘
commited on
Update tools-pair.js
Browse files- plugins/tools-pair.js +58 -27
plugins/tools-pair.js
CHANGED
|
@@ -1,42 +1,73 @@
|
|
| 1 |
-
|
| 2 |
const {
|
| 3 |
cmd,
|
| 4 |
commands
|
| 5 |
-
} = require(
|
| 6 |
const {
|
| 7 |
-
getBuffer,
|
| 8 |
-
getGroupAdmins,
|
| 9 |
-
getRandom,
|
| 10 |
-
h2k,
|
| 11 |
-
isUrl,
|
| 12 |
-
Json,
|
| 13 |
-
sleep,
|
| 14 |
fetchJson
|
| 15 |
-
} = require(
|
| 16 |
cmd({
|
| 17 |
'pattern': 'pair',
|
| 18 |
-
'alias': ["
|
| 19 |
-
'react': '
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
'desc': "pair",
|
| 21 |
'category': 'download',
|
| 22 |
-
'use': ".pair +
|
| 23 |
'filename': __filename
|
| 24 |
-
}, async (
|
| 25 |
-
from:
|
| 26 |
-
prefix:
|
| 27 |
-
quoted:
|
| 28 |
-
q:
|
| 29 |
-
reply:
|
|
|
|
| 30 |
}) => {
|
| 31 |
try {
|
| 32 |
-
if (
|
| 33 |
-
return await
|
|
|
|
|
|
|
|
|
|
| 34 |
}
|
| 35 |
-
|
| 36 |
-
const
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
|
|
|
|
|
|
| 41 |
}
|
| 42 |
});
|
|
|
|
|
|
|
| 1 |
const {
|
| 2 |
cmd,
|
| 3 |
commands
|
| 4 |
+
} = require('../command');
|
| 5 |
const {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
fetchJson
|
| 7 |
+
} = require('../lib/functions');
|
| 8 |
cmd({
|
| 9 |
'pattern': 'pair',
|
| 10 |
+
'alias': ["getpair", "clone"],
|
| 11 |
+
'react': 'β
',
|
| 12 |
+
'desc': "pair",
|
| 13 |
+
'category': "download",
|
| 14 |
+
'use': ".pair +18062212660",
|
| 15 |
+
'filename': __filename
|
| 16 |
+
}, async (_0x53ef81, _0x3fcf12, _0x1cac84, {
|
| 17 |
+
from: _0x2eaa93,
|
| 18 |
+
prefix: _0x329d70,
|
| 19 |
+
quoted: _0x297544,
|
| 20 |
+
q: _0x283a2f,
|
| 21 |
+
reply: _0x20e232,
|
| 22 |
+
isGroup: _0x17a4ed
|
| 23 |
+
}) => {
|
| 24 |
+
try {
|
| 25 |
+
if (_0x17a4ed) {
|
| 26 |
+
return await _0x20e232("β This command is not allowed in group chats. Please use it in my inbox.");
|
| 27 |
+
}
|
| 28 |
+
if (!_0x283a2f) {
|
| 29 |
+
return await _0x20e232("*Example - :* .pair +263719647XXX");
|
| 30 |
+
}
|
| 31 |
+
await _0x20e232("*Getting pairing code...*");
|
| 32 |
+
const _0x4504a8 = await fetchJson("https://subxero-session-id.onrender.com/code?number=" + _0x283a2f);
|
| 33 |
+
const _0x4bc4f7 = _0x4504a8.code;
|
| 34 |
+
await _0x1cac84.reply('' + _0x4bc4f7);
|
| 35 |
+
await _0x1cac84.reply("> *Use the above pairing code to get your session id for SUBZERO MD.*");
|
| 36 |
+
} catch (_0x978c45) {
|
| 37 |
+
console.error(_0x978c45);
|
| 38 |
+
_0x20e232("An error occurred: " + _0x978c45.message);
|
| 39 |
+
}
|
| 40 |
+
});
|
| 41 |
+
cmd({
|
| 42 |
+
'pattern': 'pair2',
|
| 43 |
+
'alias': ['getpair2', "clone2"],
|
| 44 |
+
'react': 'β¨',
|
| 45 |
'desc': "pair",
|
| 46 |
'category': 'download',
|
| 47 |
+
'use': ".pair +263718XXX",
|
| 48 |
'filename': __filename
|
| 49 |
+
}, async (_0x44077a, _0x16a498, _0x33b7ac, {
|
| 50 |
+
from: _0x2edf8e,
|
| 51 |
+
prefix: _0x5cec58,
|
| 52 |
+
quoted: _0x42fdaa,
|
| 53 |
+
q: _0x648b91,
|
| 54 |
+
reply: _0x205d46,
|
| 55 |
+
isGroup: _0x5953bb
|
| 56 |
}) => {
|
| 57 |
try {
|
| 58 |
+
if (_0x5953bb) {
|
| 59 |
+
return await _0x205d46("β This command is not allowed in group chats. Please use it in my inbox.");
|
| 60 |
+
}
|
| 61 |
+
if (!_0x648b91) {
|
| 62 |
+
return await _0x205d46("*Example - :* .pair2 +263719647XXX");
|
| 63 |
}
|
| 64 |
+
await _0x205d46("*Getting pairing code...*");
|
| 65 |
+
const _0x354115 = await fetchJson('https://subxero-session-id.onrender.com/code?number=' + _0x648b91);
|
| 66 |
+
const _0x35dcc0 = _0x354115.code;
|
| 67 |
+
await _0x33b7ac.reply('' + _0x35dcc0);
|
| 68 |
+
await _0x33b7ac.reply("> *Use the above pairing code to get your session id for SUBZERO-MD.*");
|
| 69 |
+
} catch (_0x4da84d) {
|
| 70 |
+
console.error(_0x4da84d);
|
| 71 |
+
_0x205d46("An error occurred: " + _0x4da84d.message);
|
| 72 |
}
|
| 73 |
});
|