Documentation ¶
Overview ¶
Package openweathermapbee is a Bee that can interact with cleverbot
Index ¶
- type OpenweathermapBee
- func (mod *OpenweathermapBee) Action(action bees.Action) []bees.Placeholder
- func (mod *OpenweathermapBee) ReloadOptions(options bees.BeeOptions)
- func (mod *OpenweathermapBee) Run(eventChan chan bees.Event)
- func (mod *OpenweathermapBee) TriggerCurrentWeatherEvent()
- func (mod *OpenweathermapBee) TriggerWeatherInformationEvent(v *owm.Weather)
- type OpenweathermapBeeFactory
- func (factory *OpenweathermapBeeFactory) Actions() []bees.ActionDescriptor
- func (factory *OpenweathermapBeeFactory) Description() string
- func (factory *OpenweathermapBeeFactory) Events() []bees.EventDescriptor
- func (factory *OpenweathermapBeeFactory) ID() string
- func (factory *OpenweathermapBeeFactory) Image() string
- func (factory *OpenweathermapBeeFactory) LogoColor() string
- func (factory *OpenweathermapBeeFactory) Name() string
- func (factory *OpenweathermapBeeFactory) New(name, description string, options bees.BeeOptions) bees.BeeInterface
- func (factory *OpenweathermapBeeFactory) Options() []bees.BeeOptionDescriptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenweathermapBee ¶
OpenweathermapBee is a Bee that can chat with cleverbot
func (*OpenweathermapBee) Action ¶
func (mod *OpenweathermapBee) Action(action bees.Action) []bees.Placeholder
Action triggers the action passed to it.
func (*OpenweathermapBee) ReloadOptions ¶
func (mod *OpenweathermapBee) ReloadOptions(options bees.BeeOptions)
ReloadOptions parses the config options and initializes the Bee.
func (*OpenweathermapBee) Run ¶
func (mod *OpenweathermapBee) Run(eventChan chan bees.Event)
Run executes the Bee's event loop.
func (*OpenweathermapBee) TriggerCurrentWeatherEvent ¶
func (mod *OpenweathermapBee) TriggerCurrentWeatherEvent()
TriggerCurrentWeatherEvent triggers all current weather events
func (*OpenweathermapBee) TriggerWeatherInformationEvent ¶
func (mod *OpenweathermapBee) TriggerWeatherInformationEvent(v *owm.Weather)
WeatherInformationEvent triggers a weather event
type OpenweathermapBeeFactory ¶
type OpenweathermapBeeFactory struct {
bees.BeeFactory
}
OpenweathermapBeeFactory is a factory for openweathermapbees
func (*OpenweathermapBeeFactory) Actions ¶
func (factory *OpenweathermapBeeFactory) Actions() []bees.ActionDescriptor
Actions describes the available actions provided by this Bee.
func (*OpenweathermapBeeFactory) Description ¶
func (factory *OpenweathermapBeeFactory) Description() string
Description returns the description of this Bee.
func (*OpenweathermapBeeFactory) Events ¶
func (factory *OpenweathermapBeeFactory) Events() []bees.EventDescriptor
Events describes the available events provided by this Bee.
func (*OpenweathermapBeeFactory) ID ¶
func (factory *OpenweathermapBeeFactory) ID() string
ID returns the ID of this Bee.
func (*OpenweathermapBeeFactory) Image ¶
func (factory *OpenweathermapBeeFactory) Image() string
Image returns the filename of an image for this Bee.
func (*OpenweathermapBeeFactory) LogoColor ¶
func (factory *OpenweathermapBeeFactory) LogoColor() string
LogoColor returns the preferred logo background color (used by the admin interface).
func (*OpenweathermapBeeFactory) Name ¶
func (factory *OpenweathermapBeeFactory) Name() string
Name returns the name of this Bee.
func (*OpenweathermapBeeFactory) New ¶
func (factory *OpenweathermapBeeFactory) New(name, description string, options bees.BeeOptions) bees.BeeInterface
New returns a new Bee instance configured with the supplied options.
func (*OpenweathermapBeeFactory) Options ¶
func (factory *OpenweathermapBeeFactory) Options() []bees.BeeOptionDescriptor
Options returns the options available to configure this Bee.