Documentation ¶
Overview ¶
Package cleverbotbee is a Bee that can interact with cleverbot
Index ¶
- type CleverbotBee
- type CleverbotBeeFactory
- func (factory *CleverbotBeeFactory) Actions() []bees.ActionDescriptor
- func (factory *CleverbotBeeFactory) Description() string
- func (factory *CleverbotBeeFactory) Events() []bees.EventDescriptor
- func (factory *CleverbotBeeFactory) ID() string
- func (factory *CleverbotBeeFactory) Image() string
- func (factory *CleverbotBeeFactory) LogoColor() string
- func (factory *CleverbotBeeFactory) Name() string
- func (factory *CleverbotBeeFactory) New(name, description string, options bees.BeeOptions) bees.BeeInterface
- func (factory *CleverbotBeeFactory) Options() []bees.BeeOptionDescriptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CleverbotBee ¶
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 {
bees.BeeFactory
}
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.