Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/thebenforce/alexatype
- Owner: theBenForce
- License: mit
- Created: 2017-07-19T23:28:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-06T15:10:20.000Z (over 7 years ago)
- Last Synced: 2024-10-04T21:43:46.356Z (about 1 month ago)
- Language: TypeScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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);
```