8000 pushing current version of teams conversation bot · guptarohan41/botbuilder-python@9cebf91 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9cebf91

Browse files
committed
pushing current version of teams conversation bot
1 parent 047fdfc commit 9cebf91

File tree

1 file changed

+0
-21
lines changed
  • samples/57.teams-conversation-bot

1 file changed

+0
-21
lines changed

samples/57.teams-conversation-bot/app.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,16 @@
55
import sys
66
import uuid
77
from datetime import datetime
8-
<<<<<<< HEAD
9-
=======
10-
from typing import Dict
11-
>>>>>>> 63f59b1... adding place holders for samples
128

139
from flask import Flask, request, Response
1410
from botbuilder.core import (
1511
BotFrameworkAdapterSettings,
1612
TurnContext,
1713
BotFrameworkAdapter,
1814
)
19-
<<<<<<< HEAD
2015
from botbuilder.schema import Activity, ActivityTypes
2116

2217
from bots import TeamsConversationBot
23-
=======
24-
from botbuilder.schema import Activity, ActivityTypes, ConversationReference
25-
26-
from bots import ProactiveBot
27-
>>>>>>> 63f59b1... adding place holders for samples
2818

2919
# Create the loop and Flask app
3020
LOOP = asyncio.get_event_loop()
@@ -66,24 +56,13 @@ async def on_error(context: TurnContext, error: Exception):
6656

6757
ADAPTER.on_turn_error = on_error
6858

69-
<<<<<<< HEAD
70-
=======
71-
# Create a shared dictionary. The Bot will add conversation references when users
72-
# join the conversation and send messages.
73-
CONVERSATION_REFERENCES: Dict[str, ConversationReference] = dict()
74-
75-
>>>>>>> 63f59b1... adding place holders for samples
7659
# If the channel is the Emulator, and authentication is not in use, the AppId will be null.
7760
# We generate a random AppId for this case only. This is not required for production, since
7861
# the AppId will have a value.
7962
APP_ID = SETTINGS.app_id if SETTINGS.app_id else uuid.uuid4()
8063

8164
# Create the Bot
82-
<<<<<<< HEAD
8365
BOT = TeamsConversationBot(APP.config["APP_ID"], APP.config["APP_PASSWORD"])
84-
=======
85-
BOT = ProactiveBot(CONVERSATION_REFERENCES)
86-
>>>>>>> 63f59b1... adding place holders for samples
8766

8867
# Listen for incoming requests on /api/messages.
8968
@APP.route("/api/messages", methods=["POST"])

0 commit comments

Comments
 (0)
0