TeamsFun
Just a simple module for posting silly things to Microsoft Teams
Contains the following cmdlets
- Send-TeamsDadJoke
- Send-TeamsPokemon
- Send-TeamsPurr
- Send-TeamsWoof
Initial Setup & Running
- Teams Channel > Connectors > Incoming Webhook
- Give the webhook a name, logo, & create the webhook
- Copy the URI
- The URI is how you tell the script what teams channel to send a post to
.\Send-TeamsPurr.ps1 -TeamsURI 'https://outlook.office.com/webhook/123/.....'
Help :blue_book:
- Help info and a list of parameters can be found by running
Get-Help .\CommandName
, such as:
Get-Help Send-TeamsPurr.ps1
Get-Help Send-TeamsPurr.ps1 -Full
Send-TeamsDadJoke
Dad jokes are randomly selected from icanhazdadjoke.com
Send-TeamsPokemon
Pokemon data is pulled from the PokeAPI API using the PokeAPI Powershell wrapper
When this script runs it randomly selects a day of the week and tries to match it to the current day of the week. I put this in to simulate wondering through tall grass to randomly get a pokemon
Send-TeamsPurr
An image is randomly selected from a random cat subreddit. Cat facts are pulled from the catfact.ninja API When the r/Chonkers subreddit is used, the Teams post will be formatting to accommodate for the chonks size.
Send-TeamsWoof
An image is randomly selected from a random dog subreddit. Dog facts are pulled from the Dog API When the r/Puppies subreddit is used, the Teams post will be formatting to accommodate for the puppies size.