The Unofficial Patch to Alexa-Bot-API
Brought to you by the CWN Team
Enjoying alexa-bot-api?
Consider Donating To Me:
https://www.buymeacoffee.com/nithishpravin
Join My Discord Server:
https://discord.gg/m2G7YB3ttf
Developers:
Credits:
Pudochu
Discord: Pudochu 'D#0001
Involvement: Helped in the previous fix and suggestions about the package
BlobKat#0388: Updated to support contextual AI
Whats new in v3.0.0
- Fixed cleverbot's new API update that lead to package not working
- Added Context support
- Relaunched the long awaited for API
Promise Based!
const alexa = require("alexa-bot-api");
const ai = new alexa();
ai.getReply("Hello").then((reply) => {
console.log(reply);
});
Contextual AI:
getReply(<message>, <context>)
Async / Await
const alexa = require("alexa-bot-api");
const ai = new alexa();
async function main() {
const reply = await ai.getReply("How are you mate?");
console.log(reply);
}
main();