New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More β†’
Socket
Sign inDemoInstall
Socket

live-bot

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

live-bot

With this module you can make an online bot to response the messages like an telegram-bot πŸ€–

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
Β 
Created
Source

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')
then response

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

Keywords

FAQs

Package last updated on 21 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc