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.
- Visual Studio 2022, version 17.3 or higher.
- Latest Teams Toolkit for Visual Studio.
- A Microsoft 365 account. If you do not have Microsoft 365 account, apply one from Microsoft 365 developer program.
- How to launch and debug an app using "F5" using Teams Toolkit for Visual Studio.
- How to use a bot in different contexts
- Clone the repo to your local workspace or directly download the source code.
- Download Visual Studio and install Teams Toolkit for Visual Studio Extension.
- Open the project in Visual Studio.
- Right click to the project, select Teams Toolkit > Prepare Teams App Dependencies.
- Press "F5" to launch the bot
- Sideloading your app to view into Microsoft Teams to view the Stocks Update Notification bot.
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.
- Select the StocksUpdateNotificationBot > Teams Toolkit > Provision in the Cloud menu.
- 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:
- Select the StocksUpdateNotificationBot > Teams Toolkit > Deploy in the Cloud menu.
- 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.
- You can check app configuration and environment information in: StocksUpdateNotificationBot/.fx
- You will the bot code in: StocksUpdateNotificationBot/NotifyTimerTrigger.cs
- You will fine the adaptive card template in: StocksUpdateNotificationBot/Resources/notificationDefault.json
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.