Version: v0.0.0-...-42619b2 Latest Latest

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

Go to latest
Published: Jul 7, 2017 License: AGPL-3.0 Imports: 2 Imported by: 0



CleverbotBee is a simple bee chatting with cleverbot. You can send messages to the bot as action and you'll receive the answer as an event.

You'll need an cleverbot api account containing username and key to access the cleverbot api. You can grab one here



Package cleverbotbee is a Bee that can interact with cleverbot



This section is empty.


This section is empty.


This section is empty.


type CleverbotBee

type CleverbotBee struct {
	// contains filtered or unexported fields

CleverbotBee is a Bee that can chat with cleverbot

func (*CleverbotBee) Action

func (mod *CleverbotBee) Action(action bees.Action) []bees.Placeholder

Action triggers the action passed to it.

func (*CleverbotBee) ReloadOptions

func (mod *CleverbotBee) ReloadOptions(options bees.BeeOptions)

ReloadOptions parses the config options and initializes the Bee.

func (*CleverbotBee) Run

func (mod *CleverbotBee) Run(eventChan chan bees.Event)

Run executes the Bee's event loop.

type CleverbotBeeFactory

type CleverbotBeeFactory struct {

CleverbotBeeFactory is a factory for CleverbotBees.

func (*CleverbotBeeFactory) Actions

func (factory *CleverbotBeeFactory) Actions() []bees.ActionDescriptor

Actions describes the available actions provided by this Bee.

func (*CleverbotBeeFactory) Description

func (factory *CleverbotBeeFactory) Description() string

Description returns the description of this Bee.

func (*CleverbotBeeFactory) Events

func (factory *CleverbotBeeFactory) Events() []bees.EventDescriptor

Events describes the available events provided by this Bee.

func (*CleverbotBeeFactory) ID

func (factory *CleverbotBeeFactory) ID() string

ID returns the ID of this Bee.

func (*CleverbotBeeFactory) Image

func (factory *CleverbotBeeFactory) Image() string

Image returns the filename of an image for this Bee.

func (*CleverbotBeeFactory) LogoColor

func (factory *CleverbotBeeFactory) LogoColor() string

LogoColor returns the preferred logo background color (used by the admin interface).

func (*CleverbotBeeFactory) Name

func (factory *CleverbotBeeFactory) Name() string

Name returns the name of this Bee.

func (*CleverbotBeeFactory) New

func (factory *CleverbotBeeFactory) New(name, description string, options bees.BeeOptions) bees.BeeInterface

New returns a new Bee instance configured with the supplied options.

func (*CleverbotBeeFactory) Options

func (factory *CleverbotBeeFactory) Options() []bees.BeeOptionDescriptor

Options returns the options available to configure this Bee.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL