answers-bot

1.4.0 • Public • Published

Answers - Answers bot

Solve questions and answers from the community

npm package

Installation

npm install answers-bot

Usage

var answer = require('answers-bot');
var options = {
    q: "Who is the owner of google", // question
    limit: 2 // results limit
};
new answer(options, function (res) {
    for (var r in res) {
        console.log(res[r].answer);
    }
})
    .error = function (err) {
        console.error(err);
    };
// => Larry Page and Sergey Brin, who were Ph.D. students at Stanford \n Google Chrome is owned by the founder of Google and the Google company. It is not just owned by a single person.

Readme

Keywords

Package Sidebar

Install

npm i answers-bot

Weekly Downloads

2

Version

1.4.0

License

MIT

Last publish

Collaborators

  • xc0d3rz