alexa-ability-async-handler
v0.2.0
Published
A promise based alexa-ability handler
Downloads
3
Maintainers
Readme
alexa-ability-async-handler
A promise based alexa-ability handler
Example
import { Ability, events } from 'alexa-ability';
import { handleAbility, handleEvent } from 'alexa-ability-async-handler';
const ability = new Ability();
ability.on(events.launch, function(req) {
req.say("Testing testing one two three.").end();
});
handleAbility(ability)(event).then(
res => console.log(res),
err => console.error(err)
)