cleverbot 0.2.1

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 50

cleverbot Pub

A wrapper for interacting with the Cleverbot API.

Usage

Get your API key at The official Cleverbot API site.

A simple usage example:

import 'package:cleverbot/cleverbot.dart';

main() async {
  var cleverbot = new Cleverbot("<YOUR APIKEY HERE>");
  var result = await cleverbot.think('Hello Cleverbot!');
  print(result);
}

For usage in the browser just import cleverbot_browser.dart:

import 'package:cleverbot/cleverbot_browser.dart';

Features and bugs

Please file feature requests and bugs at the issue tracker.

Changelog

0.2.0

  • upgraded to Dart SDK 2.0

0.1.0

  • fixed exceptions on wrongly encoded interaction history

0.0.8 - 0.0.9

  • added a few hints for cleverbot.com
  • added wrapper parameter

0.0.4 - 0.0.7

  • fixed UTF8 errors
  • refactored code

0.0.3

  • fixed example in readme :)

0.0.2

  • added support for usage from browser AND console

0.0.1

  • implemented basic functionality

example/cleverbot_example.dart

// Copyright (c) 2017, 'rinukkusu'. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

import 'package:cleverbot/cleverbot.dart';

main() async {
  var cleverbot = new Cleverbot("<YOUR APIKEY HERE>");
  var result = await cleverbot.think('Hello Cleverbot!');
  print(result);
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  cleverbot: ^0.2.1

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:cleverbot/cleverbot.dart';
  
Version Uploaded Documentation Archive
0.2.1 Nov 21, 2018 Go to the documentation of cleverbot 0.2.1 Download cleverbot 0.2.1 archive
0.2.0 Nov 21, 2018 Go to the documentation of cleverbot 0.2.0 Download cleverbot 0.2.0 archive
0.1.0 Apr 12, 2017 Go to the documentation of cleverbot 0.1.0 Download cleverbot 0.1.0 archive
0.0.9 Apr 11, 2017 Go to the documentation of cleverbot 0.0.9 Download cleverbot 0.0.9 archive
0.0.8 Apr 11, 2017 Go to the documentation of cleverbot 0.0.8 Download cleverbot 0.0.8 archive
0.0.7 Apr 11, 2017 Go to the documentation of cleverbot 0.0.7 Download cleverbot 0.0.7 archive
0.0.6 Apr 11, 2017 Go to the documentation of cleverbot 0.0.6 Download cleverbot 0.0.6 archive
0.0.5 Apr 11, 2017 Go to the documentation of cleverbot 0.0.5 Download cleverbot 0.0.5 archive
0.0.4 Apr 11, 2017 Go to the documentation of cleverbot 0.0.4 Download cleverbot 0.0.4 archive
0.0.3 Apr 11, 2017 Go to the documentation of cleverbot 0.0.3 Download cleverbot 0.0.3 archive

All 11 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
50
Learn more about scoring.

We analyzed this package on Dec 5, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.7

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:cleverbot/cleverbot.dart.

Health suggestions

Fix lib/src/cleverbot_base.dart. (-0.50 points)

Analysis of lib/src/cleverbot_base.dart reported 1 hint:

line 6 col 14: The value of the field '_debug' isn't used.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
http ^0.12.0 0.12.0
Transitive dependencies
async 2.0.8
charcode 1.1.2
collection 1.14.11
http_parser 3.1.3
meta 1.1.6
path 1.6.2
source_span 1.4.1
string_scanner 1.0.4
typed_data 1.1.6