beehive: Index | Files

package openweathermapbee

import ""

Package openweathermapbee is a Bee that can interact with cleverbot


Package Files

event.go openweathermapbee.go openweathermapbeefactory.go

type OpenweathermapBee Uses

type OpenweathermapBee struct {
    // contains filtered or unexported fields

OpenweathermapBee is a Bee that can chat with cleverbot

func (*OpenweathermapBee) Action Uses

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

Action triggers the action passed to it.

func (*OpenweathermapBee) ReloadOptions Uses

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

ReloadOptions parses the config options and initializes the Bee.

func (*OpenweathermapBee) Run Uses

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

Run executes the Bee's event loop.

func (*OpenweathermapBee) TriggerCurrentWeatherEvent Uses

func (mod *OpenweathermapBee) TriggerCurrentWeatherEvent()

TriggerCurrentWeatherEvent triggers all current weather events

func (*OpenweathermapBee) TriggerWeatherInformationEvent Uses

func (mod *OpenweathermapBee) TriggerWeatherInformationEvent(v *owm.Weather)

WeatherInformationEvent triggers a weather event

type OpenweathermapBeeFactory Uses

type OpenweathermapBeeFactory struct {

OpenweathermapBeeFactory is a factory for openweathermapbees

func (*OpenweathermapBeeFactory) Actions Uses

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

Actions describes the available actions provided by this Bee.

func (*OpenweathermapBeeFactory) Description Uses

func (factory *OpenweathermapBeeFactory) Description() string

Description returns the description of this Bee.

func (*OpenweathermapBeeFactory) Events Uses

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

Events describes the available events provided by this Bee.

func (*OpenweathermapBeeFactory) ID Uses

func (factory *OpenweathermapBeeFactory) ID() string

ID returns the ID of this Bee.

func (*OpenweathermapBeeFactory) Image Uses

func (factory *OpenweathermapBeeFactory) Image() string

Image returns the filename of an image for this Bee.

func (*OpenweathermapBeeFactory) LogoColor Uses

func (factory *OpenweathermapBeeFactory) LogoColor() string

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

func (*OpenweathermapBeeFactory) Name Uses

func (factory *OpenweathermapBeeFactory) Name() string

Name returns the name of this Bee.

func (*OpenweathermapBeeFactory) New Uses

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 Uses

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

Options returns the options available to configure this Bee.

Package openweathermapbee imports 2 packages (graph) and is imported by 5 packages. Updated 2020-07-21. Refresh now. Tools for package owners.