0.0.1-security • Published 2 years ago
nodesimi v0.0.1-security
NodeSimi
NodeSimi is a Node.js package for interacting with the SimiTalk and SimiTeach APIs. With NodeSimi, you can chat with a SimiTalk chatbot or teach it new responses.
Installation
To install NodeSimi, use npm:
npm i nodesimiUsage
The simpro package provides two main functions for interacting with the SimiTalk API: simiTalk and simiTeach.
simiTalk
The simiTalk function sends a message to the SimiTalk API and receives a response. It takes two arguments:
message: The message to send to the chatbot.language: The language code of the message (e.g.'en'for English).
const { simiTalk } = require('nodesimi');
simiTalk('Hi', 'en')
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});simiTeach
The simiTeach function store a message to the server and receives a response. It takes two arguments:
message: The message to send to the chatbot.language: The language code of the message (e.g.'en'for English).key: Your secret key.
const { simiTeach } = require('nodesimi');
const key = "YOUR_SECRET_KEY";
simiTeach('Hi', 'en', key)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});0.0.1-security
2 years ago
1.0.0
3 years ago