Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Latest commit

 

History

History
30 lines (24 loc) · 815 Bytes

readme.md

File metadata and controls

30 lines (24 loc) · 815 Bytes

CleverbotIO.Net

A simple way to use the Cleverbot.io API with .NET Core!

This project uses cleverbot.io

It's also heavily based off Cleverbot.Net, just updated for .NET Core

Some simple code to get you started:

using System;
using Cleverbot.Net;

class Program
{
    static void Main()
    {
        var session = CleverbotSession.NewSession("apiUser", "apiKey");
        Console.Write("You: ");
        message = Console.ReadLine();
        Console.WriteLine($"Bot: {session.Send(message)}");
    }
}

It also supports asynchronous requests by adding ASync to the end

var session  = await CleverbotSession.NewSessionAsync("apiUser", "apiKey");
var response = await session.SendAsync("Hello.");