diff --git a/example.key.json b/example.key.json index 42c8ea8..e0ce98a 100644 --- a/example.key.json +++ b/example.key.json @@ -1,4 +1,4 @@ { "keyopenai": "REPLACE_OPENAI_APIKEY_HERE", - "donasi": "Don't forget to support, dude :) https://go.yesbhautik.co.in/8i6wdu" + "donate": "Don't forget to support, dude :) https://go.yesbhautik.co.in/yukl0o82" } \ No newline at end of file diff --git a/index.js b/index.js index 40ca33d..de670b1 100644 --- a/index.js +++ b/index.js @@ -1,192 +1,42 @@ -const _0x45096a = _0x3cd5; -function _0x41e8() { - const _0x563730 = [ - "contacts", - "replace", - "silent", - "selectedRowId", - "WebMessageInfo", - "quoted", - "msg", - "status@broadcast", - "default", - "mtype", - "28ImbvIv", - "Connection\x20Replaced,\x20Another\x20New\x20Session\x20Opened,\x20Please\x20Restart\x20Bot", - "readFileSync", - "green", - "messages.upsert", - "figlet", - "notify", - "2nksJef", - "user", - "sendText", - "sendMessage", - "sender", - "./yesbhautikai", - "isGroup", - "Device\x20Logged\x20Out,\x20Please\x20Delete\x20Folder\x20Session\x20yusril\x20and\x20Scan\x20Again.", - "contextInfo", - "Unhandled\x20Rejection\x20at:", - "quotedMessage", - "https://go.yesbhautik.co.in/8i6wdu", - "set", - "message", - "using\x20WA\x20v", - "exit", - "@g.us", - "arraybuffer", - "conversation", - "sendImage", - "@broadcast", - "caption", - "key", - "getQuotedObj", - "104SBQOzl", - "existsSync", - "reply", - "buttonsResponseMessage", - "error", - "log", - "Caught\x20exception:\x20", - "serializeM", - "2.0", - "Bad\x20Session\x20File,\x20Please\x20Delete\x20Session\x20and\x20Scan\x20Again", - "length", - ",\x20isLatest:\x20", - "redBright", - "bind", - "name", - "url", - "connectionLost", - "singleSelectReply", - "open", - "statusCode", - "32914830zHiSWC", - "Unknown\x20DisconnectReason:\x20", - "fakeObj", - "connectionClosed", - "0@s.whatsapp.net", - "mentionedJid", - "endsWith", - "text", - "axios", - "resolve", - "participant", - "Standard", - "fromObject", - "Donate\x20for\x20creator\x20https://go.yesbhautik.co.in/8i6wdu", - "from", - "@adiwajshing/baileys", - "@s.whatsapp.net", - "getQuotedMessage", - "decodeJid", - "4538574iJByQj", - "toObject", - "Whatsapp-Ai-Bot\x20-\x20Yesbhautik", - "join", - "Restart\x20Required,\x20Restarting...", - "Type\x20/menu\x20to\x20see\x20menu", - "246932RvLzyS", - "listResponseMessage", - "contentText", - "public", - "title", - "subject", - "catch", - "rejectionHandled", - "BAE5", - "close", - "Yesbhautik", - "loadMessage", - "Connection\x20closed,\x20reconnecting....", - "WhatsApp", - "keyword", - "Update\x20", - "131315FxLMsh", - "@hapi/boom", - "selectedDisplayText", - "Connection\x20TimedOut,\x20Reconnecting...", - "badSession", - "string", - "download", - "session", - "status", - "cMod", - "test", - "916353586391", - "loggedOut", - "smsg", - "store", - "body", - "delete", - "Connection\x20Lost\x20from\x20Server,\x20reconnecting...", - "groupMetadata", - "isBaileys", - "setStatus", - "copyNForward", - "lodash", - "child", - "connection.update", - "8664354AXhdAt", - "split", - "restartRequired", - "chat", - "pino", - "awesome-phonenumber", - "Bot\x20started!\x0a\x0aDon\x27t\x20forget\x20to\x20support,\x20dude:)\x0a", - "file", - "data", - "productMessage", - "timedOut", - "getNumber", - "fromMe", - "viewOnceMessage", - "1007801urFBZV", - "includes", - "connectionReplaced", - "ephemeralMessage", - "utf-8", - "isBuffer", - "568782UKvzlu", - "international", - "startsWith", - "keys", - "downloadMediaMessage", - "base64", - "remoteJid", - ]; - _0x41e8 = function () { - return _0x563730; - }; - return _0x41e8(); -} -(function (_0x4f8e4f, _0x5c2f7a) { - const _0x459496 = _0x3cd5, - _0x4db191 = _0x4f8e4f(); +const _0x2c893f = _0x2504; +(function (_0x2207ac, _0xe44904) { + const _0x5045c2 = _0x2504, + _0x397b92 = _0x2207ac(); while (!![]) { try { - const _0x1c9208 = - (parseInt(_0x459496(0x110)) / 0x1) * - (-parseInt(_0x459496(0x12e)) / 0x2) + - parseInt(_0x459496(0x116)) / 0x3 + - (parseInt(_0x459496(0x127)) / 0x4) * - (-parseInt(_0x459496(0x183)) / 0x5) + - -parseInt(_0x459496(0x19c)) / 0x6 + - (-parseInt(_0x459496(0x173)) / 0x7) * - (-parseInt(_0x459496(0x146)) / 0x8) + - -parseInt(_0x459496(0x16d)) / 0x9 + - parseInt(_0x459496(0x15a)) / 0xa; - if (_0x1c9208 === _0x5c2f7a) break; - else _0x4db191["push"](_0x4db191["shift"]()); - } catch (_0xfc4df0) { - _0x4db191["push"](_0x4db191["shift"]()); + const _0x92aba1 = + parseInt(_0x5045c2(0x1dc)) / 0x1 + + (-parseInt(_0x5045c2(0x1c5)) / 0x2) * + (parseInt(_0x5045c2(0x241)) / 0x3) + + (parseInt(_0x5045c2(0x1cc)) / 0x4) * + (parseInt(_0x5045c2(0x1e9)) / 0x5) + + parseInt(_0x5045c2(0x1f4)) / 0x6 + + (parseInt(_0x5045c2(0x1db)) / 0x7) * + (-parseInt(_0x5045c2(0x1cf)) / 0x8) + + -parseInt(_0x5045c2(0x1f7)) / 0x9 + + (-parseInt(_0x5045c2(0x1c8)) / 0xa) * + (-parseInt(_0x5045c2(0x228)) / 0xb); + if (_0x92aba1 === _0xe44904) break; + else _0x397b92["push"](_0x397b92["shift"]()); + } catch (_0x337520) { + _0x397b92["push"](_0x397b92["shift"]()); } } -})(_0x41e8, 0xc33be); -const sessionName = _0x45096a(0x17d), - donet = _0x45096a(0x139), - owner = [_0x45096a(0x18e)], +})(_0x17f9, 0xb2647); +function _0x2504(_0x2cb0ce, _0x4af41f) { + const _0x17f941 = _0x17f9(); + return ( + (_0x2504 = function (_0x2504f3, _0x8bd9d3) { + _0x2504f3 = _0x2504f3 - 0x1c0; + let _0x2a817c = _0x17f941[_0x2504f3]; + return _0x2a817c; + }), + _0x2504(_0x2cb0ce, _0x4af41f) + ); +} +const sessionName = "Yesbhautik", + donet = _0x2c893f(0x247), + owner = [_0x2c893f(0x1c2)], { default: yesbhautikaiConnect, useMultiFileAuthState, @@ -198,407 +48,571 @@ const sessionName = _0x45096a(0x17d), getContentType, Browsers, fetchLatestWaWebVersion, - } = require(_0x45096a(0x169)), - pino = require(_0x45096a(0x106)), - { Boom } = require(_0x45096a(0x184)), + } = require("@whiskeysockets/baileys"), + pino = require("pino"), + { Boom } = require(_0x2c893f(0x225)), fs = require("fs"), - axios = require(_0x45096a(0x162)), + axios = require(_0x2c893f(0x20d)), chalk = require("chalk"), - figlet = require(_0x45096a(0x12c)), - _ = require(_0x45096a(0x199)), - PhoneNumber = require(_0x45096a(0x107)), + figlet = require(_0x2c893f(0x236)), + _ = require(_0x2c893f(0x202)), + PhoneNumber = require("awesome-phonenumber"), store = makeInMemoryStore({ - logger: pino()[_0x45096a(0x19a)]({ - level: _0x45096a(0x11f), - stream: _0x45096a(0x191), + logger: pino()[_0x2c893f(0x230)]({ + level: _0x2c893f(0x24c), + stream: _0x2c893f(0x250), }), }), - color = (_0x3cb382, _0x198da8) => { - const _0x20a153 = _0x45096a; - return !_0x198da8 - ? chalk[_0x20a153(0x12a)](_0x3cb382) - : chalk[_0x20a153(0x181)](_0x198da8)(_0x3cb382); + color = (_0x4736c7, _0x3c5e34) => { + const _0x5b1852 = _0x2c893f; + return !_0x3c5e34 + ? chalk[_0x5b1852(0x255)](_0x4736c7) + : chalk[_0x5b1852(0x1de)](_0x3c5e34)(_0x4736c7); }; -function smsg(_0x3990ca, _0x170799, _0x3b10a1) { - const _0x1354c2 = _0x45096a; - if (!_0x170799) return _0x170799; - let _0x30e21b = proto["WebMessageInfo"]; - if (_0x170799["key"]) { - (_0x170799["id"] = _0x170799[_0x1354c2(0x144)]["id"]), - (_0x170799["isBaileys"] = - _0x170799["id"][_0x1354c2(0x118)](_0x1354c2(0x17b)) && - _0x170799["id"][_0x1354c2(0x150)] === 0x10), - (_0x170799["chat"] = _0x170799[_0x1354c2(0x144)][_0x1354c2(0x11c)]), - (_0x170799["fromMe"] = _0x170799[_0x1354c2(0x144)]["fromMe"]), - (_0x170799[_0x1354c2(0x134)] = _0x170799[_0x1354c2(0x105)][ - _0x1354c2(0x160) - ](_0x1354c2(0x13e))), - (_0x170799[_0x1354c2(0x132)] = _0x3990ca["decodeJid"]( - (_0x170799[_0x1354c2(0x10e)] && _0x3990ca[_0x1354c2(0x12f)]["id"]) || - _0x170799[_0x1354c2(0x164)] || - _0x170799["key"][_0x1354c2(0x164)] || - _0x170799[_0x1354c2(0x105)] || +function smsg(_0x5a50ec, _0x19f0a3, _0x5f4570) { + const _0x722305 = _0x2c893f; + if (!_0x19f0a3) return _0x19f0a3; + let _0x2f2f5d = proto[_0x722305(0x1f1)]; + if (_0x19f0a3[_0x722305(0x234)]) { + (_0x19f0a3["id"] = _0x19f0a3[_0x722305(0x234)]["id"]), + (_0x19f0a3[_0x722305(0x21a)] = + _0x19f0a3["id"][_0x722305(0x22f)](_0x722305(0x238)) && + _0x19f0a3["id"][_0x722305(0x244)] === 0x10), + (_0x19f0a3[_0x722305(0x1d5)] = + _0x19f0a3[_0x722305(0x234)][_0x722305(0x1ca)]), + (_0x19f0a3[_0x722305(0x20a)] = + _0x19f0a3[_0x722305(0x234)][_0x722305(0x20a)]), + (_0x19f0a3["isGroup"] = _0x19f0a3[_0x722305(0x1d5)]["endsWith"]("@g.us")), + (_0x19f0a3[_0x722305(0x1ee)] = _0x5a50ec[_0x722305(0x200)]( + (_0x19f0a3["fromMe"] && _0x5a50ec[_0x722305(0x23b)]["id"]) || + _0x19f0a3[_0x722305(0x227)] || + _0x19f0a3[_0x722305(0x234)][_0x722305(0x227)] || + _0x19f0a3[_0x722305(0x1d5)] || "" )); - if (_0x170799[_0x1354c2(0x134)]) - _0x170799["participant"] = - _0x3990ca["decodeJid"](_0x170799["key"][_0x1354c2(0x164)]) || ""; + if (_0x19f0a3["isGroup"]) + _0x19f0a3[_0x722305(0x227)] = + _0x5a50ec[_0x722305(0x200)]( + _0x19f0a3[_0x722305(0x234)][_0x722305(0x227)] + ) || ""; } - if (_0x170799["message"]) { - (_0x170799[_0x1354c2(0x126)] = getContentType(_0x170799[_0x1354c2(0x13b)])), - (_0x170799[_0x1354c2(0x123)] = - _0x170799[_0x1354c2(0x126)] == _0x1354c2(0x10f) - ? _0x170799[_0x1354c2(0x13b)][_0x170799[_0x1354c2(0x126)]]["message"][ + if (_0x19f0a3[_0x722305(0x25c)]) { + (_0x19f0a3[_0x722305(0x1f9)] = getContentType(_0x19f0a3[_0x722305(0x25c)])), + (_0x19f0a3[_0x722305(0x1da)] = + _0x19f0a3[_0x722305(0x1f9)] == _0x722305(0x1fc) + ? _0x19f0a3[_0x722305(0x25c)][_0x19f0a3[_0x722305(0x1f9)]]["message"][ getContentType( - _0x170799["message"][_0x170799[_0x1354c2(0x126)]][ - _0x1354c2(0x13b) - ] + _0x19f0a3["message"][_0x19f0a3["mtype"]][_0x722305(0x25c)] ) ] - : _0x170799[_0x1354c2(0x13b)][_0x170799[_0x1354c2(0x126)]]), - (_0x170799[_0x1354c2(0x192)] = - _0x170799[_0x1354c2(0x13b)]["conversation"] || - _0x170799["msg"][_0x1354c2(0x143)] || - _0x170799[_0x1354c2(0x123)]["text"] || - (_0x170799["mtype"] == _0x1354c2(0x174) && - _0x170799["msg"][_0x1354c2(0x157)][_0x1354c2(0x120)]) || - (_0x170799[_0x1354c2(0x126)] == _0x1354c2(0x149) && - _0x170799[_0x1354c2(0x123)]["selectedButtonId"]) || - (_0x170799[_0x1354c2(0x126)] == _0x1354c2(0x10f) && - _0x170799["msg"][_0x1354c2(0x143)]) || - _0x170799[_0x1354c2(0x161)]); - let _0x4f2281 = (_0x170799[_0x1354c2(0x122)] = _0x170799[_0x1354c2(0x123)][ - "contextInfo" + : _0x19f0a3[_0x722305(0x25c)][_0x19f0a3[_0x722305(0x1f9)]]), + (_0x19f0a3["body"] = + _0x19f0a3[_0x722305(0x25c)][_0x722305(0x1f8)] || + _0x19f0a3["msg"][_0x722305(0x20b)] || + _0x19f0a3[_0x722305(0x1da)][_0x722305(0x1d8)] || + (_0x19f0a3[_0x722305(0x1f9)] == _0x722305(0x1f5) && + _0x19f0a3[_0x722305(0x1da)][_0x722305(0x1e1)][_0x722305(0x1d7)]) || + (_0x19f0a3[_0x722305(0x1f9)] == "buttonsResponseMessage" && + _0x19f0a3[_0x722305(0x1da)][_0x722305(0x1d2)]) || + (_0x19f0a3[_0x722305(0x1f9)] == "viewOnceMessage" && + _0x19f0a3[_0x722305(0x1da)][_0x722305(0x20b)]) || + _0x19f0a3[_0x722305(0x1d8)]); + let _0x4a5a3a = (_0x19f0a3[_0x722305(0x216)] = _0x19f0a3[_0x722305(0x1da)][ + _0x722305(0x245) ] - ? _0x170799[_0x1354c2(0x123)][_0x1354c2(0x136)][_0x1354c2(0x138)] + ? _0x19f0a3[_0x722305(0x1da)][_0x722305(0x245)][_0x722305(0x251)] : null); - _0x170799["mentionedJid"] = _0x170799[_0x1354c2(0x123)][_0x1354c2(0x136)] - ? _0x170799["msg"][_0x1354c2(0x136)]["mentionedJid"] + _0x19f0a3[_0x722305(0x259)] = _0x19f0a3["msg"][_0x722305(0x245)] + ? _0x19f0a3[_0x722305(0x1da)]["contextInfo"][_0x722305(0x259)] : []; - if (_0x170799[_0x1354c2(0x122)]) { - let _0x427b3d = getContentType(_0x4f2281); - _0x170799[_0x1354c2(0x122)] = _0x170799["quoted"][_0x427b3d]; - [_0x1354c2(0x10b)][_0x1354c2(0x111)](_0x427b3d) && - ((_0x427b3d = getContentType(_0x170799[_0x1354c2(0x122)])), - (_0x170799["quoted"] = _0x170799["quoted"][_0x427b3d])); - if (typeof _0x170799["quoted"] === _0x1354c2(0x188)) - _0x170799[_0x1354c2(0x122)] = { text: _0x170799[_0x1354c2(0x122)] }; - (_0x170799[_0x1354c2(0x122)][_0x1354c2(0x126)] = _0x427b3d), - (_0x170799[_0x1354c2(0x122)]["id"] = - _0x170799[_0x1354c2(0x123)]["contextInfo"]["stanzaId"]), - (_0x170799[_0x1354c2(0x122)][_0x1354c2(0x105)] = - _0x170799[_0x1354c2(0x123)]["contextInfo"]["remoteJid"] || - _0x170799[_0x1354c2(0x105)]), - (_0x170799[_0x1354c2(0x122)][_0x1354c2(0x196)] = _0x170799[ - _0x1354c2(0x122) + if (_0x19f0a3[_0x722305(0x216)]) { + let _0x5eafb5 = getContentType(_0x4a5a3a); + _0x19f0a3[_0x722305(0x216)] = _0x19f0a3[_0x722305(0x216)][_0x5eafb5]; + [_0x722305(0x1d1)][_0x722305(0x1fd)](_0x5eafb5) && + ((_0x5eafb5 = getContentType(_0x19f0a3[_0x722305(0x216)])), + (_0x19f0a3[_0x722305(0x216)] = _0x19f0a3[_0x722305(0x216)][_0x5eafb5])); + if (typeof _0x19f0a3["quoted"] === _0x722305(0x1e4)) + _0x19f0a3[_0x722305(0x216)] = { text: _0x19f0a3[_0x722305(0x216)] }; + (_0x19f0a3[_0x722305(0x216)][_0x722305(0x1f9)] = _0x5eafb5), + (_0x19f0a3["quoted"]["id"] = + _0x19f0a3[_0x722305(0x1da)]["contextInfo"][_0x722305(0x204)]), + (_0x19f0a3["quoted"][_0x722305(0x1d5)] = + _0x19f0a3[_0x722305(0x1da)][_0x722305(0x245)]["remoteJid"] || + _0x19f0a3[_0x722305(0x1d5)]), + (_0x19f0a3[_0x722305(0x216)][_0x722305(0x21a)] = _0x19f0a3[ + _0x722305(0x216) ]["id"] - ? _0x170799[_0x1354c2(0x122)]["id"][_0x1354c2(0x118)]( - _0x1354c2(0x17b) - ) && _0x170799[_0x1354c2(0x122)]["id"]["length"] === 0x10 + ? _0x19f0a3[_0x722305(0x216)]["id"]["startsWith"]("BAE5") && + _0x19f0a3[_0x722305(0x216)]["id"]["length"] === 0x10 : ![]), - (_0x170799["quoted"][_0x1354c2(0x132)] = _0x3990ca[_0x1354c2(0x16c)]( - _0x170799[_0x1354c2(0x123)]["contextInfo"]["participant"] + (_0x19f0a3[_0x722305(0x216)]["sender"] = _0x5a50ec["decodeJid"]( + _0x19f0a3[_0x722305(0x1da)][_0x722305(0x245)]["participant"] )), - (_0x170799[_0x1354c2(0x122)]["fromMe"] = - _0x170799[_0x1354c2(0x122)][_0x1354c2(0x132)] === - _0x3990ca[_0x1354c2(0x16c)](_0x3990ca[_0x1354c2(0x12f)]["id"])), - (_0x170799[_0x1354c2(0x122)][_0x1354c2(0x161)] = - _0x170799[_0x1354c2(0x122)][_0x1354c2(0x161)] || - _0x170799[_0x1354c2(0x122)][_0x1354c2(0x143)] || - _0x170799[_0x1354c2(0x122)][_0x1354c2(0x140)] || - _0x170799[_0x1354c2(0x122)][_0x1354c2(0x175)] || - _0x170799[_0x1354c2(0x122)]["selectedDisplayText"] || - _0x170799[_0x1354c2(0x122)][_0x1354c2(0x177)] || + (_0x19f0a3["quoted"][_0x722305(0x20a)] = + _0x19f0a3[_0x722305(0x216)][_0x722305(0x1ee)] === + _0x5a50ec[_0x722305(0x200)](_0x5a50ec["user"]["id"])), + (_0x19f0a3[_0x722305(0x216)][_0x722305(0x1d8)] = + _0x19f0a3[_0x722305(0x216)][_0x722305(0x1d8)] || + _0x19f0a3[_0x722305(0x216)][_0x722305(0x20b)] || + _0x19f0a3[_0x722305(0x216)][_0x722305(0x1f8)] || + _0x19f0a3["quoted"][_0x722305(0x233)] || + _0x19f0a3[_0x722305(0x216)][_0x722305(0x20f)] || + _0x19f0a3[_0x722305(0x216)]["title"] || ""), - (_0x170799[_0x1354c2(0x122)][_0x1354c2(0x15f)] = _0x170799[ - _0x1354c2(0x123) - ][_0x1354c2(0x136)] - ? _0x170799[_0x1354c2(0x123)]["contextInfo"][_0x1354c2(0x15f)] + (_0x19f0a3[_0x722305(0x216)]["mentionedJid"] = _0x19f0a3[ + _0x722305(0x1da) + ]["contextInfo"] + ? _0x19f0a3[_0x722305(0x1da)][_0x722305(0x245)][_0x722305(0x259)] : []), - (_0x170799[_0x1354c2(0x145)] = _0x170799[_0x1354c2(0x16b)] = + (_0x19f0a3[_0x722305(0x21e)] = _0x19f0a3["getQuotedMessage"] = async () => { - const _0x5c793b = _0x1354c2; - if (!_0x170799[_0x5c793b(0x122)]["id"]) return ![]; - let _0xe773f7 = await _0x3b10a1[_0x5c793b(0x17e)]( - _0x170799[_0x5c793b(0x105)], - _0x170799["quoted"]["id"], - _0x3990ca + const _0x488d7c = _0x722305; + if (!_0x19f0a3["quoted"]["id"]) return ![]; + let _0x2954f4 = await _0x5f4570[_0x488d7c(0x24f)]( + _0x19f0a3[_0x488d7c(0x1d5)], + _0x19f0a3[_0x488d7c(0x216)]["id"], + _0x5a50ec ); - return exports[_0x5c793b(0x190)](_0x3990ca, _0xe773f7, _0x3b10a1); + return exports[_0x488d7c(0x25a)](_0x5a50ec, _0x2954f4, _0x5f4570); }); - let _0xcfa7d5 = (_0x170799[_0x1354c2(0x122)][_0x1354c2(0x15c)] = - _0x30e21b[_0x1354c2(0x166)]({ + let _0x4c19f7 = (_0x19f0a3[_0x722305(0x216)][_0x722305(0x1ef)] = + _0x2f2f5d[_0x722305(0x237)]({ key: { - remoteJid: _0x170799[_0x1354c2(0x122)][_0x1354c2(0x105)], - fromMe: _0x170799[_0x1354c2(0x122)][_0x1354c2(0x10e)], - id: _0x170799["quoted"]["id"], + remoteJid: _0x19f0a3[_0x722305(0x216)][_0x722305(0x1d5)], + fromMe: _0x19f0a3[_0x722305(0x216)][_0x722305(0x20a)], + id: _0x19f0a3[_0x722305(0x216)]["id"], }, - message: _0x4f2281, - ...(_0x170799[_0x1354c2(0x134)] - ? { participant: _0x170799[_0x1354c2(0x122)][_0x1354c2(0x132)] } + message: _0x4a5a3a, + ...(_0x19f0a3["isGroup"] + ? { participant: _0x19f0a3["quoted"][_0x722305(0x1ee)] } : {}), })); - (_0x170799[_0x1354c2(0x122)][_0x1354c2(0x193)] = () => - _0x3990ca["sendMessage"]( - _0x170799[_0x1354c2(0x122)][_0x1354c2(0x105)], - { delete: _0xcfa7d5[_0x1354c2(0x144)] } + (_0x19f0a3["quoted"][_0x722305(0x231)] = () => + _0x5a50ec[_0x722305(0x1fa)]( + _0x19f0a3[_0x722305(0x216)][_0x722305(0x1d5)], + { delete: _0x4c19f7[_0x722305(0x234)] } )), - (_0x170799["quoted"]["copyNForward"] = ( - _0x2a2ec3, - _0x234e78 = ![], - _0xcf02a7 = {} + (_0x19f0a3[_0x722305(0x216)]["copyNForward"] = ( + _0x22464d, + _0xa9524f = ![], + _0x4aad02 = {} ) => - _0x3990ca[_0x1354c2(0x198)]( - _0x2a2ec3, - _0xcfa7d5, - _0x234e78, - _0xcf02a7 + _0x5a50ec["copyNForward"]( + _0x22464d, + _0x4c19f7, + _0xa9524f, + _0x4aad02 )), - (_0x170799[_0x1354c2(0x122)][_0x1354c2(0x189)] = () => - _0x3990ca["downloadMediaMessage"](_0x170799[_0x1354c2(0x122)])); + (_0x19f0a3[_0x722305(0x216)][_0x722305(0x1f3)] = () => + _0x5a50ec[_0x722305(0x214)](_0x19f0a3["quoted"])); } } - if (_0x170799[_0x1354c2(0x123)][_0x1354c2(0x155)]) - _0x170799[_0x1354c2(0x189)] = () => - _0x3990ca[_0x1354c2(0x11a)](_0x170799[_0x1354c2(0x123)]); + if (_0x19f0a3[_0x722305(0x1da)][_0x722305(0x21d)]) + _0x19f0a3["download"] = () => _0x5a50ec[_0x722305(0x214)](_0x19f0a3["msg"]); return ( - (_0x170799[_0x1354c2(0x161)] = - _0x170799[_0x1354c2(0x123)]["text"] || - _0x170799[_0x1354c2(0x123)][_0x1354c2(0x143)] || - _0x170799["message"][_0x1354c2(0x140)] || - _0x170799["msg"]["contentText"] || - _0x170799[_0x1354c2(0x123)][_0x1354c2(0x185)] || - _0x170799[_0x1354c2(0x123)]["title"] || + (_0x19f0a3["text"] = + _0x19f0a3[_0x722305(0x1da)][_0x722305(0x1d8)] || + _0x19f0a3[_0x722305(0x1da)]["caption"] || + _0x19f0a3[_0x722305(0x25c)][_0x722305(0x1f8)] || + _0x19f0a3[_0x722305(0x1da)][_0x722305(0x233)] || + _0x19f0a3[_0x722305(0x1da)][_0x722305(0x20f)] || + _0x19f0a3["msg"]["title"] || ""), - (_0x170799[_0x1354c2(0x148)] = ( - _0x21d4cc, - _0x384490 = _0x170799["chat"], - _0x46861a = {} + (_0x19f0a3["reply"] = ( + _0xcb0784, + _0x40e0c1 = _0x19f0a3["chat"], + _0x213c61 = {} ) => - Buffer[_0x1354c2(0x115)](_0x21d4cc) - ? _0x3990ca["sendMedia"]( - _0x384490, - _0x21d4cc, - _0x1354c2(0x109), + Buffer["isBuffer"](_0xcb0784) + ? _0x5a50ec[_0x722305(0x1d0)]( + _0x40e0c1, + _0xcb0784, + _0x722305(0x1e8), "", - _0x170799, - { ..._0x46861a } + _0x19f0a3, + { ..._0x213c61 } ) - : _0x3990ca[_0x1354c2(0x130)](_0x384490, _0x21d4cc, _0x170799, { - ..._0x46861a, + : _0x5a50ec[_0x722305(0x23a)](_0x40e0c1, _0xcb0784, _0x19f0a3, { + ..._0x213c61, })), - (_0x170799["copy"] = () => - exports[_0x1354c2(0x190)]( - _0x3990ca, - _0x30e21b[_0x1354c2(0x166)](_0x30e21b[_0x1354c2(0x16e)](_0x170799)) + (_0x19f0a3[_0x722305(0x252)] = () => + exports["smsg"]( + _0x5a50ec, + _0x2f2f5d["fromObject"](_0x2f2f5d[_0x722305(0x1ea)](_0x19f0a3)) )), - (_0x170799["copyNForward"] = ( - _0x14890e = _0x170799[_0x1354c2(0x105)], - _0x5ecdaf = ![], - _0x70f47a = {} + (_0x19f0a3["copyNForward"] = ( + _0x3c8858 = _0x19f0a3[_0x722305(0x1d5)], + _0x141214 = ![], + _0x15d221 = {} ) => - _0x3990ca[_0x1354c2(0x198)](_0x14890e, _0x170799, _0x5ecdaf, _0x70f47a)), - _0x170799 + _0x5a50ec[_0x722305(0x254)](_0x3c8858, _0x19f0a3, _0x141214, _0x15d221)), + _0x19f0a3 ); } +function _0x17f9() { + const _0xdf1efc = [ + "cMod", + "downloadMediaMessage", + "connectionReplaced", + "quoted", + "log", + "messages.upsert", + "from", + "isBaileys", + "redBright", + "status", + "url", + "getQuotedObj", + "replace", + "Yesbhautik", + "0@s.whatsapp.net", + "Whatsapp-Ai-Bot\x20-\x20YesbhautikX", + "bind", + "Connection\x20TimedOut,\x20Reconnecting...", + "@hapi/boom", + "default", + "participant", + "11FaDWfo", + "unwatchFile", + "notify", + "getName", + "name", + "close", + "./yesbhautikai", + "startsWith", + "child", + "delete", + "output", + "contentText", + "key", + "statusCode", + "figlet", + "fromObject", + "BAE5", + "Unhandled\x20Rejection\x20at:", + "sendText", + "user", + "@broadcast", + "public", + "set", + "creds.update", + "alloc", + "27vDRTnd", + "Standard", + "Type\x20/menu\x20to\x20see\x20menu", + "length", + "contextInfo", + "get", + "https://go.yesbhautik.co.in/yukl0o82", + "using\x20WA\x20v", + "isBuffer", + "Browser", + "test", + "silent", + "resolve", + "server", + "loadMessage", + "store", + "quotedMessage", + "copy", + "@s.whatsapp.net", + "copyNForward", + "green", + "yellow", + "Connection\x20Lost\x20from\x20Server,\x20reconnecting...", + "2.1.0", + "mentionedJid", + "smsg", + "Restart\x20Required,\x20Restarting...", + "message", + "sendImage", + "Unknown\x20DisconnectReason:\x20", + "916353586391", + "unhandledRejection", + "textSync", + "4770SWmJSN", + "verifiedName", + "Donate\x20for\x20creator\x20https://go.yesbhautik.co.in/yukl0o82", + "14513560EPNkcD", + "international", + "remoteJid", + "connectionClosed", + "6220exlyoS", + "Something\x20went\x20wrong", + "messages", + "4360928yrOdbx", + "sendMedia", + "productMessage", + "selectedButtonId", + "groupMetadata", + "serializeM", + "chat", + "restartRequired", + "selectedRowId", + "text", + "Caught\x20exception:\x20", + "msg", + "7hROFXC", + "649202WSVnRV", + "reason:", + "keyword", + "Bad\x20Session\x20File,\x20Please\x20Delete\x20Session\x20and\x20Scan\x20Again", + "@g.us", + "singleSelectReply", + "subject", + "keys", + "string", + "Update\x20", + "contacts", + "query", + "file", + "855dqYyhN", + "toObject", + "exit", + "Bot\x20started!\x0a\x0aDon\x27t\x20forget\x20to\x20support,\x20dude:)\x0a", + "getNumber", + "sender", + "fakeObj", + "error", + "WebMessageInfo", + "ephemeralMessage", + "download", + "443172QwoJqQ", + "listResponseMessage", + "badSession", + "10287441jFBtZL", + "conversation", + "mtype", + "sendMessage", + "data", + "viewOnceMessage", + "includes", + ",\x20isLatest:\x20", + "connection.update", + "decodeJid", + "split", + "lodash", + "session", + "stanzaId", + "Connection\x20Replaced,\x20Another\x20New\x20Session\x20Opened,\x20Please\x20Restart\x20Bot", + "loggedOut", + "base64", + "Bot\x20success\x20conneted\x20to\x20server", + "WhatsApp", + "fromMe", + "caption", + "open", + "axios", + "readFileSync", + "selectedDisplayText", + "contacts.update", + "connectionLost", + "setStatus", + ]; + _0x17f9 = function () { + return _0xdf1efc; + }; + return _0x17f9(); +} async function startHisoka() { - const _0x206d94 = _0x45096a, - { state: _0x1a3928, saveCreds: _0x393a0e } = await useMultiFileAuthState( - "./" + (sessionName ? sessionName : _0x206d94(0x18a)) + const _0x137351 = _0x2c893f, + { state: _0x35b9a7, saveCreds: _0x1f4495 } = await useMultiFileAuthState( + "./" + (sessionName ? sessionName : _0x137351(0x203)) ), - { version: _0x4d974c, isLatest: _0x15780f } = - await fetchLatestWaWebVersion()[_0x206d94(0x179)](() => + { version: _0x33efed, isLatest: _0xad31e3 } = + await fetchLatestWaWebVersion()["catch"](() => fetchLatestBaileysVersion() ); - console[_0x206d94(0x14b)]( - _0x206d94(0x13c) + - _0x4d974c[_0x206d94(0x170)](".") + - _0x206d94(0x151) + - _0x15780f + console[_0x137351(0x217)]( + _0x137351(0x248) + _0x33efed["join"](".") + _0x137351(0x1fe) + _0xad31e3 ), - console[_0x206d94(0x14b)]( + console[_0x137351(0x217)]( color( - figlet["textSync"](_0x206d94(0x17d), { - font: _0x206d94(0x165), - horizontalLayout: _0x206d94(0x125), - vertivalLayout: _0x206d94(0x125), + figlet[_0x137351(0x1c4)](_0x137351(0x220), { + font: _0x137351(0x242), + horizontalLayout: _0x137351(0x226), + vertivalLayout: _0x137351(0x226), whitespaceBreak: ![], }), - _0x206d94(0x12a) + _0x137351(0x255) ) ); - const _0xa16dc8 = yesbhautikaiConnect({ - logger: pino({ level: _0x206d94(0x11f) }), + const _0x1cb899 = yesbhautikaiConnect({ + logger: pino({ level: "silent" }), printQRInTerminal: !![], - browser: [_0x206d94(0x16f), "Uni-explorer", _0x206d94(0x14e)], - auth: _0x1a3928, + browser: [_0x137351(0x222), _0x137351(0x24a), _0x137351(0x258)], + auth: _0x35b9a7, }); - store[_0x206d94(0x153)](_0xa16dc8["ev"]), - _0xa16dc8["ev"]["on"](_0x206d94(0x12b), async (_0x221b20) => { - const _0x1eba6a = _0x206d94; + store[_0x137351(0x223)](_0x1cb899["ev"]), + _0x1cb899["ev"]["on"](_0x137351(0x218), async (_0x694d7a) => { + const _0x690441 = _0x137351; try { - mek = _0x221b20["messages"][0x0]; - if (!mek["message"]) return; - mek[_0x1eba6a(0x13b)] = - Object[_0x1eba6a(0x119)](mek[_0x1eba6a(0x13b)])[0x0] === - _0x1eba6a(0x113) - ? mek[_0x1eba6a(0x13b)][_0x1eba6a(0x113)][_0x1eba6a(0x13b)] - : mek["message"]; + mek = _0x694d7a[_0x690441(0x1ce)][0x0]; + if (!mek[_0x690441(0x25c)]) return; + mek[_0x690441(0x25c)] = + Object[_0x690441(0x1e3)](mek[_0x690441(0x25c)])[0x0] === + _0x690441(0x1f2) + ? mek[_0x690441(0x25c)][_0x690441(0x1f2)][_0x690441(0x25c)] + : mek[_0x690441(0x25c)]; if ( - mek[_0x1eba6a(0x144)] && - mek[_0x1eba6a(0x144)]["remoteJid"] === _0x1eba6a(0x124) + mek["key"] && + mek[_0x690441(0x234)][_0x690441(0x1ca)] === "status@broadcast" ) return; if ( - !_0xa16dc8[_0x1eba6a(0x176)] && - !mek[_0x1eba6a(0x144)][_0x1eba6a(0x10e)] && - _0x221b20["type"] === _0x1eba6a(0x12d) + !_0x1cb899["public"] && + !mek[_0x690441(0x234)]["fromMe"] && + _0x694d7a["type"] === _0x690441(0x22a) ) return; if ( - mek[_0x1eba6a(0x144)]["id"][_0x1eba6a(0x118)]("BAE5") && - mek[_0x1eba6a(0x144)]["id"][_0x1eba6a(0x150)] === 0x10 + mek["key"]["id"][_0x690441(0x22f)](_0x690441(0x238)) && + mek[_0x690441(0x234)]["id"]["length"] === 0x10 ) return; - (m = smsg(_0xa16dc8, mek, store)), - require(_0x1eba6a(0x133))(_0xa16dc8, m, _0x221b20, store); - } catch (_0xa541d4) { - console[_0x1eba6a(0x14b)](_0xa541d4); + (m = smsg(_0x1cb899, mek, store)), + require(_0x690441(0x22e))(_0x1cb899, m, _0x694d7a, store); + } catch (_0x4c3ca7) { + console[_0x690441(0x217)](_0x4c3ca7); } }); - const _0x4e8bb4 = new Map(); - process["on"]("unhandledRejection", (_0x33f2d6, _0x4eeae5) => { - const _0xb0afd4 = _0x206d94; - _0x4e8bb4[_0xb0afd4(0x13a)](_0x4eeae5, _0x33f2d6), - console[_0xb0afd4(0x14b)]( - _0xb0afd4(0x137), - _0x4eeae5, - "reason:", - _0x33f2d6 + const _0x2a32ff = new Map(); + process["on"](_0x137351(0x1c3), (_0x4ccdd4, _0x5b8276) => { + const _0x4dbf1a = _0x137351; + _0x2a32ff["set"](_0x5b8276, _0x4ccdd4), + console[_0x4dbf1a(0x217)]( + _0x4dbf1a(0x239), + _0x5b8276, + _0x4dbf1a(0x1dd), + _0x4ccdd4 ); }), - process["on"](_0x206d94(0x17a), (_0x2f9835) => { - _0x4e8bb4["delete"](_0x2f9835); + process["on"]("rejectionHandled", (_0x40d499) => { + _0x2a32ff["delete"](_0x40d499); }), - process["on"]("Something\x20went\x20wrong", function (_0x5669c1) { - const _0x397e08 = _0x206d94; - console[_0x397e08(0x14b)](_0x397e08(0x14c), _0x5669c1); + process["on"](_0x137351(0x1cd), function (_0x6da8a2) { + const _0x14a2f3 = _0x137351; + console["log"](_0x14a2f3(0x1d9), _0x6da8a2); }), - (_0xa16dc8["decodeJid"] = (_0x417ff5) => { - const _0x44e0a6 = _0x206d94; - if (!_0x417ff5) return _0x417ff5; - if (/:\d+@/gi[_0x44e0a6(0x18d)](_0x417ff5)) { - let _0x417429 = jidDecode(_0x417ff5) || {}; + (_0x1cb899["decodeJid"] = (_0x28e838) => { + const _0x181732 = _0x137351; + if (!_0x28e838) return _0x28e838; + if (/:\d+@/gi[_0x181732(0x24b)](_0x28e838)) { + let _0x2f664e = jidDecode(_0x28e838) || {}; return ( - (_0x417429["user"] && - _0x417429["server"] && - _0x417429["user"] + "@" + _0x417429["server"]) || - _0x417ff5 + (_0x2f664e[_0x181732(0x23b)] && + _0x2f664e[_0x181732(0x24e)] && + _0x2f664e[_0x181732(0x23b)] + "@" + _0x2f664e[_0x181732(0x24e)]) || + _0x28e838 ); - } else return _0x417ff5; + } else return _0x28e838; }), - _0xa16dc8["ev"]["on"]("contacts.update", (_0x15a6f8) => { - const _0x92db74 = _0x206d94; - for (let _0x531a4e of _0x15a6f8) { - let _0x39b718 = _0xa16dc8["decodeJid"](_0x531a4e["id"]); - if (store && store[_0x92db74(0x11d)]) - store[_0x92db74(0x11d)][_0x39b718] = { - id: _0x39b718, - name: _0x531a4e[_0x92db74(0x12d)], + _0x1cb899["ev"]["on"](_0x137351(0x210), (_0x312a12) => { + const _0x355fad = _0x137351; + for (let _0x55d184 of _0x312a12) { + let _0x2f8f20 = _0x1cb899[_0x355fad(0x200)](_0x55d184["id"]); + if (store && store[_0x355fad(0x1e6)]) + store[_0x355fad(0x1e6)][_0x2f8f20] = { + id: _0x2f8f20, + name: _0x55d184["notify"], }; } }), - (_0xa16dc8["getName"] = (_0x39318a, _0x5c2e5f = ![]) => { - const _0x547805 = _0x206d94; - (id = _0xa16dc8[_0x547805(0x16c)](_0x39318a)), - (_0x5c2e5f = _0xa16dc8["withoutContact"] || _0x5c2e5f); - let _0x39b628; - if (id[_0x547805(0x160)]("@g.us")) - return new Promise(async (_0x29ad39) => { - const _0xfdfa86 = _0x547805; - _0x39b628 = store[_0xfdfa86(0x11d)][id] || {}; - if (!(_0x39b628["name"] || _0x39b628[_0xfdfa86(0x178)])) - _0x39b628 = _0xa16dc8[_0xfdfa86(0x195)](id) || {}; - _0x29ad39( - _0x39b628[_0xfdfa86(0x154)] || - _0x39b628[_0xfdfa86(0x178)] || - PhoneNumber("+" + id[_0xfdfa86(0x11e)](_0xfdfa86(0x16a), ""))[ - _0xfdfa86(0x10d) - ](_0xfdfa86(0x117)) + (_0x1cb899[_0x137351(0x22b)] = (_0x8b9608, _0x4a3ad1 = ![]) => { + const _0x3b8e47 = _0x137351; + (id = _0x1cb899[_0x3b8e47(0x200)](_0x8b9608)), + (_0x4a3ad1 = _0x1cb899["withoutContact"] || _0x4a3ad1); + let _0x4f7d5a; + if (id["endsWith"](_0x3b8e47(0x1e0))) + return new Promise(async (_0xbfb364) => { + const _0x5b6a67 = _0x3b8e47; + _0x4f7d5a = store[_0x5b6a67(0x1e6)][id] || {}; + if (!(_0x4f7d5a[_0x5b6a67(0x22c)] || _0x4f7d5a[_0x5b6a67(0x1e2)])) + _0x4f7d5a = _0x1cb899[_0x5b6a67(0x1d3)](id) || {}; + _0xbfb364( + _0x4f7d5a[_0x5b6a67(0x22c)] || + _0x4f7d5a[_0x5b6a67(0x1e2)] || + PhoneNumber("+" + id[_0x5b6a67(0x21f)]("@s.whatsapp.net", ""))[ + _0x5b6a67(0x1ed) + ](_0x5b6a67(0x1c9)) ); }); else - _0x39b628 = - id === _0x547805(0x15e) - ? { id: id, name: _0x547805(0x180) } - : id === _0xa16dc8[_0x547805(0x16c)](_0xa16dc8["user"]["id"]) - ? _0xa16dc8["user"] - : store["contacts"][id] || {}; + _0x4f7d5a = + id === _0x3b8e47(0x221) + ? { id: id, name: _0x3b8e47(0x209) } + : id === + _0x1cb899[_0x3b8e47(0x200)](_0x1cb899[_0x3b8e47(0x23b)]["id"]) + ? _0x1cb899["user"] + : store[_0x3b8e47(0x1e6)][id] || {}; return ( - (_0x5c2e5f ? "" : _0x39b628[_0x547805(0x154)]) || - _0x39b628["subject"] || - _0x39b628["verifiedName"] || - PhoneNumber("+" + _0x39318a[_0x547805(0x11e)](_0x547805(0x16a), ""))[ + (_0x4a3ad1 ? "" : _0x4f7d5a[_0x3b8e47(0x22c)]) || + _0x4f7d5a["subject"] || + _0x4f7d5a[_0x3b8e47(0x1c6)] || + PhoneNumber("+" + _0x8b9608["replace"](_0x3b8e47(0x253), ""))[ "getNumber" - ](_0x547805(0x117)) + ](_0x3b8e47(0x1c9)) ); }), - (_0xa16dc8[_0x206d94(0x197)] = (_0x261c18) => { - const _0x147751 = _0x206d94; + (_0x1cb899[_0x137351(0x212)] = (_0x3bcd05) => { + const _0x51af20 = _0x137351; return ( - _0xa16dc8["query"]({ + _0x1cb899[_0x51af20(0x1e7)]({ tag: "iq", attrs: { - to: "@s.whatsapp.net", - type: "set", - xmlns: _0x147751(0x18b), + to: _0x51af20(0x253), + type: _0x51af20(0x23e), + xmlns: _0x51af20(0x21c), }, content: [ { - tag: "status", + tag: _0x51af20(0x21c), attrs: {}, - content: Buffer["from"](_0x261c18, _0x147751(0x114)), + content: Buffer[_0x51af20(0x219)](_0x3bcd05, "utf-8"), }, ], }), - _0x261c18 + _0x3bcd05 ); }), - (_0xa16dc8["public"] = !![]), - (_0xa16dc8[_0x206d94(0x14d)] = (_0x5e950a) => - smsg(_0xa16dc8, _0x5e950a, store)), - _0xa16dc8["ev"]["on"](_0x206d94(0x19b), async (_0x4f7d01) => { - const _0x48d97c = _0x206d94, - { connection: _0xbd3d8d, lastDisconnect: _0x5efe51 } = _0x4f7d01; - if (_0xbd3d8d === _0x48d97c(0x17c)) { - let _0x31bdb8 = new Boom(_0x5efe51?.[_0x48d97c(0x14a)])?.["output"][ - _0x48d97c(0x159) - ]; - if (_0x31bdb8 === DisconnectReason[_0x48d97c(0x187)]) - console[_0x48d97c(0x14b)](_0x48d97c(0x14f)), - process[_0x48d97c(0x13d)](); + (_0x1cb899[_0x137351(0x23d)] = !![]), + (_0x1cb899[_0x137351(0x1d4)] = (_0x4b1995) => + smsg(_0x1cb899, _0x4b1995, store)), + _0x1cb899["ev"]["on"](_0x137351(0x1ff), async (_0x3c9205) => { + const _0x250b99 = _0x137351, + { connection: _0x354f2a, lastDisconnect: _0x33f3fd } = _0x3c9205; + if (_0x354f2a === _0x250b99(0x22d)) { + let _0x36a175 = new Boom(_0x33f3fd?.[_0x250b99(0x1f0)])?.[ + _0x250b99(0x232) + ][_0x250b99(0x235)]; + if (_0x36a175 === DisconnectReason[_0x250b99(0x1f6)]) + console[_0x250b99(0x217)](_0x250b99(0x1df)), + process[_0x250b99(0x1eb)](); else { - if (_0x31bdb8 === DisconnectReason[_0x48d97c(0x15d)]) - console["log"](_0x48d97c(0x17f)), startHisoka(); + if (_0x36a175 === DisconnectReason[_0x250b99(0x1cb)]) + console["log"]("Connection\x20closed,\x20reconnecting...."), + startHisoka(); else { - if (_0x31bdb8 === DisconnectReason[_0x48d97c(0x156)]) - console[_0x48d97c(0x14b)](_0x48d97c(0x194)), startHisoka(); + if (_0x36a175 === DisconnectReason[_0x250b99(0x211)]) + console[_0x250b99(0x217)](_0x250b99(0x257)), startHisoka(); else { - if (_0x31bdb8 === DisconnectReason[_0x48d97c(0x112)]) - console[_0x48d97c(0x14b)](_0x48d97c(0x128)), process["exit"](); + if (_0x36a175 === DisconnectReason[_0x250b99(0x215)]) + console[_0x250b99(0x217)](_0x250b99(0x205)), + process[_0x250b99(0x1eb)](); else { - if (_0x31bdb8 === DisconnectReason[_0x48d97c(0x18f)]) - console[_0x48d97c(0x14b)](_0x48d97c(0x135)), - process[_0x48d97c(0x13d)](); + if (_0x36a175 === DisconnectReason[_0x250b99(0x206)]) + console[_0x250b99(0x217)]( + "Device\x20Logged\x20Out,\x20Please\x20Delete\x20Folder\x20Session\x20yusril\x20and\x20Scan\x20Again." + ), + process[_0x250b99(0x1eb)](); else { - if (_0x31bdb8 === DisconnectReason[_0x48d97c(0x104)]) - console[_0x48d97c(0x14b)](_0x48d97c(0x171)), startHisoka(); + if (_0x36a175 === DisconnectReason[_0x250b99(0x1d6)]) + console[_0x250b99(0x217)](_0x250b99(0x25b)), startHisoka(); else - _0x31bdb8 === DisconnectReason[_0x48d97c(0x10c)] - ? (console[_0x48d97c(0x14b)](_0x48d97c(0x186)), - startHisoka()) - : (console[_0x48d97c(0x14b)]( - _0x48d97c(0x15b) + _0x31bdb8 + "|" + _0xbd3d8d + _0x36a175 === DisconnectReason["timedOut"] + ? (console["log"](_0x250b99(0x224)), startHisoka()) + : (console["log"]( + _0x250b99(0x1c1) + _0x36a175 + "|" + _0x354f2a ), startHisoka()); } @@ -607,155 +621,135 @@ async function startHisoka() { } } } else - _0xbd3d8d === _0x48d97c(0x158) && - (console["log"]( - color( - "Bot\x20success\x20conneted\x20to\x20server", - _0x48d97c(0x12a) - ) - ), - console[_0x48d97c(0x14b)](color(_0x48d97c(0x167), "yellow")), - console[_0x48d97c(0x14b)](color(_0x48d97c(0x172))), - _0xa16dc8[_0x48d97c(0x131)](owner + _0x48d97c(0x16a), { - text: _0x48d97c(0x108) + donet, + _0x354f2a === _0x250b99(0x20c) && + (console[_0x250b99(0x217)](color(_0x250b99(0x208), _0x250b99(0x255))), + console[_0x250b99(0x217)](color(_0x250b99(0x1c7), _0x250b99(0x256))), + console[_0x250b99(0x217)](color(_0x250b99(0x243))), + _0x1cb899["sendMessage"](owner + _0x250b99(0x253), { + text: _0x250b99(0x1ec) + donet, })); }), - _0xa16dc8["ev"]["on"]("creds.update", _0x393a0e); - const _0x1ee6f9 = async (_0x1e6249, _0x3057eb) => { - const _0x49c455 = _0x206d94; + _0x1cb899["ev"]["on"](_0x137351(0x23f), _0x1f4495); + const _0xd2e6e7 = async (_0xec3f11, _0x541433) => { + const _0x469db4 = _0x137351; try { - _0x3057eb ? _0x3057eb : {}; - const _0x22f806 = await axios({ - method: "get", - url: _0x1e6249, + _0x541433 ? _0x541433 : {}; + const _0x19c69f = await axios({ + method: _0x469db4(0x246), + url: _0xec3f11, headers: { DNT: 0x1, "Upgrade-Insecure-Request": 0x1 }, - ..._0x3057eb, - responseType: _0x49c455(0x13f), + ..._0x541433, + responseType: "arraybuffer", }); - return _0x22f806[_0x49c455(0x10a)]; - } catch (_0x29d6b9) { - return _0x29d6b9; + return _0x19c69f[_0x469db4(0x1fb)]; + } catch (_0x56877d) { + return _0x56877d; } }; return ( - (_0xa16dc8[_0x206d94(0x141)] = async ( - _0x2c26db, - _0x5b58d7, - _0x561afe = "", - _0x1386a4 = "", - _0x35e53f + (_0x1cb899[_0x137351(0x1c0)] = async ( + _0x550ea9, + _0x5e435c, + _0x5c3fb4 = "", + _0x44e32b = "", + _0x50947b ) => { - const _0x23d1cd = _0x206d94; - let _0x5937c1 = Buffer[_0x23d1cd(0x115)](_0x5b58d7) - ? _0x5b58d7 - : /^data:.*?\/.*?;base64,/i["test"](_0x5b58d7) - ? Buffer[_0x23d1cd(0x168)]( - _0x5b58d7[_0x23d1cd(0x19d)]`,`[0x1], - _0x23d1cd(0x11b) - ) - : /^https?:\/\//[_0x23d1cd(0x18d)](_0x5b58d7) - ? await await _0x1ee6f9(_0x5b58d7) - : fs[_0x23d1cd(0x147)](_0x5b58d7) - ? fs[_0x23d1cd(0x129)](_0x5b58d7) - : Buffer["alloc"](0x0); - return await _0xa16dc8[_0x23d1cd(0x131)]( - _0x2c26db, - { image: _0x5937c1, caption: _0x561afe, ..._0x35e53f }, - { quoted: _0x1386a4 } + const _0x41d20d = _0x137351; + let _0x4a5d67 = Buffer[_0x41d20d(0x249)](_0x5e435c) + ? _0x5e435c + : /^data:.*?\/.*?;base64,/i[_0x41d20d(0x24b)](_0x5e435c) + ? Buffer["from"](_0x5e435c[_0x41d20d(0x201)]`,`[0x1], _0x41d20d(0x207)) + : /^https?:\/\//["test"](_0x5e435c) + ? await await _0xd2e6e7(_0x5e435c) + : fs["existsSync"](_0x5e435c) + ? fs[_0x41d20d(0x20e)](_0x5e435c) + : Buffer[_0x41d20d(0x240)](0x0); + return await _0x1cb899[_0x41d20d(0x1fa)]( + _0x550ea9, + { image: _0x4a5d67, caption: _0x5c3fb4, ..._0x50947b }, + { quoted: _0x44e32b } ); }), - (_0xa16dc8[_0x206d94(0x130)] = ( - _0x4d7549, - _0x1cbef3, - _0x23590f = "", - _0x3bd64b + (_0x1cb899[_0x137351(0x23a)] = ( + _0x5f107f, + _0x78ce87, + _0x976de2 = "", + _0x2be6a4 ) => - _0xa16dc8[_0x206d94(0x131)]( - _0x4d7549, - { text: _0x1cbef3, ..._0x3bd64b }, - { quoted: _0x23590f } + _0x1cb899[_0x137351(0x1fa)]( + _0x5f107f, + { text: _0x78ce87, ..._0x2be6a4 }, + { quoted: _0x976de2 } )), - (_0xa16dc8[_0x206d94(0x18c)] = ( - _0x3c49a9, - _0x4a866f, - _0x54d9af = "", - _0x1e4000 = _0xa16dc8[_0x206d94(0x12f)]["id"], - _0x2a8ad6 = {} + (_0x1cb899[_0x137351(0x213)] = ( + _0x1a8d0d, + _0x253f82, + _0x5b8b31 = "", + _0x334586 = _0x1cb899[_0x137351(0x23b)]["id"], + _0x1aa15c = {} ) => { - const _0x303264 = _0x206d94; - let _0x57e15e = Object[_0x303264(0x119)]( - _0x4a866f[_0x303264(0x13b)] + const _0x11edb2 = _0x137351; + let _0x5a3f6e = Object[_0x11edb2(0x1e3)]( + _0x253f82[_0x11edb2(0x25c)] )[0x0], - _0x300ba0 = _0x57e15e === _0x303264(0x113); - _0x300ba0 && - (_0x57e15e = Object[_0x303264(0x119)]( - _0x4a866f[_0x303264(0x13b)][_0x303264(0x113)][_0x303264(0x13b)] + _0xb3136 = _0x5a3f6e === _0x11edb2(0x1f2); + _0xb3136 && + (_0x5a3f6e = Object[_0x11edb2(0x1e3)]( + _0x253f82[_0x11edb2(0x25c)][_0x11edb2(0x1f2)][_0x11edb2(0x25c)] )[0x0]); - let _0x5397f3 = _0x300ba0 - ? _0x4a866f[_0x303264(0x13b)][_0x303264(0x113)][_0x303264(0x13b)] - : _0x4a866f["message"], - _0x315401 = _0x5397f3[_0x57e15e]; - if (typeof _0x315401 === _0x303264(0x188)) - _0x5397f3[_0x57e15e] = _0x54d9af || _0x315401; + let _0xc89744 = _0xb3136 + ? _0x253f82[_0x11edb2(0x25c)][_0x11edb2(0x1f2)][_0x11edb2(0x25c)] + : _0x253f82[_0x11edb2(0x25c)], + _0x3b7bd7 = _0xc89744[_0x5a3f6e]; + if (typeof _0x3b7bd7 === _0x11edb2(0x1e4)) + _0xc89744[_0x5a3f6e] = _0x5b8b31 || _0x3b7bd7; else { - if (_0x315401["caption"]) - _0x315401["caption"] = _0x54d9af || _0x315401[_0x303264(0x143)]; + if (_0x3b7bd7[_0x11edb2(0x20b)]) + _0x3b7bd7[_0x11edb2(0x20b)] = + _0x5b8b31 || _0x3b7bd7[_0x11edb2(0x20b)]; else { - if (_0x315401[_0x303264(0x161)]) - _0x315401["text"] = _0x54d9af || _0x315401[_0x303264(0x161)]; + if (_0x3b7bd7[_0x11edb2(0x1d8)]) + _0x3b7bd7[_0x11edb2(0x1d8)] = + _0x5b8b31 || _0x3b7bd7[_0x11edb2(0x1d8)]; } } - if (typeof _0x315401 !== "string") - _0x5397f3[_0x57e15e] = { ..._0x315401, ..._0x2a8ad6 }; - if (_0x4a866f[_0x303264(0x144)][_0x303264(0x164)]) - _0x1e4000 = _0x4a866f[_0x303264(0x144)]["participant"] = - _0x1e4000 || _0x4a866f[_0x303264(0x144)]["participant"]; + if (typeof _0x3b7bd7 !== _0x11edb2(0x1e4)) + _0xc89744[_0x5a3f6e] = { ..._0x3b7bd7, ..._0x1aa15c }; + if (_0x253f82["key"]["participant"]) + _0x334586 = _0x253f82[_0x11edb2(0x234)][_0x11edb2(0x227)] = + _0x334586 || _0x253f82[_0x11edb2(0x234)][_0x11edb2(0x227)]; else { - if (_0x4a866f["key"][_0x303264(0x164)]) - _0x1e4000 = _0x4a866f[_0x303264(0x144)][_0x303264(0x164)] = - _0x1e4000 || _0x4a866f[_0x303264(0x144)][_0x303264(0x164)]; + if (_0x253f82[_0x11edb2(0x234)][_0x11edb2(0x227)]) + _0x334586 = _0x253f82[_0x11edb2(0x234)][_0x11edb2(0x227)] = + _0x334586 || _0x253f82["key"][_0x11edb2(0x227)]; } - if ( - _0x4a866f[_0x303264(0x144)][_0x303264(0x11c)]["includes"]( - _0x303264(0x16a) - ) - ) - _0x1e4000 = _0x1e4000 || _0x4a866f[_0x303264(0x144)]["remoteJid"]; + if (_0x253f82["key"][_0x11edb2(0x1ca)]["includes"](_0x11edb2(0x253))) + _0x334586 = _0x334586 || _0x253f82[_0x11edb2(0x234)][_0x11edb2(0x1ca)]; else { if ( - _0x4a866f[_0x303264(0x144)][_0x303264(0x11c)]["includes"]( - _0x303264(0x142) - ) + _0x253f82["key"][_0x11edb2(0x1ca)][_0x11edb2(0x1fd)](_0x11edb2(0x23c)) ) - _0x1e4000 = _0x1e4000 || _0x4a866f["key"]["remoteJid"]; + _0x334586 = + _0x334586 || _0x253f82[_0x11edb2(0x234)][_0x11edb2(0x1ca)]; } return ( - (_0x4a866f[_0x303264(0x144)]["remoteJid"] = _0x3c49a9), - (_0x4a866f[_0x303264(0x144)][_0x303264(0x10e)] = - _0x1e4000 === _0xa16dc8[_0x303264(0x12f)]["id"]), - proto[_0x303264(0x121)][_0x303264(0x166)](_0x4a866f) + (_0x253f82[_0x11edb2(0x234)][_0x11edb2(0x1ca)] = _0x1a8d0d), + (_0x253f82[_0x11edb2(0x234)][_0x11edb2(0x20a)] = + _0x334586 === _0x1cb899["user"]["id"]), + proto[_0x11edb2(0x1f1)][_0x11edb2(0x237)](_0x253f82) ); }), - _0xa16dc8 - ); -} -function _0x3cd5(_0x2e61c9, _0x521f02) { - const _0x41e819 = _0x41e8(); - return ( - (_0x3cd5 = function (_0x3cd5a8, _0x3aeda6) { - _0x3cd5a8 = _0x3cd5a8 - 0x104; - let _0x5242b4 = _0x41e819[_0x3cd5a8]; - return _0x5242b4; - }), - _0x3cd5(_0x2e61c9, _0x521f02) + _0x1cb899 ); } startHisoka(); -let file = require[_0x45096a(0x163)](__filename); +let file = require[_0x2c893f(0x24d)](__filename); fs["watchFile"](file, () => { - const _0x261adc = _0x45096a; - fs["unwatchFile"](file), - console["log"](chalk[_0x261adc(0x152)](_0x261adc(0x182) + __filename)), + const _0x2480f8 = _0x2c893f; + fs[_0x2480f8(0x229)](file), + console[_0x2480f8(0x217)]( + chalk[_0x2480f8(0x21b)](_0x2480f8(0x1e5) + __filename) + ), delete require["cache"][file], require(file); -}); \ No newline at end of file +}); diff --git a/key.json b/key.json deleted file mode 100644 index 42c8ea8..0000000 --- a/key.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "keyopenai": "REPLACE_OPENAI_APIKEY_HERE", - "donasi": "Don't forget to support, dude :) https://go.yesbhautik.co.in/8i6wdu" -} \ No newline at end of file diff --git a/node_modules.zip b/node_modules.zip deleted file mode 100644 index b43d0b8..0000000 Binary files a/node_modules.zip and /dev/null differ diff --git a/package.json b/package.json index 3edbd30..c3c674f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "Whatsapp-Ai-BOT", - "version": "2.0.0", - "description": "Whatsapp Ai Bot, developed BY Bhautik Bavadiya with Youareunique Inc.", + "version": "2.1.0", + "description": "Whatsapp Ai Bot, developed BY Bhautik Bavadiya with YesbhautikX", "main": "index.js", "type": "commonjs", "scripts": { @@ -18,15 +18,15 @@ "bot-wa", "bot-md", "yesbhautik", - "whatsapp-multi-device" + "whatsapp-multi-device", + "YesbhautikX" ], - "base": "https://i-am.yesbhautik.co.in/", + "base": "https://yesbhautik.co.in/", "author": "YESBHAUTIK", "license": "MIT", "dependencies": { - "@adiwajshing/baileys": "github:WhiskeySockets/Baileys", - "@adiwajshing/keyed-db": "^0.2.4", "@hapi/boom": "^10.0.0", + "@whiskeysockets/baileys": "^6.6.0", "awesome-phonenumber": "^2.64.0", "axios": "^1.3.4", "chalk": "^4.1.2", @@ -34,7 +34,7 @@ "figlet": "^1.5.2", "fs": "0.0.1-security", "lodash": "^4.17.21", - "openai": "^3.2.1", + "openai": "^4.20.1", "pino": "^7.0.5", "qrcode-terminal": "^0.12.0", "util": "^0.12.4" @@ -51,4 +51,4 @@ "url": "https://github.com/yesbhautik/Whatsapp-Ai-BOT/issues" }, "homepage": "https://github.com/yesbhautik/Whatsapp-Ai-BOT#readme" -} \ No newline at end of file +} diff --git a/yesbhautik/convo.txt b/yesbhautik/convo.txt deleted file mode 100644 index 139597f..0000000 --- a/yesbhautik/convo.txt +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/yesbhautikai.js b/yesbhautikai.js index 5dbac9e..f6bdc5b 100644 --- a/yesbhautikai.js +++ b/yesbhautikai.js @@ -1,27 +1,26 @@ -const _0x45fa5a = _0x42a0; -(function (_0x5b8520, _0x4c1b5b) { - const _0xf1c635 = _0x42a0, - _0x1fc80d = _0x5b8520(); +const _0x39e3e6 = _0x2987; +(function (_0x34eda4, _0x4ab326) { + const _0x4ef61a = _0x2987, + _0x5333ec = _0x34eda4(); while (!![]) { try { - const _0x515b53 = - (-parseInt(_0xf1c635(0x1df)) / 0x1) * - (-parseInt(_0xf1c635(0x1c3)) / 0x2) + - -parseInt(_0xf1c635(0x1c0)) / 0x3 + - (parseInt(_0xf1c635(0x1f0)) / 0x4) * - (parseInt(_0xf1c635(0x1c5)) / 0x5) + - -parseInt(_0xf1c635(0x21d)) / 0x6 + - (-parseInt(_0xf1c635(0x1fa)) / 0x7) * - (-parseInt(_0xf1c635(0x203)) / 0x8) + - -parseInt(_0xf1c635(0x1da)) / 0x9 + - -parseInt(_0xf1c635(0x20a)) / 0xa; - if (_0x515b53 === _0x4c1b5b) break; - else _0x1fc80d["push"](_0x1fc80d["shift"]()); - } catch (_0x4d3906) { - _0x1fc80d["push"](_0x1fc80d["shift"]()); + const _0x119b60 = + parseInt(_0x4ef61a(0x9d)) / 0x1 + + (-parseInt(_0x4ef61a(0x86)) / 0x2) * + (-parseInt(_0x4ef61a(0x9c)) / 0x3) + + -parseInt(_0x4ef61a(0x96)) / 0x4 + + (parseInt(_0x4ef61a(0x8f)) / 0x5) * (-parseInt(_0x4ef61a(0x9a)) / 0x6) + + (-parseInt(_0x4ef61a(0x7b)) / 0x7) * + (-parseInt(_0x4ef61a(0xc4)) / 0x8) + + -parseInt(_0x4ef61a(0xae)) / 0x9 + + (-parseInt(_0x4ef61a(0xba)) / 0xa) * (-parseInt(_0x4ef61a(0xb4)) / 0xb); + if (_0x119b60 === _0x4ab326) break; + else _0x5333ec["push"](_0x5333ec["shift"]()); + } catch (_0x5de297) { + _0x5333ec["push"](_0x5333ec["shift"]()); } } -})(_0x4571, 0xdf267); +})(_0x4195, 0xce1ca); const { BufferJSON, WA_DEFAULT_EPHEMERAL, @@ -32,497 +31,384 @@ const { prepareWAMessageMedia, areJidsSameUser, getContentType, - } = require("@adiwajshing/baileys"), + } = require(_0x39e3e6(0x94)), fs = require("fs"), - util = require(_0x45fa5a(0x1bc)), - chalk = require(_0x45fa5a(0x1d0)), - { Configuration, OpenAIApi } = require(_0x45fa5a(0x209)); -let setting = require(_0x45fa5a(0x1b5)); -module[_0x45fa5a(0x1e0)] = yesbhautikai = async ( - _0x4def5a, - _0x20e63b, - _0x13d581, - _0x498324 + util = require("util"), + chalk = require(_0x39e3e6(0xd1)), + OpenAI = require("openai"); +let setting = require(_0x39e3e6(0xc6)); +const openai = new OpenAI({ apiKey: setting[_0x39e3e6(0xaa)] }); +module[_0x39e3e6(0xda)] = yesbhautikai = async ( + _0x34e142, + _0x5cbb01, + _0x15882e ) => { - const _0x496678 = _0x45fa5a; + const _0x56484c = _0x39e3e6; try { - var _0x4bd08d = - _0x20e63b[_0x496678(0x1cd)] === _0x496678(0x1b2) - ? _0x20e63b[_0x496678(0x201)]["conversation"] - : _0x20e63b["mtype"] == "imageMessage" - ? _0x20e63b[_0x496678(0x201)][_0x496678(0x1c6)][_0x496678(0x20d)] - : _0x20e63b[_0x496678(0x1cd)] == _0x496678(0x213) - ? _0x20e63b["message"][_0x496678(0x213)][_0x496678(0x20d)] - : _0x20e63b[_0x496678(0x1cd)] == "extendedTextMessage" - ? _0x20e63b[_0x496678(0x201)]["extendedTextMessage"]["text"] - : _0x20e63b[_0x496678(0x1cd)] == _0x496678(0x211) - ? _0x20e63b[_0x496678(0x201)]["buttonsResponseMessage"][ - _0x496678(0x20f) - ] - : _0x20e63b[_0x496678(0x1cd)] == _0x496678(0x1f1) - ? _0x20e63b[_0x496678(0x201)][_0x496678(0x1f1)][_0x496678(0x212)][ - _0x496678(0x1c7) - ] - : _0x20e63b["mtype"] == _0x496678(0x1fd) - ? _0x20e63b[_0x496678(0x201)][_0x496678(0x1fd)][_0x496678(0x1d6)] - : _0x20e63b["mtype"] === "messageContextInfo" - ? _0x20e63b[_0x496678(0x201)][_0x496678(0x211)]?.[ - "selectedButtonId" - ] || - _0x20e63b[_0x496678(0x201)][_0x496678(0x1f1)]?.[ - "singleSelectReply" - ][_0x496678(0x1c7)] || - _0x20e63b[_0x496678(0x204)] + var _0x512345 = + _0x5cbb01[_0x56484c(0x81)] === _0x56484c(0x8c) + ? _0x5cbb01["message"][_0x56484c(0x8c)] + : _0x5cbb01[_0x56484c(0x81)] == _0x56484c(0x7e) + ? _0x5cbb01[_0x56484c(0xcf)][_0x56484c(0x7e)][_0x56484c(0x99)] + : _0x5cbb01[_0x56484c(0x81)] == _0x56484c(0xa3) + ? _0x5cbb01[_0x56484c(0xcf)]["videoMessage"][_0x56484c(0x99)] + : _0x5cbb01[_0x56484c(0x81)] == _0x56484c(0xe1) + ? _0x5cbb01[_0x56484c(0xcf)][_0x56484c(0xe1)][_0x56484c(0xc0)] + : _0x5cbb01["mtype"] == _0x56484c(0xab) + ? _0x5cbb01[_0x56484c(0xcf)][_0x56484c(0xab)][_0x56484c(0xca)] + : _0x5cbb01[_0x56484c(0x81)] == "listResponseMessage" + ? _0x5cbb01[_0x56484c(0xcf)][_0x56484c(0xce)]["singleSelectReply"][ + _0x56484c(0xa9) + ] + : _0x5cbb01[_0x56484c(0x81)] == _0x56484c(0xd7) + ? _0x5cbb01["message"][_0x56484c(0xd7)]["selectedId"] + : _0x5cbb01[_0x56484c(0x81)] === _0x56484c(0xc8) + ? _0x5cbb01["message"][_0x56484c(0xab)]?.["selectedButtonId"] || + _0x5cbb01["message"][_0x56484c(0xce)]?.[_0x56484c(0x9b)][ + _0x56484c(0xa9) + ] || + _0x5cbb01["text"] + : ""; + if (_0x5cbb01["mtype"] === _0x56484c(0x7a)) return; + var _0x52ffca = + typeof _0x5cbb01[_0x56484c(0xc0)] == _0x56484c(0xa0) + ? _0x5cbb01[_0x56484c(0xc0)] : "", - _0x2e464d = - typeof _0x20e63b[_0x496678(0x204)] == "string" ? _0x20e63b["text"] : "", - _0x3baf40 = /^[\\/!#.]/gi[_0x496678(0x1be)](_0x4bd08d) - ? _0x4bd08d[_0x496678(0x1bf)](/^[\\/!#.]/gi) + _0x51fe27 = /^[\\/!#.]/gi["test"](_0x512345) + ? _0x512345[_0x56484c(0x8d)](/^[\\/!#.]/gi) : "/"; - const _0x1155fe = _0x4bd08d[_0x496678(0x1d5)](_0x3baf40), - _0x11fe0a = _0x4bd08d["replace"](_0x3baf40, "") - ["trim"]() - [_0x496678(0x1f2)](/ +/) - [_0x496678(0x1b1)]() - [_0x496678(0x1fb)](), - _0x392fcd = _0x4bd08d[_0x496678(0x1de)]() + const _0x4c9947 = _0x512345[_0x56484c(0xd6)](_0x51fe27), + _0x158081 = _0x512345["replace"](_0x51fe27, "") + [_0x56484c(0xe5)]() ["split"](/ +/) - [_0x496678(0x1c8)](0x1), - _0x35db57 = _0x20e63b["pushName"] || _0x496678(0x1ef), - _0x2c9173 = await _0x4def5a[_0x496678(0x208)](_0x4def5a["user"]["id"]), - _0xdd3e33 = _0x20e63b["sender"] == _0x2c9173 ? !![] : ![]; - let _0x5b8192 = (q = _0x392fcd[_0x496678(0x21c)]("\x20")); - const _0x4cbf8d = _0x2e464d[_0x496678(0x1de)]()[_0x496678(0x1f4)]( - _0x2e464d[_0x496678(0x1bb)]("\x20") + 0x1 + [_0x56484c(0xb5)]() + ["toLowerCase"](), + _0x5b303f = _0x512345[_0x56484c(0xe5)]() + [_0x56484c(0xcb)](/ +/) + [_0x56484c(0x82)](0x1), + _0x208872 = _0x5cbb01["pushName"] || "No\x20Name", + _0x388b86 = await _0x34e142[_0x56484c(0xd2)]( + _0x34e142[_0x56484c(0xd0)]["id"] + ), + _0x5654b1 = _0x5cbb01[_0x56484c(0xe3)] == _0x388b86 ? !![] : ![]; + let _0x3e83e8 = (q = _0x5b303f[_0x56484c(0xbd)]("\x20")); + const _0x114cc2 = _0x52ffca["trim"]()[_0x56484c(0xd4)]( + _0x52ffca["indexOf"]("\x20") + 0x1 ), - _0x1336db = _0x4cbf8d[_0x496678(0x1de)]()[_0x496678(0x1f4)]( - _0x4cbf8d["indexOf"]("\x20") + 0x1 + _0x1ad373 = _0x114cc2[_0x56484c(0xe5)]()[_0x56484c(0xd4)]( + _0x114cc2[_0x56484c(0x91)]("\x20") + 0x1 ), - _0xd5962b = _0x20e63b["chat"], - _0xe75a = _0x20e63b[_0x496678(0x1c4)], - _0x387c43 = _0x20e63b[_0x496678(0x1d4)], - _0x7cbed3 = _0x13d581[_0x496678(0x20e)][0x0], - _0x257384 = (_0xdaded8, _0x2071db) => { - const _0x2210db = _0x496678; - return !_0x2071db - ? chalk[_0x2210db(0x217)](_0xdaded8) - : chalk[_0x2210db(0x1ce)](_0x2071db)(_0xdaded8); + _0x5ba7d8 = _0x5cbb01["chat"], + _0x576d92 = _0x5cbb01[_0x56484c(0xbc)], + _0x2a4f69 = _0x5cbb01[_0x56484c(0xe3)], + _0x11c15a = _0x15882e["messages"][0x0], + _0x3d805d = (_0x436c29, _0x23af12) => { + const _0x46407c = _0x56484c; + return !_0x23af12 + ? chalk[_0x46407c(0xa1)](_0x436c29) + : chalk[_0x46407c(0xd5)](_0x23af12)(_0x436c29); }, - _0x137c36 = _0x20e63b[_0x496678(0x1ea)] - ? await _0x4def5a[_0x496678(0x1f3)](_0x20e63b["chat"])[ - _0x496678(0x1c9) - ]((_0x5f1c3a) => {}) + _0x331efc = _0x5cbb01[_0x56484c(0xdb)] + ? await _0x34e142[_0x56484c(0xbe)](_0x5cbb01[_0x56484c(0x98)])[ + _0x56484c(0xa7) + ]((_0x524897) => {}) : "", - _0x48fdc1 = _0x20e63b[_0x496678(0x1ea)] - ? _0x137c36[_0x496678(0x1f6)] - : ""; - let _0x4f4c1e = - _0x2e464d[_0x496678(0x1f5)] > 0x1e - ? q[_0x496678(0x1f4)](0x0, 0x1e) + _0x496678(0x1ca) - : _0x2e464d; - if (_0x1155fe && !_0x20e63b[_0x496678(0x1ea)]) - console[_0x496678(0x1ec)]( - chalk[_0x496678(0x1dd)](chalk[_0x496678(0x1e5)](_0x496678(0x1e6))), - _0x257384(_0x4f4c1e, _0x496678(0x1cb)), - chalk[_0x496678(0x214)](_0x496678(0x206)), - chalk[_0x496678(0x217)](_0x35db57), - chalk[_0x496678(0x20b)]( + _0x5bdaeb = _0x5cbb01[_0x56484c(0xdb)] ? _0x331efc[_0x56484c(0x93)] : ""; + let _0x1b1e36 = + _0x52ffca["length"] > 0x1e + ? q[_0x56484c(0xd4)](0x0, 0x1e) + _0x56484c(0xd8) + : _0x52ffca; + if (_0x4c9947 && !_0x5cbb01[_0x56484c(0xdb)]) + console[_0x56484c(0xad)]( + chalk[_0x56484c(0x95)](chalk[_0x56484c(0xc1)](_0x56484c(0x8a))), + _0x3d805d(_0x1b1e36, _0x56484c(0x92)), + chalk[_0x56484c(0x7c)]("From"), + chalk[_0x56484c(0xa1)](_0x208872), + chalk[_0x56484c(0xe0)]( "[\x20" + - _0x20e63b["sender"]["replace"](_0x496678(0x1ff), "") + + _0x5cbb01["sender"][_0x56484c(0x9e)](_0x56484c(0x9f), "") + "\x20]" ) ); else - _0x1155fe && - _0x20e63b["isGroup"] && - console[_0x496678(0x1ec)]( - chalk[_0x496678(0x1dd)](chalk[_0x496678(0x1e5)](_0x496678(0x1e6))), - _0x257384(_0x4f4c1e, _0x496678(0x1cb)), - chalk[_0x496678(0x214)](_0x496678(0x206)), - chalk["green"](_0x35db57), - chalk[_0x496678(0x20b)]( + _0x4c9947 && + _0x5cbb01["isGroup"] && + console[_0x56484c(0xad)]( + chalk["black"](chalk[_0x56484c(0xc1)](_0x56484c(0x8a))), + _0x3d805d(_0x1b1e36, "turquoise"), + chalk[_0x56484c(0x7c)](_0x56484c(0xb7)), + chalk[_0x56484c(0xa1)](_0x208872), + chalk[_0x56484c(0xe0)]( "[\x20" + - _0x20e63b[_0x496678(0x1d4)][_0x496678(0x1ee)]( - _0x496678(0x1ff), + _0x5cbb01[_0x56484c(0xe3)][_0x56484c(0x9e)]( + "@s.whatsapp.net", "" ) + "\x20]" ), - chalk[_0x496678(0x1dc)]("IN"), - chalk[_0x496678(0x217)](_0x48fdc1) + chalk[_0x56484c(0xb8)]("IN"), + chalk[_0x56484c(0xa1)](_0x5bdaeb) ); - if (_0x1155fe) - switch (_0x11fe0a) { - case _0x496678(0x205): + if (_0x4c9947) + switch (_0x158081) { + case _0x56484c(0xdc): case "menu": - _0x20e63b[_0x496678(0x1c4)]( - "*Whatsapp\x20Ai\x20Bot*\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a*(ChatGPT)*\x0aCmd:\x20" + - _0x3baf40 + - _0x496678(0x218) + - _0x3baf40 + - "img\x0aCreate\x20an\x20image\x20from\x20text\x0a\x0a*(Source\x20Code\x20Bot)*\x0aCmd:\x20" + - _0x3baf40 + - _0x496678(0x1e3) + case _0x56484c(0xd9): + case _0x56484c(0xa4): + _0x5cbb01["reply"]( + _0x56484c(0xbf) + + _0x51fe27 + + _0x56484c(0xd3) + + _0x51fe27 + + _0x56484c(0xa2) + + _0x51fe27 + + _0x56484c(0x83) ); break; case "ai": - case _0x496678(0x209): + case _0x56484c(0x8b): + case _0x56484c(0x80): + case "ask": try { - if (setting[_0x496678(0x216)] === _0x496678(0x1f9)) - return _0xe75a(_0x496678(0x1d9)); - if (!_0x5b8192) - return _0xe75a( - "Chat\x20with\x20AI.\x0a\x0aExample:\x0a" + - _0x3baf40 + - _0x11fe0a + - _0x496678(0x1d2) + if (setting[_0x56484c(0xaa)] === _0x56484c(0xa8)) + return _0x576d92(_0x56484c(0x8e)); + if (!_0x3e83e8) + return _0x576d92( + _0x56484c(0x7d) + + _0x51fe27 + + _0x158081 + + "\x20What\x20is\x20a\x20recession" ); - const _0x36cacf = new Configuration({ - apiKey: setting[_0x496678(0x216)], - }), - _0x1017e9 = new OpenAIApi(_0x36cacf), - _0x2c1fb6 = JSON[_0x496678(0x21a)](_0x5b8192), - _0x1330b1 = JSON[_0x496678(0x21a)](_0x35db57), - _0x120d45 = "\x0a", - _0x95b49e = "\x20", - _0x4a2a10 = _0x496678(0x1e4), - _0x5bba7c = JSON[_0x496678(0x1d3)](_0x1330b1), - _0x580301 = fs[_0x496678(0x1eb)]( - "yesbhautik/" + _0x5bba7c + _0x496678(0x1e2), - "a" - ), - _0x4af892 = JSON[_0x496678(0x1d3)](_0x2c1fb6), - _0x5da9a6 = "\x20"; - let _0x2b720d = fs[_0x496678(0x21b)]( - "yesbhautik/" + _0x5bba7c + ".txt" + const _0x9c56a8 = await openai["chat"][_0x56484c(0xb9)][ + _0x56484c(0x88) + ]({ + messages: [{ role: _0x56484c(0xd0), content: q }], + model: _0x56484c(0xc5), + }); + await _0x5cbb01[_0x56484c(0xbc)]( + _0x9c56a8[_0x56484c(0xb6)][0x0][_0x56484c(0xcf)][_0x56484c(0x97)] ); - const _0x34aba1 = _0x2b720d[_0x496678(0x1fe)](); - let _0x24db53 = _0x34aba1 + "\x0a\x0a" + _0x5b8192 + "\x20:"; - const _0x329fa1 = await _0x1017e9[_0x496678(0x1e1)]({ - model: "gpt-3.5-turbo", - messages: [{ role: _0x496678(0x1b8), content: _0x5b8192 }], - }), - _0x1485eb = _0x329fa1[_0x496678(0x1fe)](); - _0x20e63b[_0x496678(0x1c4)]( - "" + - _0x329fa1[_0x496678(0x1bd)]["choices"][0x0][_0x496678(0x201)][ - "content" - ] - ); - const _0x4a265e = JSON[_0x496678(0x21a)]( - "" + - _0x329fa1["data"][_0x496678(0x1b3)][0x0][_0x496678(0x201)][ - "content" - ] - ), - _0x959fd3 = JSON[_0x496678(0x1d3)](_0x4a265e), - _0x4eb776 = _0x959fd3[_0x496678(0x1ee)](/\r?\n|\r/g, ""); - fs[_0x496678(0x215)]( - "yesbhautik/convo.txt", - _0x120d45, - function (_0x57283d) { - if (_0x57283d) throw _0x57283d; - } - ), - fs[_0x496678(0x215)]( - _0x496678(0x1fc) + _0x5bba7c + ".txt", - _0x95b49e, - function (_0x37bdc8) { - const _0x1c4b1f = _0x496678; - fs[_0x1c4b1f(0x215)]( - _0x1c4b1f(0x1fc) + _0x5bba7c + _0x1c4b1f(0x1e2), - _0x120d45, - function (_0x1f79aa) { - const _0x197d4b = _0x1c4b1f; - fs["appendFile"]( - _0x197d4b(0x1fc) + _0x5bba7c + _0x197d4b(0x1e2), - _0x95b49e, - function (_0x30f90f) { - const _0x58b654 = _0x197d4b; - fs[_0x58b654(0x215)]( - _0x58b654(0x1fc) + _0x5bba7c + ".txt", - _0x4af892, - function (_0x5a88f3) { - const _0x35369e = _0x58b654; - fs[_0x35369e(0x215)]( - _0x35369e(0x1fc) + _0x5bba7c + _0x35369e(0x1e2), - _0x120d45, - function (_0x1d4c13) { - const _0x1d78cf = _0x35369e; - fs["appendFile"]( - _0x1d78cf(0x1fc) + - _0x5bba7c + - _0x1d78cf(0x1e2), - _0x120d45, - function (_0x4eba5f) { - const _0x2ea96a = _0x1d78cf; - fs[_0x2ea96a(0x215)]( - _0x2ea96a(0x1fc) + _0x5bba7c + ".txt", - _0x4eb776, - function (_0x3cfe24) { - fs["appendFile"]( - "yesbhautik/" + _0x5bba7c + ".txt", - _0x120d45, - function (_0x50a0e5) { - if (_0x50a0e5) throw _0x50a0e5; - } - ); - if (_0x3cfe24) throw _0x3cfe24; - } - ); - if (_0x4eba5f) throw _0x4eba5f; - } - ); - if (_0x1d4c13) throw _0x1d4c13; - } - ); - if (_0x5a88f3) throw _0x5a88f3; - } - ); - if (_0x30f90f) throw _0x30f90f; - } - ); - if (_0x1f79aa) throw erroror; - } - ); - if (_0x37bdc8) throw _0x37bdc8; - } - ); - } catch (_0x31978d) { - _0x31978d[_0x496678(0x1e9)] - ? (console[_0x496678(0x1ec)](_0x31978d["response"]["status"]), - console[_0x496678(0x1ec)]( - _0x31978d[_0x496678(0x1e9)][_0x496678(0x1bd)] + } catch (_0x510326) { + _0x510326[_0x56484c(0xde)] + ? (console[_0x56484c(0xad)]( + _0x510326[_0x56484c(0xde)][_0x56484c(0xc7)] ), - console[_0x496678(0x1ec)]( - _0x31978d[_0x496678(0x1e9)][_0x496678(0x1db)] + - "\x0a\x0a" + - _0x31978d["response"]["data"] - )) - : (console[_0x496678(0x1ec)](_0x31978d), - _0x20e63b[_0x496678(0x1c4)]( - _0x496678(0x1d8) + _0x31978d[_0x496678(0x201)] + console[_0x56484c(0xad)](_0x510326[_0x56484c(0xde)]["data"])) + : (console[_0x56484c(0xad)](_0x510326), + _0x5cbb01[_0x56484c(0xbc)]( + _0x56484c(0x85) + _0x510326[_0x56484c(0xcf)] )); } break; - case _0x496678(0x1d7): - case _0x496678(0x1ed): - case _0x496678(0x200): - case _0x496678(0x202): + case _0x56484c(0x7f): + case _0x56484c(0x89): + case _0x56484c(0xe4): + case _0x56484c(0xb3): + case "dall-e": + case _0x56484c(0xbb): try { - if (setting[_0x496678(0x216)] === _0x496678(0x1f9)) - return _0xe75a( - "Apikey\x20has\x20not\x20been\x20filled\x0a\x0aPlease\x20fill\x20in\x20the\x20apikey\x20first\x20in\x20the\x20key.json\x20file\x0a\x0aApikey\x20can\x20be\x20made\x20on\x20the\x20website:\x20https://beta.openai.com/account/api-keys" + if (setting[_0x56484c(0xaa)] === _0x56484c(0xa8)) + return _0x576d92(_0x56484c(0xdf)); + if (!_0x3e83e8) + return _0x576d92( + "Mcreate\x20an\x20image\x20from\x20AI.\x0a\x0aExample:\x0a" + + _0x51fe27 + + _0x158081 + + _0x56484c(0xcd) ); - if (!_0x5b8192) - return _0xe75a( - _0x496678(0x20c) + _0x3baf40 + _0x11fe0a + _0x496678(0x1c1) - ); - const _0x4e9018 = new Configuration({ - apiKey: setting[_0x496678(0x216)], - }), - _0xd36901 = new OpenAIApi(_0x4e9018), - _0x38ecff = await _0xd36901[_0x496678(0x1e8)]({ - prompt: _0x5b8192, - n: 0x1, - size: _0x496678(0x1cc), - }); - _0x4def5a[_0x496678(0x219)]( - _0xd5962b, - _0x38ecff["data"][_0x496678(0x1bd)][0x0][_0x496678(0x21e)], - _0x5b8192, - _0x7cbed3 + const _0x11cf44 = await openai[_0x56484c(0xb3)][_0x56484c(0x87)]({ + model: _0x56484c(0x84), + prompt: q, + n: 0x1, + size: "512x512", + }); + _0x34e142["sendImage"]( + _0x5ba7d8, + _0x11cf44[_0x56484c(0xc9)][0x0]["url"], + _0x3e83e8, + _0x11c15a ); - } catch (_0x3d791c) { - _0x3d791c[_0x496678(0x1e9)] - ? (console[_0x496678(0x1ec)]( - _0x3d791c["response"][_0x496678(0x1db)] - ), - console[_0x496678(0x1ec)]( - _0x3d791c[_0x496678(0x1e9)][_0x496678(0x1bd)] + } catch (_0x103010) { + _0x103010["response"] + ? (console["log"](_0x103010[_0x56484c(0xde)][_0x56484c(0xc7)]), + console[_0x56484c(0xad)]( + _0x103010[_0x56484c(0xde)][_0x56484c(0xc9)] ), - console[_0x496678(0x1ec)]( - _0x3d791c[_0x496678(0x1e9)]["status"] + + console[_0x56484c(0xad)]( + _0x103010[_0x56484c(0xde)][_0x56484c(0xc7)] + "\x0a\x0a" + - _0x3d791c["response"][_0x496678(0x1bd)] + _0x103010[_0x56484c(0xde)][_0x56484c(0xc9)] )) - : (console["log"](_0x3d791c), - _0x20e63b[_0x496678(0x1c4)]( - _0x496678(0x1d8) + _0x3d791c[_0x496678(0x201)] + : (console[_0x56484c(0xad)](_0x103010), + _0x5cbb01["reply"]( + _0x56484c(0x85) + _0x103010[_0x56484c(0xcf)] )); } break; case "sc": - case "script": - case _0x496678(0x207): - _0x20e63b[_0x496678(0x1c4)](_0x496678(0x210)); + case _0x56484c(0xb0): + case _0x56484c(0xac): + _0x5cbb01[_0x56484c(0xbc)](_0x56484c(0xa6)); break; default: { - if (_0x1155fe && _0x2e464d[_0x496678(0x1fb)]() != undefined) { - if (_0x20e63b[_0x496678(0x1f8)][_0x496678(0x1d1)](_0x496678(0x1b6))) - return; - if (_0x20e63b["isBaileys"]) return; - if (!_0x2e464d["toLowerCase"]()) return; - if (_0x4f4c1e || (_0x1155fe && !_0x20e63b[_0x496678(0x1ea)])) - console[_0x496678(0x1ec)]( - chalk[_0x496678(0x1dd)]( - chalk[_0x496678(0x1e7)](_0x496678(0x1b4)) - ), - _0x257384(_0x496678(0x1ba), "turquoise"), - _0x257384("" + _0x3baf40 + _0x11fe0a, _0x496678(0x1cb)), - _0x257384("not\x20available", _0x496678(0x1cb)) + if (_0x4c9947 && _0x52ffca[_0x56484c(0xdd)]() != undefined) { + if (_0x5cbb01[_0x56484c(0x98)]["endsWith"](_0x56484c(0xcc))) return; + if (_0x5cbb01["isBaileys"]) return; + if (!_0x52ffca[_0x56484c(0xdd)]()) return; + if (_0x1b1e36 || (_0x4c9947 && !_0x5cbb01[_0x56484c(0xdb)])) + console[_0x56484c(0xad)]( + chalk["black"](chalk[_0x56484c(0xb1)](_0x56484c(0xa5))), + _0x3d805d(_0x56484c(0xc3), _0x56484c(0x92)), + _0x3d805d("" + _0x51fe27 + _0x158081, _0x56484c(0x92)), + _0x3d805d(_0x56484c(0xe2), "turquoise") ); else - (_0x4f4c1e || (_0x1155fe && _0x20e63b[_0x496678(0x1ea)])) && - console[_0x496678(0x1ec)]( - chalk["black"](chalk[_0x496678(0x1e7)](_0x496678(0x1b4))), - _0x257384(_0x496678(0x1ba), _0x496678(0x1cb)), - _0x257384("" + _0x3baf40 + _0x11fe0a, _0x496678(0x1cb)), - _0x257384(_0x496678(0x1b9), "turquoise") + (_0x1b1e36 || (_0x4c9947 && _0x5cbb01[_0x56484c(0xdb)])) && + console["log"]( + chalk[_0x56484c(0x95)](chalk["bgRed"](_0x56484c(0xa5))), + _0x3d805d(_0x56484c(0xc3), "turquoise"), + _0x3d805d("" + _0x51fe27 + _0x158081, _0x56484c(0x92)), + _0x3d805d(_0x56484c(0xe2), _0x56484c(0x92)) ); } } } - } catch (_0x42d176) { - _0x20e63b[_0x496678(0x1c4)](util[_0x496678(0x1cf)](_0x42d176)); + } catch (_0x26c12e) { + _0x5cbb01[_0x56484c(0xbc)](util["format"](_0x26c12e)); } }; -function _0x42a0(_0x22560b, _0x3920b9) { - const _0x4571d2 = _0x4571(); +function _0x2987(_0x1b212f, _0x1b4209) { + const _0x4195ae = _0x4195(); return ( - (_0x42a0 = function (_0x42a008, _0x408134) { - _0x42a008 = _0x42a008 - 0x1b1; - let _0x1516ed = _0x4571d2[_0x42a008]; - return _0x1516ed; + (_0x2987 = function (_0x2987da, _0x112b9d) { + _0x2987da = _0x2987da - 0x7a; + let _0x5b6948 = _0x4195ae[_0x2987da]; + return _0x5b6948; }), - _0x42a0(_0x22560b, _0x3920b9) + _0x2987(_0x1b212f, _0x1b4209) ); } let file = require["resolve"](__filename); -fs["watchFile"](file, () => { - const _0x511896 = _0x45fa5a; - fs[_0x511896(0x1f7)](file), - console[_0x511896(0x1ec)]( - chalk[_0x511896(0x1b7)](_0x511896(0x1c2) + __filename) - ), - delete require["cache"][file], - require(file); -}); -function _0x4571() { - const _0x21f685 = [ - "text", - "help", - "From", - "scbot", - "decodeJid", - "openai", - "1609270mtsDlP", - "yellow", - "Mcreate\x20an\x20image\x20from\x20AI.\x0a\x0aExample:\x0a", - "caption", - "messages", - "selectedButtonId", - "This\x20bot\x20uses\x20a\x20script\x20from\x20https://github.com/yesbhautik/Whatsapp-Ai-BOT", - "buttonsResponseMessage", - "singleSelectReply", - "videoMessage", - "magenta", - "appendFile", - "keyopenai", - "green", - "ai\x20\x0aAsk\x20anything\x20to\x20AI.\x0a\x0a*(DALL-E)*\x0aCmd:\x20", - "sendImage", - "stringify", - "readFileSync", - "join", - "3233280cpjXKV", - "url", +function _0x4195() { + const _0x56340b = [ + "images", + "2585eThCnN", "shift", - "conversation", "choices", - "[\x20ERROR\x20]", - "./key.json", - "broadcast", - "redBright", - "user", - "not\x20available", + "From", + "blueBright", + "completions", + "44860fyTTHC", + "dalle", + "reply", + "join", + "groupMetadata", + "*Whatsapp\x20Ai\x20Bot*\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a*(ChatGPT)*\x0aCmd:\x20", + "text", + "bgWhite", + "unwatchFile", "command", - "indexOf", - "util", + "8BUyGEz", + "gpt-3.5-turbo", + "./key.json", + "status", + "messageContextInfo", "data", - "test", - "match", - "982509HTjiyV", + "selectedButtonId", + "split", + "broadcast", "\x20Wooden\x20house\x20on\x20snow\x20mountain", - "Update\x20", - "21948iuHDOf", - "reply", - "20185yDIZaV", - "imageMessage", - "selectedRowId", - "slice", - "catch", - "...", - "turquoise", - "512x512", - "mtype", - "keyword", - "format", + "listResponseMessage", + "message", + "user", "chalk", - "endsWith", - "\x20What\x20is\x20a\x20recession", - "parse", - "sender", + "decodeJid", + "ai\x20\x0aAsk\x20anything\x20to\x20AI.\x0a\x0a*(DALL-E)*\x0aCmd:\x20", + "substring", + "keyword", "startsWith", - "selectedId", - "img", - "Sorry,\x20there\x20seems\x20to\x20be\x20an\x20error\x20:", - "Apikey\x20has\x20not\x20been\x20filled\x0a\x0aPlease\x20fill\x20in\x20the\x20apikey\x20first\x20in\x20the\x20key.json\x20file\x0a\x0aThe\x20api\x20key\x20can\x20be\x20generated\x20on\x20the\x20website:\x20https://beta.openai.com/account/api-keys", - "1190034qDvKUr", - "status", - "blueBright", - "black", - "trim", - "107skuuOu", + "templateButtonReplyMessage", + "...", + "start", "exports", - "createChatCompletion", - ".txt", - "sc\x0aDisplays\x20the\x20source\x20code\x20of\x20the\x20bot\x20used", - "Human\x20:", - "bgWhite", - "[\x20LOGS\x20]", - "bgRed", - "createImage", - "response", "isGroup", - "openSync", - "log", + "help", + "toLowerCase", + "response", + "Apikey\x20has\x20not\x20been\x20filled\x0a\x0aPlease\x20fill\x20in\x20the\x20apikey\x20first\x20in\x20the\x20key.json\x20file\x0a\x0aApikey\x20can\x20be\x20made\x20on\x20the\x20website:\x20https://beta.openai.com/account/api-keys", + "yellow", + "extendedTextMessage", + "not\x20available", + "sender", + "image", + "trim", + "viewOnceMessageV2", + "10797493pzkLpt", + "magenta", + "Chat\x20with\x20AI.\x0a\x0aExample:\x0a", + "imageMessage", + "img", + "chatgpt", + "mtype", + "slice", + "sc\x0aDisplays\x20the\x20source\x20code\x20of\x20the\x20bot\x20used", + "dall-e-2", + "Sorry,\x20there\x20seems\x20to\x20be\x20an\x20error\x20:", + "2MxaoUW", + "generate", + "create", "ai-img", - "replace", - "No\x20Name", - "436USjsQS", - "listResponseMessage", - "split", - "groupMetadata", - "substring", - "length", + "[\x20LOGS\x20]", + "openai", + "conversation", + "match", + "Apikey\x20has\x20not\x20been\x20filled\x0a\x0aPlease\x20fill\x20in\x20the\x20apikey\x20first\x20in\x20the\x20key.json\x20file\x0a\x0aThe\x20api\x20key\x20can\x20be\x20generated\x20on\x20the\x20website:\x20https://beta.openai.com/account/api-keys", + "7264615lEOnQU", + "watchFile", + "indexOf", + "turquoise", "subject", - "unwatchFile", + "@whiskeysockets/baileys", + "black", + "3001060tHBjGT", + "content", "chat", - "ISI_APIKEY_OPENAI_DISINI", - "1607578ZbXzoM", - "toLowerCase", - "yesbhautik/", - "templateButtonReplyMessage", - "toString", + "caption", + "6oxPgxi", + "singleSelectReply", + "3242082SXqfbA", + "48932wGUKuB", + "replace", "@s.whatsapp.net", - "image", - "message", - "images", - "16xMkVWA", + "string", + "green", + "img\x0aCreate\x20an\x20image\x20from\x20text\x0a\x0a*(Source\x20Code\x20Bot)*\x0aCmd:\x20", + "videoMessage", + "info", + "[\x20ERROR\x20]", + "This\x20bot\x20uses\x20a\x20script\x20from\x20https://github.com/yesbhautik/Whatsapp-Ai-BOT", + "catch", + "ISI_APIKEY_OPENAI_DISINI", + "selectedRowId", + "keyopenai", + "buttonsResponseMessage", + "scbot", + "log", + "6110217QDuKKY", + "redBright", + "script", + "bgRed", + "cache", ]; - _0x4571 = function () { - return _0x21f685; + _0x4195 = function () { + return _0x56340b; }; - return _0x4571(); -} \ No newline at end of file + return _0x4195(); +} +fs[_0x39e3e6(0x90)](file, () => { + const _0x1476e2 = _0x39e3e6; + fs[_0x1476e2(0xc2)](file), + console[_0x1476e2(0xad)](chalk[_0x1476e2(0xaf)]("Update\x20" + __filename)), + delete require[_0x1476e2(0xb2)][file], + require(file); +});