(min: number, max: number)
| 14 | const ddbAdapter = require('ask-sdk-dynamodb-persistence-adapter'); |
| 15 | const USERS_TABLE = process.env.USERS_TABLE || ''; |
| 16 | function getPattern(min: number, max: number) { |
| 17 | min = Math.ceil(min); |
| 18 | max = Math.floor(max); |
| 19 | return Math.floor(Math.random() * (max - min + 1) + min); |
| 20 | } |
| 21 | const LaunchRequestHandler: RequestHandler = { |
| 22 | canHandle(handlerInput: HandlerInput): boolean { |
| 23 | return handlerInput.requestEnvelope.request.type === 'LaunchRequest' || |