2.0.1 • Published 6 years ago

age-config v2.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

AGE Config

This reads _helper.yaml files in the AGE plugins and generates a json file from them in ./data/age-config.json. This json file can then be imported into the Alexa setup process.

How to use

Add this plugin to your AGE install using npm install age-config.

Run the following command to generate the file from your AGE install:

serverless age-config

You'll need to add the following to src/config/config.yaml:

config:
    invocation_name: age test

This will pull any settings from all _helper.yaml files in plugins and from src/config. You'll need to create the src/config/_helper.yaml file if you don't have one, to describe what slots (types) have what values:

For example, the following will create data for the slots command, credit, item, and object. Note that command is in a different format. This alternative format allows you to add synonyms to the slot values, so with below a jester can also be referred to as a clown, fool, or annoyance:

slot_values:
    command:
        jester:
            - clown
            - fool
            - annoyance
        yes:
        no:
    credit:
        - Nick Stacey
    item:
        - brass key
    object:
        - door
        - west door
        - south door
        - north door
        - switch
2.0.1

6 years ago

2.0.0

6 years ago