alexa-bot-api
Advanced tools
Comparing version 2.0.3 to 2.0.4
{ | ||
"name": "alexa-bot-api", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "A very lightweight and simple artificial intelligence with multi language support", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
const fetch = require("node-fetch"); | ||
module.exports = async (e, t) => { | ||
return fetch( | ||
`https://alexa-bot-api-web-server.vercel.app/api/alexa?stimulus=${decodeURIComponent(e)}?lang=${decodeURIComponent(t)}` | ||
`https://alexa-bot-api-web-server.vercel.app/api/alexa?stimulus=${e}?lang=${t}` | ||
) | ||
@@ -6,0 +6,0 @@ .then((e) => e.json()) |
const alex = require("./alexa.js"); | ||
const ai = new alex(); | ||
ai.getReply("hey", "spanish").then(console.log); | ||
ai.getReply("hey%s", "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
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
2814