https://github.com/swiftyspiffy/cleverbotlib
Simple .NET library to interface with the Cleverbot API.
https://github.com/swiftyspiffy/cleverbotlib
ai api bot clever cleverbot csharp net
Last synced: 2 months ago
JSON representation
Simple .NET library to interface with the Cleverbot API.
- Host: GitHub
- URL: https://github.com/swiftyspiffy/cleverbotlib
- Owner: swiftyspiffy
- License: mit
- Created: 2017-02-24T01:17:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2026-04-09T19:28:12.000Z (2 months ago)
- Last Synced: 2026-04-09T21:27:47.819Z (2 months ago)
- Topics: ai, api, bot, clever, cleverbot, csharp, net
- Language: C#
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CleverbotLib
## About
CleverbotLib is a simple .NET library that is capable of interfacing with the Cleverbot API in an elegant and easy to use fashion. All information provided in the API responses are available to the programmer, and cleverbot state is easily maintained between messages.
## Implementing
Below is a basic ConsoleApplication implementation of CleverbotLib taken directly from the provided example applicaiton.
#### TwitchClient
```csharp
Console.WriteLine("CleverbotLib Example Application");
Console.WriteLine("Insert your API key:");
CleverbotLib.Core.SetAPIKey(Console.ReadLine());
Console.WriteLine("Now begin your conversation!");
CleverbotLib.Models.CleverbotResponse resp = null;
while (true)
{
Console.Write("You: ");
if (resp == null)
resp = CleverbotLib.Core.Talk(Console.ReadLine());
else
resp = CleverbotLib.Core.Talk(Console.ReadLine(), resp);
Console.WriteLine($"Cleverbot: {resp.Output}");
}
```
## Installation
### [NuGet](https://www.nuget.org/packages/CleverbotLib/)
To install this library via NuGet via NuGet console, use:
```
Install-Package CleverbotLib
```
and via Package Manager, simply search:
```
CleverbotLib
```
You are also more than welcome to clone/fork this repo and build the library yourself!
## Dependencies
* Newtonsoft.Json 7.0.1+ ([nuget link](https://www.nuget.org/packages/Newtonsoft.Json/7.0.1))
## License
This project is available under the MIT license. See the LICENSE file for more info.