Skip to content

Commit

Permalink
Merge pull request howdyai#1880 from mattcobb/issue-1879
Browse files Browse the repository at this point in the history
Fixes howdyai#1879 Typo in onChange() example
  • Loading branch information
benbrown authored Dec 20, 2019
2 parents e15ce37 + 766b45b commit 028ea11
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/botkit/src/conversation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ export class BotkitConversation<O extends object = {}> extends Dialog<O> {
*
* ```javascript
* convo.ask('What is your name?', [], 'name');
* convo.onChange('name', async(response, convo, bot) {
* convo.onChange('name', async(response, convo, bot) => {
*
* // user changed their name!
* // do something...
Expand Down
4 changes: 2 additions & 2 deletions packages/docs/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -7076,7 +7076,7 @@
"flags": {},
"comment": {
"shortText": "Bind a function to run whenever a user answers a specific question. Can be used to validate input and take conditional actions.",
"text": "```javascript\nconvo.ask('What is your name?', [], 'name');\nconvo.onChange('name', async(response, convo, bot) {\n\n // user changed their name!\n // do something...\n\n});\n```"
"text": "```javascript\nconvo.ask('What is your name?', [], 'name');\nconvo.onChange('name', async(response, convo, bot) => {\n\n // user changed their name!\n // do something...\n\n});\n```"
},
"parameters": [
{
Expand Down Expand Up @@ -8222,7 +8222,7 @@
"flags": {},
"comment": {
"shortText": "Bind a function to run whenever a user answers a specific question. Can be used to validate input and take conditional actions.",
"text": "```javascript\nconvo.ask('What is your name?', [], 'name');\nconvo.onChange('name', async(response, convo, bot) {\n\n // user changed their name!\n // do something...\n\n});\n```"
"text": "```javascript\nconvo.ask('What is your name?', [], 'name');\nconvo.onChange('name', async(response, convo, bot) => {\n\n // user changed their name!\n // do something...\n\n});\n```"
},
"parameters": [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/reference/core.md
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,7 @@ Bind a function to run whenever a user answers a specific question. Can be used

```javascript
convo.ask('What is your name?', [], 'name');
convo.onChange('name', async(response, convo, bot) {
convo.onChange('name', async(response, convo, bot) => {
// user changed their name!
// do something...
Expand Down

0 comments on commit 028ea11

Please sign in to comment.