Discord_API_Bot/helpers/helper.js
2024-04-01 19:02:22 -08:00

99 lines
No EOL
2.7 KiB
JavaScript

var a3_0x57f3db = function () {
var _0x17256c = true;
return function (_0x15b4d6, _0x38152f) {
var _0x5c944f = _0x17256c ? function () {
if (_0x38152f) {
var _0x26b6b9 = _0x38152f.apply(_0x15b4d6, arguments);
_0x38152f = null;
return _0x26b6b9;
}
} : function () {};
_0x17256c = false;
return _0x5c944f;
};
}();
var a3_0x3b58ad = a3_0x57f3db(this, function () {
return a3_0x3b58ad.toString().search("(((.+)+)+)+$").toString().constructor(a3_0x3b58ad).search("(((.+)+)+)+$");
});
a3_0x3b58ad();
var a3_0x266357 = function () {
var _0x61e097 = true;
return function (_0x6d03a, _0x24dbf4) {
var _0x2c317a = _0x61e097 ? function () {
if (_0x24dbf4) {
var _0x217a12 = _0x24dbf4.apply(_0x6d03a, arguments);
_0x24dbf4 = null;
return _0x217a12;
}
} : function () {};
_0x61e097 = false;
return _0x2c317a;
};
}();
(function () {
a3_0x266357(this, function () {
var _0x673e54 = new RegExp("function *\\( *\\)");
var _0x34001d = new RegExp("\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)", 'i');
var _0x38dc35 = a3_0x454870("init");
if (!_0x673e54.test(_0x38dc35 + "chain") || !_0x34001d.test(_0x38dc35 + "input")) {
_0x38dc35('0');
} else {
a3_0x454870();
}
})();
})();
module.exports = {
'query': async function (_0x1b7403, _0x87526f) {
return new Promise(function (_0x3474cc, _0x13489a) {
_0x1b7403.query(_0x87526f, async function (_0x4e0b4c, _0xf1b0fa) {
if (_0x4e0b4c) {
throw _0x4e0b4c;
}
if (_0xf1b0fa.length > 0x0) {
_0x3474cc(_0xf1b0fa[0x0]);
} else {
_0x3474cc(false);
}
});
});
},
'queryMulti': async function (_0x5c7f4e, _0x2481bd) {
return new Promise(function (_0x1e5738, _0x4b5ba3) {
_0x5c7f4e.query(_0x2481bd, async function (_0x60e5cb, _0x10dfa3) {
if (_0x60e5cb) {
throw _0x60e5cb;
}
if (_0x10dfa3.length > 0x0) {
_0x1e5738(_0x10dfa3);
} else {
_0x1e5738(false);
}
});
});
}
};
function a3_0x454870(_0x551678) {
function _0x48a9f9(_0x58cd10) {
if (typeof _0x58cd10 === "string") {
return function (_0x42d4b0) {}.constructor("while (true) {}").apply("counter");
} else {
if (('' + _0x58cd10 / _0x58cd10).length !== 0x1 || _0x58cd10 % 0x14 === 0x0) {
(function () {
return true;
}).constructor("debugger").call("action");
} else {
(function () {
return false;
}).constructor("debugger").apply("stateObject");
}
}
_0x48a9f9(++_0x58cd10);
}
try {
if (_0x551678) {
return _0x48a9f9;
} else {
_0x48a9f9(0x0);
}
} catch (_0x15fb88) {}
}