5.0.0 • Published 7 years ago

cleverio v5.0.0

Weekly downloads
8
License
ISC
Repository
github
Last release
7 years ago

cleverio

Downloads Version

A Promise-Based wrapper for the Cleverbot.io API.

THIS PROJECT USES ASYNC/AWAIT! YOU SHOULD BE ON NODE 7.6.x OR HIGHER!

Usage

// Require cleverio
const Cleverbot = require('cleverio');

// Make a new Cleverbot
const clevs = new Cleverbot({
    key: '<Your Cleverbot.io API Key>',
    user: '<Your Cleverbot.io User Key>',
    nick: '<Session Name>'
});

// Create the cleverbot session with your nick.
clevs.create();

// Ask Cleverbot something and log the response.
clevs.ask('Am I a chicken nugget?').then(res => console.log(res.response));

// You can await this as well.
const res = await clevs.ask('Am I a chicken nugget?');
console.log(res.response);

// Or with destructuring.
const { response } = await clevs.ask('Am I a chicken nugget?');
console.log(response);

Other Stuff

// You can also get your key, user, and current nick.
clevs.key
clevs.user
clevs.nick

Licensing

cleverio is licensed under an ISC License. See the file LICENSE.md for more information.

5.0.0

7 years ago

4.0.2

7 years ago

4.0.1

7 years ago

4.0.0

7 years ago

3.0.2

7 years ago

3.0.1

7 years ago

3.0.0

7 years ago

2.1.2

7 years ago

2.1.1

7 years ago

2.1.0

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago