cleverbot 0.1.0

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

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 failed Download cleverbot 0.1.0 archive
0.0.9 Apr 11, 2017 failed Download cleverbot 0.0.9 archive
0.0.8 Apr 11, 2017 failed Download cleverbot 0.0.8 archive
0.0.7 Apr 11, 2017 failed 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

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

  • Dart: 2.0.0-dev.49.0
  • pana: 0.10.6

Scores

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

Platforms

Detected platforms: unsure

Error(s) prevent platform classification:

Error(s) in lib/cleverbot.dart: Target of URI doesn't exist: 'package:http/http.dart'.

Suggestions

  • Fix platform conflicts.

    Error(s) prevent platform classification:

    Error(s) in lib/cleverbot.dart: Target of URI doesn't exist: 'package:http/http.dart'.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 4 errors 2 hints.

    Make sure that the imported libraries are not in conflict. Error(s) in lib/cleverbot.dart: Target of URI doesn't exist: 'package:http/http.dart'.

    Make sure that the imported libraries are not in conflict. Error(s) in lib/cleverbot_browser.dart: Target of URI doesn't exist: 'package:http/browser_client.dart'.

    Similar analysis of the following files failed:

    • lib/src/cleverbot_base.dart (hint)
  • 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