Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thebenforce/alexatype

A helper package for writing alexa skills in typescript
https://github.com/thebenforce/alexatype

Last synced: 22 days ago
JSON representation

A helper package for writing alexa skills in typescript

Awesome Lists containing this project

README

        

# AlexaType
AlexaType is a Typescript framework for developing alexa skills.

## Simple Example
Here is a simple example that handles the ```TestDialog``` alexa intent.
```typescript
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 {
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);
```