# live-bot

> With this module you can make an online bot to response the messages like an telegram-bot 🤖

Latest version **1.1.2** (published 2018-10-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install live-bot
pnpm add live-bot
yarn add live-bot
bun add live-bot
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2018-10-21 |
| First published | 2018-10-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | sina farhadi |
| Maintainers | e.rror.e |
| Keywords | live-bot, botmaker, bot, bot-api, telegram-bot, chat, chat-bot |

## Links

- npm: https://www.npmjs.com/package/live-bot
- Repository: https://github.com/E-RROR/live-bot
- Homepage: https://github.com/E-RROR/live-bot#readme
- Issues: https://github.com/E-RROR/live-bot/issues
- npm.io page: https://npm.io/package/live-bot

## Recent versions

- 1.1.2 (latest) — 2018-10-21
- 1.1.1 — 2018-10-21
- 1.0.2 — 2018-10-20
- 1.0.1 — 2018-10-20
- 1.0.0 — 2018-10-20

## README

# Live-bot
With this module you can make an online bot to response the messages like an telegram-bot 🤖
# Example Of Live-bot
```
    chat.on('how are you','thanks')
```
# Install
```
const express = require('express');
const app = express();
const chat = require('live-chat');
const bodyParser = require('body-parser')
    
 //install the 👆 modules
   
//then set the main server variable name to this 👇

global.sername = app;

//then if you want to tell the user when a error happend try this 👇 
//important to use this in  the end of your code
chat.notfound('Sorry ot found !!')
   
```
# Usage
you have point the answers to your code like an telegram bot 
for example on this code 👇 when user send hello the bot answer Hi
```
   chat.on('Hello','hi')
```
<img src="https://cdn.pbrd.co/images/HJlltrC.jpg"/>
then response
<img src="https://cdn.pbrd.co/images/HJllVQc.jpg"/>

# How to work with this (Important)!!!
if you want recieve message from client you have send the message on the Address ** /Live-Bot/Api/ **
and your sended data should be in this format 👇

```
json({ data : user input })
```
Then server response your request white this 👇 format 
```
json({text : response text })
```
# Examples and more
for more examples and html template for live chat
see my github or my website http://sina-farhadi.ir

---
_Source: https://npm.io/package/live-bot · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
