https://github.com/synthesized-infinity/smart-botto
https://github.com/synthesized-infinity/smart-botto
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/synthesized-infinity/smart-botto
- Owner: Synthesized-Infinity
- Created: 2021-04-20T14:12:03.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-20T14:24:15.000Z (about 5 years ago)
- Last Synced: 2024-11-10T04:44:31.117Z (over 1 year ago)
- Language: TypeScript
- Size: 23.4 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# _**SMART BOTTO**_
> Smart(est) chatbot
> Based on EIF APIs
>
# Installation
```cmd
> npm i smart-botto
```
# Usage
```JS
const { Bot } = require('smart-botto')
//import { Bot } from 'smart-botto'
const chatbot = new Bot({
name: 'Emilia' //name of the bot
})
chatbot.chat({
message: 'Hey', //message to pass to chatbot,
user: 'USERID' //ID of the user to keep track of the convo
})
.then((res) => console.log(res))
/* {
message: 'Hey',
response: 'Hi there!'
} */
```