alexa-bot-api
Advanced tools
Comparing version 2.0.1 to 2.0.2
{ | ||
"name": "alexa-bot-api", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "A very lightweight and simple artificial intelligence with multi language support", | ||
@@ -10,4 +10,3 @@ "main": "src/index.js", | ||
"dependencies": { | ||
"axios": "^0.21.1", | ||
"md5": "^2.3.0" | ||
"node-fetch": "^2.6.1" | ||
}, | ||
@@ -26,3 +25,4 @@ "license": "MIT", | ||
"author": { | ||
"name": "nithishpravin" | ||
"name": "nithishpravin", | ||
"age": "16" | ||
}, | ||
@@ -29,0 +29,0 @@ "engines": { |
326
src/ai.js
@@ -1,318 +0,8 @@ | ||
var _0x6122 = [ | ||
"\x31\x33\x31\x39\x31\x31\x4B\x4F\x54\x56\x70\x63", | ||
"\x65\x6E\x67\x6C\x69\x73\x68", | ||
"\x68\x74\x74\x70\x73\x3A\x2F\x2F\x77\x77\x77\x2E\x63\x6C\x65\x76\x65\x72\x62\x6F\x74\x2E\x63\x6F\x6D\x2F", | ||
"\x36\x37\x32\x30\x35\x39\x44\x49\x50\x64\x61\x70", | ||
"\x32\x32\x35\x39\x38\x37\x33\x79\x79\x4D\x7A\x68\x47", | ||
"\x65\x78\x70\x6F\x72\x74\x73", | ||
"\x67\x65\x74", | ||
"\x32\x38\x37\x31\x33\x30\x53\x70\x48\x6A\x71\x41", | ||
"\x31\x30\x49\x52\x76\x52\x52\x6F", | ||
"\x34\x38\x37\x38\x39\x30\x7A\x6D\x52\x4E\x6B\x73", | ||
"\x73\x75\x62\x73\x74\x72\x69\x6E\x67", | ||
"\x32\x35\x56\x59\x48\x78\x4F\x4A", | ||
"\x37\x36\x36\x33\x37\x61\x46\x59\x6B\x72\x66", | ||
"\x35\x35\x35\x35\x30\x36\x64\x4F\x68\x58\x67\x6E", | ||
"\x63\x62\x6F\x75\x74\x70\x75\x74", | ||
"\x31\x33\x5A\x73\x6F\x78\x4C\x41", | ||
"\x68\x74\x74\x70\x73\x3A\x2F\x2F\x77\x77\x77\x2E\x63\x6C\x65\x76\x65\x72\x62\x6F\x74\x2E\x63\x6F\x6D\x2F\x77\x65\x62\x73\x65\x72\x76\x69\x63\x65\x6D\x69\x6E\x3F\x75\x63\x3D\x55\x73\x65\x4F\x66\x66\x69\x63\x69\x61\x6C\x43\x6C\x65\x76\x65\x72\x62\x6F\x74\x41\x50\x49", | ||
"\x68\x65\x61\x64\x65\x72\x73", | ||
"\x35\x32\x34\x32\x31\x34\x6F\x42\x44\x66\x59\x6B", | ||
"\x26\x63\x62\x5F\x73\x65\x74\x74\x69\x6E\x67\x73\x5F\x73\x63\x72\x69\x70\x74\x69\x6E\x67\x3D\x6E\x6F\x26\x69\x73\x6C\x65\x61\x72\x6E\x69\x6E\x67\x3D\x31\x26\x69\x63\x6F\x67\x6E\x6F\x69\x64\x3D\x77\x73\x66\x26\x63\x62\x5F\x73\x65\x74\x74\x69\x6E\x67\x73\x5F\x6C\x61\x6E\x67\x75\x61\x67\x65\x3D", | ||
"\x74\x65\x78\x74\x2F\x70\x6C\x61\x69\x6E", | ||
"\x33\x37\x30\x35\x34\x38\x54\x73\x4E\x44\x4F\x76", | ||
"\x31\x67\x44\x7A\x4D\x59\x46", | ||
"\x70\x6F\x73\x74", | ||
"\x32\x55\x66\x69\x51\x53\x4A", | ||
"\x31\x5A\x4C\x48\x76\x5A\x51", | ||
"\x36\x36\x35\x35\x37\x32\x6F\x52\x51\x5A\x68\x59", | ||
"\x32\x34\x35\x36\x36\x6D\x42\x69\x4C\x54\x75", | ||
"\x72\x65\x70\x6C\x61\x63\x65", | ||
"\x31\x58\x75\x74\x4F\x4D\x4D", | ||
"\x6D\x64\x35", | ||
"\x73\x68\x69\x66\x74", | ||
"\x32\x30\x36\x36\x38\x34\x34\x67\x4D\x42\x50\x42\x64", | ||
"\x4D\x6F\x7A\x69\x6C\x6C\x61\x2F\x35\x2E\x30", | ||
"\x69\x6E\x63\x6C\x75\x64\x65\x73", | ||
"\x70\x75\x73\x68", | ||
"\x31\x31\x69\x62\x6F\x6F\x6D\x66", | ||
"\x31\x73\x4C\x56\x4D\x6C\x4C", | ||
"\x31\x30\x35\x35\x31\x38\x69\x42\x52\x6A\x42\x69", | ||
"\x26\x69\x63\x6F\x67\x6E\x6F\x63\x68\x65\x63\x6B\x3D", | ||
"\x32\x74\x4D\x55\x73\x47\x69", | ||
"\x32\x32\x39\x37\x33\x6B\x55\x44\x7A\x4F\x42", | ||
"\x61\x78\x69\x6F\x73", | ||
"\x73\x65\x74\x2D\x63\x6F\x6F\x6B\x69\x65", | ||
"\x25\x75", | ||
"\x73\x74\x69\x6D\x75\x6C\x75\x73\x3D", | ||
"\x7C", | ||
]; | ||
var _0x4b4f = [ | ||
_0x6122[0], | ||
_0x6122[1], | ||
_0x6122[2], | ||
_0x6122[3], | ||
_0x6122[4], | ||
_0x6122[5], | ||
_0x6122[6], | ||
_0x6122[7], | ||
_0x6122[8], | ||
_0x6122[9], | ||
_0x6122[10], | ||
_0x6122[11], | ||
_0x6122[12], | ||
_0x6122[13], | ||
_0x6122[14], | ||
_0x6122[15], | ||
_0x6122[16], | ||
_0x6122[17], | ||
_0x6122[18], | ||
_0x6122[19], | ||
_0x6122[20], | ||
_0x6122[21], | ||
_0x6122[22], | ||
_0x6122[23], | ||
_0x6122[24], | ||
_0x6122[25], | ||
_0x6122[26], | ||
_0x6122[27], | ||
_0x6122[28], | ||
_0x6122[29], | ||
_0x6122[30], | ||
_0x6122[31], | ||
_0x6122[32], | ||
_0x6122[33], | ||
_0x6122[34], | ||
], | ||
_0x326127 = _0x31d2; | ||
!(function (_0xec21x3, _0xec21x4) { | ||
for (var _0xec21x5 = _0x31d2; ; ) { | ||
try { | ||
if ( | ||
431177 === | ||
parseInt(_0xec21x5(117)) * parseInt(_0xec21x5(108)) + | ||
parseInt(_0xec21x5(123)) + | ||
parseInt(_0xec21x5(122)) * -parseInt(_0xec21x5(141)) + | ||
parseInt(_0xec21x5(127)) + | ||
-parseInt(_0xec21x5(138)) * -parseInt(_0xec21x5(135)) + | ||
parseInt(_0xec21x5(121)) + | ||
-parseInt(_0xec21x5(139)) * parseInt(_0xec21x5(111)) | ||
) { | ||
break; | ||
} | ||
_0xec21x3[_0x6122[35]](_0xec21x3[_0x6122[31]]()); | ||
} catch (_0xec21x4) { | ||
_0xec21x3[_0x6122[35]](_0xec21x3[_0x6122[31]]()); | ||
} | ||
} | ||
})(_0x4b4f); | ||
var _0x2280 = [ | ||
_0x6122[36], | ||
_0x326127(140), | ||
_0x6122[37], | ||
_0x326127(126), | ||
_0x326127(109), | ||
_0x6122[38], | ||
_0x326127(136), | ||
_0x326127(114), | ||
_0x6122[39], | ||
_0x326127(107), | ||
_0x326127(129), | ||
_0x326127(124), | ||
_0x326127(131), | ||
_0x326127(118), | ||
_0x6122[40], | ||
_0x326127(115), | ||
_0x326127(113), | ||
_0x326127(125), | ||
_0x326127(137), | ||
_0x326127(116), | ||
_0x6122[41], | ||
_0x326127(112), | ||
_0x326127(133), | ||
_0x326127(119), | ||
_0x326127(132), | ||
_0x326127(110), | ||
_0x6122[35], | ||
_0x6122[42], | ||
_0x6122[43], | ||
_0x326127(120), | ||
_0x6122[44], | ||
_0x6122[45], | ||
_0x6122[46], | ||
_0x326127(130), | ||
_0x326127(134), | ||
_0x326127(128), | ||
], | ||
_0xc7ab = [ | ||
_0x2280[0], | ||
_0x2280[1], | ||
_0x2280[2], | ||
_0x2280[3], | ||
_0x2280[4], | ||
_0x2280[5], | ||
_0x2280[6], | ||
_0x2280[7], | ||
_0x2280[8], | ||
_0x2280[9], | ||
_0x2280[10], | ||
_0x2280[11], | ||
_0x2280[12], | ||
_0x2280[13], | ||
_0x2280[14], | ||
_0x2280[15], | ||
_0x2280[16], | ||
_0x2280[17], | ||
_0x2280[18], | ||
_0x2280[19], | ||
_0x2280[20], | ||
_0x2280[21], | ||
_0x2280[22], | ||
_0x2280[23], | ||
_0x2280[24], | ||
_0x2280[25], | ||
_0x2280[26], | ||
_0x2280[27], | ||
_0x2280[28], | ||
_0x2280[29], | ||
_0x2280[30], | ||
_0x2280[31], | ||
_0x2280[32], | ||
_0x2280[33], | ||
_0x2280[34], | ||
_0x2280[35], | ||
], | ||
_0x1411 = [ | ||
_0xc7ab[0], | ||
_0xc7ab[1], | ||
_0xc7ab[2], | ||
_0xc7ab[3], | ||
_0xc7ab[4], | ||
_0xc7ab[5], | ||
_0xc7ab[6], | ||
_0xc7ab[7], | ||
_0xc7ab[8], | ||
_0xc7ab[9], | ||
_0xc7ab[10], | ||
_0xc7ab[11], | ||
_0xc7ab[12], | ||
_0xc7ab[13], | ||
_0xc7ab[14], | ||
_0xc7ab[15], | ||
_0xc7ab[16], | ||
_0xc7ab[17], | ||
_0xc7ab[18], | ||
_0xc7ab[19], | ||
_0xc7ab[20], | ||
_0xc7ab[21], | ||
_0xc7ab[22], | ||
_0xc7ab[23], | ||
_0xc7ab[24], | ||
], | ||
_0xf606ee = _0x2fa5; | ||
function _0x31d2(_0xec21x3, _0xec21x4) { | ||
return _0x4b4f[(_0xec21x3 -= 107)]; | ||
} | ||
function _0x2fa5(_0xec21x3, _0xec21x4) { | ||
return _0x1411[(_0xec21x3 -= 410)]; | ||
} | ||
!(function (_0xec21x3, _0xec21x4) { | ||
for (var _0xec21x5 = _0x2fa5; ; ) { | ||
try { | ||
if ( | ||
780138 == | ||
-parseInt(_0xec21x5(413)) * parseInt(_0xec21x5(433)) + | ||
-parseInt(_0xec21x5(423)) * -parseInt(_0xec21x5(426)) + | ||
parseInt(_0xec21x5(411)) * parseInt(_0xec21x5(416)) + | ||
-parseInt(_0xec21x5(412)) * parseInt(_0xec21x5(432)) + | ||
parseInt(_0xec21x5(430)) * parseInt(_0xec21x5(420)) + | ||
parseInt(_0xec21x5(434)) * parseInt(_0xec21x5(431)) - | ||
parseInt(_0xec21x5(419)) | ||
) { | ||
break; | ||
} | ||
_0xec21x3[_0xc7ab[26]](_0xec21x3[_0xc7ab[25]]()); | ||
} catch (_0xec21x4) { | ||
_0xec21x3[_0xc7ab[26]](_0xec21x3[_0xc7ab[25]]()); | ||
} | ||
} | ||
})(_0x1411); | ||
var _0x4d6f = [ | ||
_0xf606ee(410), | ||
_0xc7ab[27], | ||
_0xf606ee(421), | ||
_0xc7ab[28], | ||
_0xf606ee(418), | ||
_0xf606ee(425), | ||
_0xf606ee(427), | ||
_0xc7ab[29], | ||
_0xc7ab[30], | ||
_0xf606ee(422), | ||
_0xc7ab[31], | ||
_0xc7ab[32], | ||
_0xf606ee(415), | ||
_0xf606ee(428), | ||
_0xf606ee(414), | ||
_0xf606ee(417), | ||
_0xc7ab[33], | ||
_0xc7ab[34], | ||
_0xf606ee(424), | ||
_0xc7ab[35], | ||
_0xf606ee(429), | ||
], | ||
_0x3021 = [ | ||
_0x4d6f[0], | ||
_0x4d6f[1], | ||
_0x4d6f[2], | ||
_0x4d6f[3], | ||
_0x4d6f[4], | ||
_0x4d6f[5], | ||
_0x4d6f[6], | ||
_0x4d6f[7], | ||
_0x4d6f[8], | ||
_0x4d6f[9], | ||
_0x4d6f[10], | ||
_0x4d6f[11], | ||
_0x4d6f[12], | ||
_0x4d6f[13], | ||
_0x4d6f[14], | ||
_0x4d6f[15], | ||
_0x4d6f[16], | ||
_0x4d6f[17], | ||
_0x4d6f[18], | ||
_0x4d6f[19], | ||
_0x4d6f[20], | ||
]; | ||
const md5 = require(_0x3021[0]), | ||
axios = require(_0x3021[1]); | ||
async function fetch(_0xec21x3, _0xec21x4) { | ||
var _0xec21x5, | ||
_0xec21x11, | ||
_0xec21x12 = _0x3021[2]; | ||
_0xec21x12 && (_0xec21x12 = _0xec21x4), | ||
(null == _0xec21x5 || null == _0xec21x5) && | ||
(_0xec21x5 = ( | ||
await axios[_0x3021[7]](_0x3021[5], { | ||
headers: { "\x55\x73\x65\x72\x2D\x41\x67\x65\x6E\x74": _0x3021[6] }, | ||
}) | ||
)[_0x3021[4]][_0x3021[3]]), | ||
escape(_0xec21x3)[_0x3021[9]](_0x3021[8]), | ||
(_0xec21x11 = | ||
_0x3021[10] + | ||
escape(escape(_0xec21x3))[_0x3021[12]](/%u/g, _0x3021[11]) + | ||
_0x3021[13] + | ||
_0xec21x12 + | ||
_0x3021[14]); | ||
const _0xec21x13 = md5(_0xec21x11[_0x3021[15]](7, 33)); | ||
_0xec21x11 += _0xec21x13; | ||
const _0xec21x14 = await axios[_0x3021[18]](_0x3021[16], _0xec21x11, { | ||
headers: { | ||
Cookie: _0xec21x5, | ||
"\x55\x73\x65\x72\x2D\x41\x67\x65\x6E\x74": _0x3021[6], | ||
"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65": _0x3021[17], | ||
}, | ||
}); | ||
return decodeURIComponent(_0xec21x14[_0x3021[4]][_0x3021[19]]); | ||
} | ||
module[_0x3021[20]] = fetch; | ||
const fetch = require("node-fetch"); | ||
module.exports = async (e, t) => { | ||
return fetch( | ||
`https://alexa-bot-api-web-server.vercel.app/api/alexa?stimulus=${e}?lang=${t}` | ||
) | ||
.then((e) => e.json()) | ||
.then((e) => e.reply); | ||
}; |
const alex = require("./alexa.js"); | ||
const ai = new alex(); | ||
ai.getReply("hey").then(console.log); | ||
ai.getReply("hey", "spanish").then(console.log); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
1
1
2812
33
2
+ Addednode-fetch@^2.6.1
+ Addednode-fetch@2.7.0(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)
- Removedaxios@^0.21.1
- Removedmd5@^2.3.0
- Removedaxios@0.21.4(transitive)
- Removedcharenc@0.0.2(transitive)
- Removedcrypt@0.0.2(transitive)
- Removedfollow-redirects@1.15.9(transitive)
- Removedis-buffer@1.1.6(transitive)
- Removedmd5@2.3.0(transitive)