forked from salmanytofficial/XLICON-V2-MD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GURU-Bing.js
1 lines (1 loc) · 3.29 KB
/
GURU-Bing.js
1
const _0x41aff2=_0x2490;(function(_0x17406c,_0x5b26ba){const _0x566e1f=_0x2490,_0x5c0c81=_0x17406c();while(!![]){try{const _0x45f945=parseInt(_0x566e1f(0xeb))/0x1*(parseInt(_0x566e1f(0xe3))/0x2)+-parseInt(_0x566e1f(0xfd))/0x3*(-parseInt(_0x566e1f(0xfb))/0x4)+-parseInt(_0x566e1f(0xec))/0x5*(-parseInt(_0x566e1f(0xf2))/0x6)+parseInt(_0x566e1f(0xed))/0x7*(parseInt(_0x566e1f(0xe5))/0x8)+-parseInt(_0x566e1f(0xf5))/0x9+-parseInt(_0x566e1f(0x106))/0xa*(-parseInt(_0x566e1f(0xfa))/0xb)+-parseInt(_0x566e1f(0xe8))/0xc;if(_0x45f945===_0x5b26ba)break;else _0x5c0c81['push'](_0x5c0c81['shift']());}catch(_0x3de7b1){_0x5c0c81['push'](_0x5c0c81['shift']());}}}(_0x3a5c,0xd2203));import _0xdc1d7f from'node-fetch';let handler=async(_0x15d4c8,{conn:_0x1013c6,args:_0x1a5fed,usedPrefix:_0xd3a9dd,command:_0x4f76ca,text:_0x10cf96})=>{const _0x39c225=_0x2490,_0x4ea5c1={'AgpSH':_0x39c225(0xf9),'LblMr':function(_0x5c93e7,_0x4b550c){return _0x5c93e7(_0x4b550c);},'DrpsB':'No\x20valid\x20JSON\x20response\x20from\x20Bing\x20'};if(!_0x10cf96&&!(_0x15d4c8[_0x39c225(0xf4)]&&_0x15d4c8[_0x39c225(0xf4)][_0x39c225(0xee)]))throw'Please\x20provide\x20some\x20text\x20or\x20quote\x20a\x20message\x20to\x20get\x20a\x20response.';!_0x10cf96&&_0x15d4c8[_0x39c225(0xf4)]&&_0x15d4c8[_0x39c225(0xf4)][_0x39c225(0xee)]&&(_0x10cf96=_0x15d4c8['quoted'][_0x39c225(0xee)]);_0x15d4c8[_0x39c225(0xff)](_0x4ea5c1[_0x39c225(0xea)]),_0x15d4c8['react']('🤔');const _0x18e5b9=_0x4ea5c1[_0x39c225(0xf6)](encodeURIComponent,_0x10cf96);let _0x902291=await _0x4ea5c1[_0x39c225(0xf6)](Bing,_0x18e5b9);if(!_0x902291)throw new Error(_0x4ea5c1[_0x39c225(0xf1)]);await _0x1013c6[_0x39c225(0xff)](_0x15d4c8[_0x39c225(0x104)],_0x902291,_0x15d4c8);};function _0x2490(_0x3de1ad,_0x46bd4f){const _0x3a5c4d=_0x3a5c();return _0x2490=function(_0x24907b,_0x1537f0){_0x24907b=_0x24907b-0xe1;let _0x167307=_0x3a5c4d[_0x24907b];return _0x167307;},_0x2490(_0x3de1ad,_0x46bd4f);}handler['help']=[_0x41aff2(0xe4)],handler[_0x41aff2(0xe7)]=['AI'],handler[_0x41aff2(0xef)]=/^(bing)$/i;export default handler;function _0x3a5c(){const _0x52cbe0=['rPqWb','964870SXXJHb','POST','wTiLY','298kvIdQp','bing','75808MHvLpa','sseCS','tags','34580076yEaiVp','system','AgpSH','6607aTUqaY','4682035YwUejm','1127rnFKgh','text','command','https://copilot.github1s.tk/v1/chat/completions','DrpsB','6EtTStg','Creative','quoted','12188214KWLteA','LblMr','user','dummy','Waiting\x20Response\x20from\x20Guru\x20Bot\x20server...','77nXEdni','354436JVuREI','content','33YQoTtz','application/json','reply','lVgli','You\x20are\x20an\x20helpful\x20assistant.','stringify','message','chat'];_0x3a5c=function(){return _0x52cbe0;};return _0x3a5c();}async function Bing(_0x494d12){const _0x6a60db=_0x41aff2,_0x16f4ca={'ZBJmj':_0x6a60db(0xf0),'bOYZd':_0x6a60db(0xe1),'wTiLY':_0x6a60db(0xf8),'sseCS':_0x6a60db(0xfe),'rPqWb':_0x6a60db(0xf3),'lVgli':_0x6a60db(0xe9),'uqaRC':_0x6a60db(0x101)};let _0x4a9f6b=await(await _0xdc1d7f(_0x16f4ca['ZBJmj'],{'method':_0x16f4ca['bOYZd'],'headers':{'Authorization':_0x16f4ca[_0x6a60db(0xe2)],'Content-Type':_0x16f4ca[_0x6a60db(0xe6)]},'body':JSON[_0x6a60db(0x102)]({'model':_0x16f4ca[_0x6a60db(0x105)],'max_tokens':0x64,'messages':[{'role':_0x16f4ca[_0x6a60db(0x100)],'content':_0x16f4ca['uqaRC']},{'role':_0x6a60db(0xf7),'content':_0x494d12}]})}))['json']();return _0x4a9f6b['choices'][0x0][_0x6a60db(0x103)][_0x6a60db(0xfc)];}