A cleverbot wrapper for .Net 4.5/4.6.
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;
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!");