alexatype

1.0.1 • Public • Published

AlexaType

AlexaType is a Typescript framework for developing alexa skills.

Simple Example

Here is a simple example that handles the TestDialog alexa intent.

import AlexaApp from "./alexa-app";
import StateHandler from './state-handler';
import Response from './types/standard-response';
 
let app = new AlexaApp();
 
class defaultHandler extends StateHandler {
    public async TestDialog(): Promise<Response> {
        var result = new Response(true);
        result.addPlainSpeech("It's working!");
 
        return result;
    }
}
 
app.setDefaultHandler(defaultHandler);
 
export const handler = (event, context, callback) => app.handler(event, context, callback);

Readme

Keywords

Package Sidebar

Install

npm i alexatype

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • blforce