Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Commit 06354ca

Browse files
committed
fix: correct formatting and remove unused import in ConsoleAdapter
1 parent a654b50 commit 06354ca

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

samples/javascript_nodejs/01.console-echo/consoleAdapter.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77

88
// const botbuilderCore = require('botbuilder-core');
99
const { CloudAdapter, TurnContext } = require('@microsoft/agents-hosting');
10-
const { ActivityTypes, Activity } = require('@microsoft/agents-activity')
10+
const { ActivityTypes, Activity } = require('@microsoft/agents-activity');
1111
const readline = require('readline');
12-
const { text } = require('stream/consumers');
1312
const BotAdapter = CloudAdapter;
1413
/**
1514
* Lets a user communicate with a bot from a console window.
@@ -81,10 +80,10 @@ class ConsoleAdapter extends BotAdapter {
8180
});
8281
rl.on('line', async line => {
8382
// Initialize activity
84-
const activity = Activity.fromObject({type: ActivityTypes.Message, text: line});
85-
83+
const activity = Activity.fromObject({ type: ActivityTypes.Message, text: line });
84+
8685
activity.applyConversationReference(
87-
this.reference,
86+
this.reference,
8887
true
8988
);
9089
// Create context and run middleware pipe

0 commit comments

Comments
 (0)