GithubHelp home page GithubHelp logo

anthrax3 / cleverbot.net-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from velddev/cleverbot.net

0.0 2.0 0.0 42 KB

Asynchronous cleverbot.com wrapper for .NET

License: MIT License

C# 100.00%

cleverbot.net-1's Introduction

Cleverbot.Net

A cleverbot wrapper for .NET 4.6.1+ and .NET Core (targets .NET Standard 1.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;

Sample code

Asynchronous sample

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

Synchronous sample

CleverbotSession cleverbot = new CleverbotSession("api-key-here");
CleverbotResponse r = cleverbot.GetResponse("Hello!");
Console.WriteLine(r.Response);

cleverbot.net-1's People

Contributors

jeuxjeux20 avatar subzero0 avatar velddev avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.