code: func (mod *SpaceAPIBee) Action(action bees.Action) []bees.Placeholder {
  	outs := []bees.Placeholder{}
  
  	switch action.Name {
  	case "status":
  		type SpaceAPIResult struct {
  			State struct {
  				Open bool `json:"open"`
  			} `json:"state"`
  		}
  		apiState := new(SpaceAPIResult)
  
  		// get json data
  		resp, err := http.Get(mod.url)
  		if err != nil {
  			mod.Logln("Error: SpaceAPI instance @ " + mod.url + " not reachable")
  		} else {
  			defer resp.Body.Close()
  			body, _ := ioutil.ReadAll(resp.Body)
  
  			err = json.Unmarshal(body, apiState)
  			if err != nil {
  				mod.Logln("Sorry, couldn't unmarshal the JSON data from SpaceAPI Instance @ " + mod.url)
  				apiState.State.Open = false
  			}
  		}
  
  		ev := bees.Event{
  			Bee:  mod.Name(),
  			Name: "result",
  			Options: []bees.Placeholder{
  				{
  					Name:  "open",
  					Type:  "bool",
  					Value: apiState.State.Open,
  				},
  			},
  		}
  		mod.evchan <- ev
  
  	default:
  		panic("Unknown action triggered in " + mod.Name() + ": " + action.Name)
  	}
  
  	return outs
  }
docs: // Action triggers the action passed to it.