Skip to content

Latest commit

 

History

History
 
 

stocks-update-notification-bot-dotnet

Getting Started with Stocks Update Notification Bot Sample

Stocks Update Notifcation Bot is a an application that can be installed in different Microsoft Teams contexts, personal, group chat, or teams channel, which sends a message on a pre-defined schedule as an Adaptive Card to locations where it is installed.

Stocks Update Notification Bot Overview

Prerequisite

What you will learn in this sample

  • How to launch and debug an app using "F5" using Teams Toolkit for Visual Studio.
  • How to use a bot in different contexts

Try the Sample with Visual Studio Extension

Local Debug the Sample

  1. Clone the repo to your local workspace or directly download the source code.
  2. Download Visual Studio and install Teams Toolkit for Visual Studio Extension.
  3. Open the project in Visual Studio.
  4. Right click to the project, select Teams Toolkit > Prepare Teams App Dependencies.
  5. Press "F5" to launch the bot
  6. Sideloading your app to view into Microsoft Teams to view the Stocks Update Notification bot.

Provision and Deploy the Sample to Azure

If you don't have an Azure subscription, create a free account before you begin

You can create and automatically configure cloud resources for hosting your app in Azure using Teams Toolkit.

  1. Select the StocksUpdateNotificationBot > Teams Toolkit > Provision in the Cloud menu.
  2. In the Select your subscription window, choose the Azure subscription you want to use to create resources with.

Teams Toolkit will create Azure resources in this subscription but no code is deployed during this step. To deploy your project to these new resources:

  1. Select the StocksUpdateNotificationBot > Teams Toolkit > Deploy in the Cloud menu.

Use the app in Teams

  1. When you install the app into Microsoft Teams, it will immediately begin to send messages every thirty seconds into the location where you have installed it. There is no additional configuration required.

Code structure

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct.

For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.