cleverbot 0.1.0

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

cleverbot

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.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);
}

1. Depend on it

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


dependencies:
  cleverbot: "^0.1.0"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub 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.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
0.0.2 Apr 11, 2017 Go to the documentation of cleverbot 0.0.2 Download cleverbot 0.0.2 archive

Analysis

This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • tool failures on Feb 16, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1

Scores

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

Platforms

Detected platforms: unsure

Error(s) prevent platform classification.

Suggestions

  • Fix lib/cleverbot.dart.

    Strong-mode analysis of lib/cleverbot.dart failed with the following error:

    line: 11 col: 8
    Target of URI doesn't exist: 'package:http/http.dart'.

  • Fix lib/cleverbot_browser.dart.

    Strong-mode analysis of lib/cleverbot_browser.dart failed with the following error:

    line: 11 col: 8
    Target of URI doesn't exist: 'package:http/browser_client.dart'.

  • Fix platform conflicts.

    Make sure none of the libraries use mutually exclusive dependendencies.

  • Fix issues reported by dartanalyzer.

    dartanalyzer reported 2 error(s) and 0 warning(s).

  • Fix .analysis_options.

    We were unable to parse .analysis_options.

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Use analysis_options.yaml.

    Rename old .analysis_options file to analysis_options.yaml.

  • Enable strong mode analysis.

    Strong mode helps you to detect bugs and potential issues earlier.Start your analysis_options.yaml file with the following:

    analyzer:
      strong-mode: true
    

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.0.0 <2.0.0