Skip to content

Commit 03e5824

Browse files
nschonniKaiqb
authored andcommitted
typo: atleast -> at least (#541)
Minor code sample rendering fixes as well
1 parent 117c289 commit 03e5824

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

articles/v4sdk/bot-builder-send-welcome-message.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public async Task OnTurnAsync(ITurnContext turnContext, CancellationToken cancel
136136
if (member.Id != turnContext.Activity.Recipient.Id)
137137
{
138138
await turnContext.SendActivityAsync($"Hi there - {member.Name}. Welcome to the 'Welcome User' Bot. This bot will introduce you to welcoming and greeting users.", cancellationToken: cancellationToken);
139-
await turnContext.SendActivityAsync($"You are seeing this message because the bot recieved atleast one 'ConversationUpdate' event,indicating you (and possibly others) joined the conversation. If you are using the emulator, pressing the 'Start Over' button to trigger this event again. The specifics of the 'ConversationUpdate' event depends on the channel. You can read more information at https://aka.ms/about-botframewor-welcome-user", cancellationToken: cancellationToken);
139+
await turnContext.SendActivityAsync($"You are seeing this message because the bot recieved at least one 'ConversationUpdate' event,indicating you (and possibly others) joined the conversation. If you are using the emulator, pressing the 'Start Over' button to trigger this event again. The specifics of the 'ConversationUpdate' event depends on the channel. You can read more information at https://aka.ms/about-botframewor-welcome-user", cancellationToken: cancellationToken);
140140
await turnContext.SendActivityAsync($"It is a good pattern to use this event to send general greeting to user, explaning what your bot can do. In this example, the bot handles 'hello', 'hi', 'help' and 'intro. Try it now, type 'hi'", cancellationToken: cancellationToken);
141141
}
142142
}
@@ -151,7 +151,7 @@ public async Task OnTurnAsync(ITurnContext turnContext, CancellationToken cancel
151151

152152
This JavaScript code sends a welcome message when a user is added. This is done by checking the conversation activity and verify that a new member was added to the conversation.
153153

154-
``` javascript
154+
```javascript
155155
// Import required Bot Framework classes.
156156
const { ActivityTypes } = require('botbuilder');
157157
const { CardFactory } = require('botbuilder');
@@ -215,7 +215,7 @@ class MainDialog {
215215
// Because the TurnContext was bound to this function, the bot can call
216216
// `TurnContext.sendActivity` via `this.sendActivity`;
217217
await this.sendActivity(`Welcome to the 'Welcome User' Bot. This bot will introduce you to welcoming and greeting users.`);
218-
await this.sendActivity("You are seeing this message because the bot recieved atleast one 'ConversationUpdate'" +
218+
await this.sendActivity("You are seeing this message because the bot recieved at least one 'ConversationUpdate'" +
219219
"event,indicating you (and possibly others) joined the conversation. If you are using the emulator, "+
220220
"pressing the 'Start Over' button to trigger this event again. The specifics of the 'ConversationUpdate' "+
221221
"event depends on the channel. You can read more information at https://aka.ms/about-botframewor-welcome-user");
@@ -300,7 +300,7 @@ public async Task OnTurnAsync(ITurnContext turnContext, CancellationToken cancel
300300

301301
## [JavaScript](#tab/jsmulti)
302302

303-
``` javascript
303+
```javascript
304304
class MainDialog
305305
{
306306
// Previous Code Sample
@@ -394,14 +394,14 @@ switch (text)
394394

395395
First we want to add our Adaptive Card to the bot at the top of our _index.js_ right below our Imports.
396396

397-
``` javascript
397+
```javascript
398398
// Adaptive Card content
399399
const IntroCard = require('./Resources/IntroCard.json');
400400
```
401401

402402
Next we can simply use the below code in our _switch (text)_ _case "help"_ section of our bot to respond to the users prompt with the adaptive card.
403403

404-
``` javascript
404+
```javascript
405405
switch (text)
406406
{
407407
case "hello":

0 commit comments

Comments
 (0)