From e57563fb4b62edb7985fc3b6468d4f13ad5981c7 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Fri, 9 Dec 2016 15:55:58 -0800 Subject: [PATCH] Clean up more documentation --- README.md | 6 ++++-- doc.go | 3 +-- lang/javascript/javascript.go | 3 +-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 763c237..7804fd5 100644 --- a/README.md +++ b/README.md @@ -166,8 +166,7 @@ string literal to the `RiveScript.SetUnicodePunctuation` function. Example: ```go // Make a new bot with UTF-8 mode enabled. -bot := rivescript.New() -bot.SetUTF8(true) +bot := rivescript.New(config.UTF8()) // Override the punctuation characters that get stripped from the // user's message. @@ -251,6 +250,9 @@ The distributable directory contains only the following types of files: code and returning an "abstract syntax tree." * [rivescript-go/macro](./macro) - Contains an interface for creating your own object macro handlers for foreign programming languages. +* [rivescript-go/sessions](./sessions) - Contains the interface for user + variable session managers as well as the default in-memory manager and the + `NullStore` for testing. ## License diff --git a/doc.go b/doc.go index 275ec4c..4bbd0a7 100644 --- a/doc.go +++ b/doc.go @@ -56,8 +56,7 @@ set being `/[.,!?;:]/g`. This can be overridden by providing a new regexp string literal to the `RiveScript.SetUnicodePunctuation` function. Example: // Make a new bot with UTF-8 mode enabled. - bot := rivescript.New() - bot.SetUTF8(true) + bot := rivescript.New(config.UTF8()) // Override the punctuation characters that get stripped from the // user's message. diff --git a/lang/javascript/javascript.go b/lang/javascript/javascript.go index f60e39b..b87c2ee 100644 --- a/lang/javascript/javascript.go +++ b/lang/javascript/javascript.go @@ -13,7 +13,7 @@ Usage is simple. In your Golang code: ) func main() { - bot := rivescript.New() + bot := rivescript.New(nil) jsHandler := javascript.New(bot) bot.SetHandler("javascript", jsHandler) @@ -51,7 +51,6 @@ import ( "fmt" "strings" - "github.com/aichaos/rivescript-go" "github.com/robertkrimen/otto" )