Code Monkey home page Code Monkey logo

bot-covid-19's Introduction

bot-covid-19

Simple BOT using Bot Framework, collect information about COVID-19 (support Vietnamese)

Concepts introduced in this sample

    "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

Running the sample

  • Clone the repository
git clone https://github.com/Microsoft/botbuilder-samples.git
  • Open with visual studio 2019 and activate your desired virtual environment

Testing the bot using Bot Framework Emulator

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

Connect to bot using Bot Framework Emulator

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.

This step is specific to Microsoft Teams

  • Edit the manifest.json contained in the teams_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 the manifest.json)
  • Zip up the contents of the teams_app_manifest folder to create a manifest.zip
  • Upload the manifest.zip to Teams (in the Apps view click "Upload a custom app")

Deploy the bot to Heroku

To learn more about deploying a bot to Heroku, see Deploy your bot to Heroku for a complete list of deployment instructions.

Further reading

bot-covid-19's People

Contributors

rinlv avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.