You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need to incorporate the changes made in PR1964Override ActivityHandler.run() instead of using ActivityHandler.onDialog() to save state changes. This impacts dialogBot.js.
This is the current code:
this.onDialog(async(context,next)=>{// Save any state changes. The load happened during the execution of the Dialog.awaitthis.conversationState.saveChanges(context,false);awaitthis.userState.saveChanges(context,false);// By calling next() you ensure that the next BotHandler is run.awaitnext();});
This is how it should be coded:
asyncrun(context){awaitsuper.run(context);// Save any state changes. The load happened during the execution of the Dialog.awaitthis.conversationState.saveChanges(context,false);awaitthis.userState.saveChanges(context,false);}
Need to incorporate the changes made in PR1868: add send trace calls and fix multiling.
The following code needs to be added to index.js probably starting on line 48…
// Send a trace activity, which will be displayed in Bot Framework Emulatorawaitcontext.sendTraceActivity('OnTurnError Trace',`${error}`,'https://www.botframework.com/schemas/error','TurnError');
A console.log line is missing, see line 88 in index.js
console.log('\nTo talk to your bot, open the emulator select "Open Bot"');
Missing braces in mainDialog.js. These were added to CoreBot the end of October. See line 82, 98, 100, 105, 107, 111
CancelAndHelpDialog.js: Same thing – missing braces in switch statement. See line 26 etc. Compare with CoreBot line 26.
The text was updated successfully, but these errors were encountered:
In reviewing the javascript_nodejs version of sample 21.corebot-app-insights, I've noticed a few issues that I think need to be addressed:
Need to incorporate the changes made in PR1964 Override ActivityHandler.run() instead of using ActivityHandler.onDialog() to save state changes. This impacts dialogBot.js.
This is the current code:
This is how it should be coded:
Need to incorporate the changes made in PR1868: add send trace calls and fix multiling.
The following code needs to be added to index.js probably starting on line 48…
A console.log line is missing, see line 88 in index.js
Missing braces in mainDialog.js. These were added to CoreBot the end of October. See line 82, 98, 100, 105, 107, 111
CancelAndHelpDialog.js: Same thing – missing braces in switch statement. See line 26 etc. Compare with CoreBot line 26.
The text was updated successfully, but these errors were encountered: