1.0.3 • Published 7 years ago

hsbot v1.0.3

Weekly downloads
16
License
MIT
Repository
github
Last release
7 years ago

Package Quality Build Status Coverage Status NPM Download NPM Version Known Vulnerabilities Scrutinizer Code Quality MIT License

Description

A customizable bot, it's hsbot.Pass your custom template and you are ready to use your own bot. For detailed document see this HSBOT document

Quick demo using terminal

DEMO

Quick demo: How to integrate into project

DEMO

Features

  • Pass custom template. Template should be in format as defined.
  • You can integrate with your system easily.
  • Analyze user chat history.

Install

$ npm install hsbot -g
"or"
$ npm i install hsbot

Usage

$ hsbot

Now you are ready to use hsbot.

Points to keep in mind

  • userId: UserId is mandatory.
  • userName: (optional) If pass it will not ask you about your name. If not, hsbot will ask you about your name first.
  • topicList and topics: These two files you need to pass to the constructor of hsbot. You can find template under hsbot -> db -> data
  • Template: topicList.json and topics.json

Example

var topicList = require('../db/data/topicList.json'); // Your file path as per defined template.
var topics = require('../db/data/topics.json'); // Your file path as per defined template.
const HSBot = require('hsbot');
const hsBot = new HSBot(topicList, topics);
var userId = "aQ11zyTr4u7I";
var userName;
 
// userId (Mandatory)
// userName (User Name)
// human_text (Your answer/query, the question asked by HSBot)


hsBot.transformAndReply(userId, userName, human_text, function(err, data){
  console.log("HSBot:", data);
});

Analysis

There are multiples APIs are available to analyze user's activities. Please visit HSBOT document.

Thank you!

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.26

7 years ago

0.0.25

7 years ago

0.0.24

7 years ago

0.0.23

7 years ago

0.0.22

7 years ago

0.0.21

7 years ago

0.0.20

7 years ago

0.0.19

7 years ago

0.0.17

7 years ago

0.0.16

7 years ago

0.0.15

7 years ago

0.0.14-readme

7 years ago

0.0.14

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago