chatbot

package
v0.0.0-...-79996cc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package chatbot provides the RiveScript bot that lives in the developer shell.

Index

Constants

View Source
const (
	RiveScriptBase = `` /* 273-byte string literal not displayed */

	RiveScriptBasic = `
		+ hello *
		- Hello <id>.
	`
)

RiveScript source code snippets to be SURE get included even if the external brain fails to load.

Variables

View Source
var (
	Bot      *rivescript.RiveScript
	Username = "player"
)

Functions

func Handle

func Handle(message string) (string, error)

Handle a message from the user.

func Setup

func Setup()

Setup the RiveScript interpreter.

Types

type Functions

type Functions struct {
	Echo        func(string)
	Error       func(string)
	Alert       func(string)
	Confirm     func(string)
	New         func()
	Save        func()
	Edit        func()
	Play        func()
	Close       func()
	TitleScreen func(string)
	BoolProp    func(string, bool)
}

Bind functions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL