Roll A Dice! - Building a Command Bot for Microsoft Teams Using Team Toolkit v4 with VS Code 🎲

Published: 15 September 2022
on channel: Microsoft 365 Developer
2,893
38

(⚠️ The audio breaks sometimes, so please turn on the Closed Caption by clicking the "CC" icon!).
A walk-through of how to create a "Roll a dice" chat bot that returns a random number between 1 and 6, when a user sends a command, with Teams Toolkit in VS Code using JavaScript and Adaptive Cards Builder for the message UI.

💻 To install Teams Toolkit for VS Code, go there: https://marketplace.visualstudio.com/...

📽 To learn how to install Teams Toolkit and the prerequisites, watch this first:
   • App scaffolding with Microsoft Teams ...  

📄 [Updated on Oct 21, 2022] The written tutorial with code snippets is now available at: https://dev.to/girlie_mac/roll-a-dice...

#Microsoft365 #VSCode #MicrosoftTeams #JavaScript #bot

00:00 Intro
00:33 Create a new app scaffolding in Teams Toolkit
01:10 Explore the template app and test-run on Teams client
02:30 Tweak the code to make the bot to take a "dice" command and reply
04:46 Create the message UI with Adaptive Cards with a visual tool
07:22 Run the dice bot on Teams
08:15 Hack suggestion & outro