Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5d9b67b

Browse files
committedDec 8, 2017
Fix Wrong Environment Variable!
1 parent 3043f2d commit 5d9b67b

5 files changed

+8
-8
lines changed
 

‎deployment/LexInterceptor.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ Resources:
195195
ALLOWED_LANGUAGES: !Join [ ":", !Ref AllowedLanguages ]
196196
SPEECH_RECOGNIZE_LANGUAGE: !Ref SpeechRecognizeLanguage
197197
SYNTHESIZE_SPEECH_LANGUAGE_HINTS: !Ref SynthesizeSpeechLanguageHints
198-
MS_BOT_FRAMEWORK_APP_ID: MsBotFrameworkAppID
199-
MS_BOT_FRAMEWORK_APP_PASSWORD: MsBotFrameworkAppPassword
198+
MS_BOT_FRAMEWORK_APP_ID: !Ref MsBotFrameworkAppID
199+
MS_BOT_FRAMEWORK_APP_PASSWORD: !Ref MsBotFrameworkAppPassword
200200
Events:
201201
PostMessage:
202202
Type: Api

‎deployment/deployment.bat

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
aws s3 cp QrcodeDecoderLambda-1.0-SNAPSHOT-all.jar s3://howwhofeelinvideopackage/QrcodeDecoderLambda-1.0-SNAPSHOT-all.jar
2-
node C:\Users\developer\AppData\Roaming\npm\node_modules\grunt-cli\bin\grunt --gruntfile ..\Gruntfile.js lambda_package
3-
aws s3 cp ../dist/LexInterceptor_latest.zip s3://howwhofeelinvideopackage/LexInterceptor_latest.zip
1+
::aws s3 cp QrcodeDecoderLambda-1.0-SNAPSHOT-all.jar s3://howwhofeelinvideopackage/QrcodeDecoderLambda-1.0-SNAPSHOT-all.jar
2+
::node C:\Users\developer\AppData\Roaming\npm\node_modules\grunt-cli\bin\grunt --gruntfile ..\Gruntfile.js lambda_package
3+
::aws s3 cp ../dist/LexInterceptor_latest.zip s3://howwhofeelinvideopackage/LexInterceptor_latest.zip
44

55
aws cloudformation package ^
66
--region us-east-1^

‎deployment/updatelambda.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
node C:\Users\developer\AppData\Roaming\npm\node_modules\grunt-cli\bin\grunt --gruntfile ..\Gruntfile.js lambda_package
22
aws s3 cp ../dist/LexInterceptor_latest.zip s3://howwhofeelinvideopackage/LexInterceptor_latest.zip
33

4-
aws lambda update-function-code --function-name LexInterceptor-MsBotFxInterceptorFunction-RXD1JXBA8WRV --s3-bucket howwhofeelinvideopackage --s3-key LexInterceptor_latest.zip
4+
aws lambda update-function-code --function-name LexInterceptor-MsBotFxInterceptorFunction-UNEXH85X2GLX --s3-bucket howwhofeelinvideopackage --s3-key LexInterceptor_latest.zip

‎dist/LexInterceptor_latest.zip

-12 Bytes
Binary file not shown.

‎msbotFxInterceptor.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const GOOGLE_API_KEY = process.env.GOOGLE_API_KEY;
1010
const SESSION_TABLE_NAME = process.env.SESSION_TABLE_NAME;
1111
const ALLOWED_LANGUAGES = process.env.ALLOWED_LANGUAGES;
1212

13-
const MS_BOT_FRAMEWORK_APP_ID = process.env.MsBotFrameworkAppID;
13+
const MS_BOT_FRAMEWORK_APP_ID = process.env.MS_BOT_FRAMEWORK_APP_ID;
1414
const MS_BOT_FRAMEWORK_APP_PASSWORD = process.env.MS_BOT_FRAMEWORK_APP_PASSWORD;
1515

1616
const googleTranslator = new GoogleTranslator(GOOGLE_API_KEY, ALLOWED_LANGUAGES);
@@ -122,7 +122,7 @@ const sendReplyMessage = (headers, body, token, message) => new Promise((resolve
122122
replyToId: body.id
123123
};
124124
request
125-
.post(body.serviceUrl + `v3/conversations/${body.conversation.id}/activities/${body.id}`)
125+
.post(body.serviceUrl + `/v3/conversations/${body.conversation.id}/activities/${body.id}`)
126126
.type('application/json')
127127
.set('Authorization', "Bearer " + token)
128128
.parse(request.parse.text)

0 commit comments

Comments
 (0)
Please sign in to comment.