Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 644 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 644 Bytes

chatterbot

A Golang chatter bot API that supports Cleverbot.

For the Mono/.NET, JAVA, Python and PHP version, take a look at pierredavidbelanger cleverbot-api implementation.

Usage

package main

import (
	"x1125io/chatterbot"
	"fmt"
)

func main() {
	session := chatterbot.NewCleverbot()
	fmt.Println(session.ThinkThrough("Hey"))
	fmt.Println(session.ThinkThrough("How are you?"))
	fmt.Println(session.ThinkThrough("Wow, that's terrible..."))
	fmt.Println(session.ThinkThrough("So what you're doing?"))
	fmt.Println(session.ThinkThrough("I'm glad talking to you"))
}