Skip to content

DynamicField/Cleverbot.Net

 
 

Repository files navigation

Cleverbot.Net

A cleverbot wrapper for .Net 4.5/4.6.

How to set up?

First, get an api key from http://www.cleverbot.com/api/ to be able to create a instance of Cleverbot. To further set up Cleverbot.Net, download it from the nuget package manager.

Install-Package Cleverbot

Once you've installed Cleverbot.Net in your C# project. Include the new header using Cleverbot.Net;

Example code

I have two different kind of example code, one sync and one async.

Sync (not recommended)

Cleverbot cleverbot = new Cleverbot("api-key-here");
CleverbotResponse r = cleverbot.GetResponseAsync("Hello!").Result;
Console.WriteLine(r.Response);

Async

// Let's say we are in a thread 
Cleverbot cleverbot = new Cleverbot("api-key-here");
Label1.Text = "Cleverbot is typing...";
Label1.Text = await cleverbot.GetResponseAsync("Hello!");

About

Cleverbot.com wrapper for .Net 4.5+

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%