Simple BOT using Bot Framework, collect information about COVID-19 (support Vietnamese)
"commands": [
{
"title": "*string*",
"description": "Hiển thị các tỉnh thành ở Việt Nam ghi nhận ca nhiễm COVID 19"
},
{
"title": "news",
"description": "Hiển thị tin tức mới nhất về COVID-19"
},
{
"title": "world",
"description": "Hiển thị số ca nhiễm trên thế giới"
},
{
"title": "all",
"description": "Hiển thị danh sách các nước ghi nhận ca nhiễm COVID-19"
},
{
"title": "*country*",
"description": "Hiển thị thông tin ca nhiễm COVID-19 theo tên nước (Eng)"
}
- Run scheduler job to notify if have latest news
- Clone the repository
git clone https://github.com/Microsoft/botbuilder-samples.git
- Open with visual studio 2019 and activate your desired virtual environment
Microsoft Bot Framework Emulator is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel.
- Install the Bot Framework emulator from here
- Launch Bot Framework Emulator
- File -> Open Bot
- Paste this URL in the emulator window - http://localhost:3978/api/messages
With the Bot Framework Emulator connected to your running bot, the sample will now respond to an HTTP GET that will trigger a proactive message. The proactive message can be triggered from the command line using curl
or similar tooling, or can be triggered by opening a browser windows and nagivating to http://localhost:3978/api/notify
.
- Edit the
manifest.json
contained in theteams_app_manifest
folder to replace your Microsoft App Id (that was created when you registered your bot earlier) everywhere you see the place holder string<<YOUR-MICROSOFT-APP-ID>>
(depending on the scenario the Microsoft App Id may occur multiple times in themanifest.json
) - Zip up the contents of the
teams_app_manifest
folder to create amanifest.zip
- Upload the
manifest.zip
to Teams (in the Apps view click "Upload a custom app")
To learn more about deploying a bot to Heroku, see Deploy your bot to Heroku for a complete list of deployment instructions.