Skip to content

Commit

Permalink
clean up some teams stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
benbrown committed Aug 21, 2020
1 parent 3f79353 commit c54f2b5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/botbuilder-adapter-facebook/src/botworker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class FacebookBotWorker extends BotWorker {
* @param userId the PSID of a user the bot has previously interacted with
*/
public async startConversationWithUser(userId): Promise<void> {
return this.changeContext({
await this.changeContext({
channelId: 'facebook',
// @ts-ignore
conversation: { id: userId },
Expand Down
10 changes: 5 additions & 5 deletions packages/testbot/bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,12 @@ const controller = new Botkit({
webhook_uri: '/api/messages',
webserver_middlewares: [(req, res, next) => { console.log('REQ > ', req.url); next(); }],
// disable_console: true,
adapter: adapter,
// adapter: adapter,
// disable_webserver: true,
// adapterConfig: {
// appId: process.env.APP_ID,
// appPassword: process.env.APP_PASSWORD
// },
adapterConfig: {
appId: process.env.APP_ID,
appPassword: process.env.APP_PASSWORD
},
storage
});

Expand Down
4 changes: 3 additions & 1 deletion packages/testbot/features/teams_features.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
const request = require('request');
const { TeamsInvokeMiddleware } = require('botkit');

module.exports = function(controller) {

if (!controller.adapter.name) {

controller.adapter.use(new TeamsInvokeMiddleware());

const adaptiveCard = {
"type": "AdaptiveCard",
"body": [
Expand Down

0 comments on commit c54f2b5

Please sign in to comment.