|
5 | 5 | import sys
|
6 | 6 | import uuid
|
7 | 7 | from datetime import datetime
|
8 |
| -<<<<<<< HEAD |
9 |
| -======= |
10 |
| -from typing import Dict |
11 |
| ->>>>>>> 63f59b1... adding place holders for samples |
12 | 8 |
|
13 | 9 | from flask import Flask, request, Response
|
14 | 10 | from botbuilder.core import (
|
15 | 11 | BotFrameworkAdapterSettings,
|
16 | 12 | TurnContext,
|
17 | 13 | BotFrameworkAdapter,
|
18 | 14 | )
|
19 |
| -<<<<<<< HEAD |
20 | 15 | from botbuilder.schema import Activity, ActivityTypes
|
21 | 16 |
|
22 | 17 | 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 |
28 | 18 |
|
29 | 19 | # Create the loop and Flask app
|
30 | 20 | LOOP = asyncio.get_event_loop()
|
@@ -66,24 +56,13 @@ async def on_error(context: TurnContext, error: Exception):
|
66 | 56 |
|
67 | 57 | ADAPTER.on_turn_error = on_error
|
68 | 58 |
|
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 |
76 | 59 | # If the channel is the Emulator, and authentication is not in use, the AppId will be null.
|
77 | 60 | # We generate a random AppId for this case only. This is not required for production, since
|
78 | 61 | # the AppId will have a value.
|
79 | 62 | APP_ID = SETTINGS.app_id if SETTINGS.app_id else uuid.uuid4()
|
80 | 63 |
|
81 | 64 | # Create the Bot
|
82 |
| -<<<<<<< HEAD |
83 | 65 | BOT = TeamsConversationBot(APP.config["APP_ID"], APP.config["APP_PASSWORD"])
|
84 |
| -======= |
85 |
| -BOT = ProactiveBot(CONVERSATION_REFERENCES) |
86 |
| ->>>>>>> 63f59b1... adding place holders for samples |
87 | 66 |
|
88 | 67 | # Listen for incoming requests on /api/messages.
|
89 | 68 | @APP.route("/api/messages", methods=["POST"])
|
|
0 commit comments