Skip to content

Conversation

gwilymhumphreys
Copy link

I believe this fixes up some problems from changes to the botbuilder api.

Also removed .then / .catch statements in favour of await.

@msftclas
Copy link

msftclas commented Jul 11, 2018

CLA assistant check
All CLA requirements met.


// Continue current dialog
} else {
const res = await dc.continue()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const res = [](start = 20, length = 11)

Why are you capturing this? You don't do anything with it and honestly its not needed.

if (context.activity.type === 'conversationUpdate' && context.activity.membersAdded[0].name === 'Bot') {
// Welcome message here, bot will message you first
await context.sendActivity(`Hi! I'm a simple reminder bot. I can help add reminders, delete and show them.`);
return await context.sendActivity(`Hi! I'm a simple reminder bot. I can help add reminders, delete and show them.`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return [](start = 12, length = 6)

You don't technically need the return here given your code.

const utterance = (context.activity.text || '').trim().toLowerCase();

// Create dialog context
const dc = dialogs.createContext(context, state);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const dc = dialogs.createContext(context, state); [](start = 12, length = 49)

This isn't being setup correctly. Your not actually getting the state object and its kind of working because you're using JS. TypeScript would have given an error. Look at the dialog sample for how to properly get the state.

@Stevenic
Copy link
Contributor

Stevenic commented Aug 1, 2018

Closing this PR for now as we await additional fixes.

@Stevenic Stevenic closed this Aug 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants