Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cleverio

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cleverio

A Promise-Based Wrapper for Cleverbot.io

  • 5.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-60%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 05 Aug 2017

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