https://github.com/celerium/teamsfun
Just a simple module for posting things to Microsoft Teams
https://github.com/celerium/teamsfun
api celerium reddit teams
Last synced: 8 months ago
JSON representation
Just a simple module for posting things to Microsoft Teams
- Host: GitHub
- URL: https://github.com/celerium/teamsfun
- Owner: Celerium
- License: mit
- Created: 2024-12-15T18:20:34.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-15T22:55:20.000Z (over 1 year ago)
- Last Synced: 2025-04-05T13:44:13.434Z (about 1 year ago)
- Topics: api, celerium, reddit, teams
- Language: PowerShell
- Homepage: https://celerium.github.io/TeamsFun/
- Size: 1.02 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# 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
1. Teams Channel > Connectors > Incoming Webhook
- Give the webhook a name, logo, & create the webhook
2. Copy the URI
- The URI is how you tell the script what teams channel to send a post to
```posh
.\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:
```posh
Get-Help Send-TeamsPurr.ps1
Get-Help Send-TeamsPurr.ps1 -Full
```
---
## Send-TeamsDadJoke
Dad jokes are randomly selected from [icanhazdadjoke.com](icanhazdadjoke.com)

---
## Send-TeamsPokemon
Pokemon data is pulled from the [PokeAPI API](https://pokeapi.co/) using the [PokeAPI Powershell wrapper](https://www.powershellgallery.com/packages/PokeAPI)
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](https://dogapi.dog)
When the r/Puppies subreddit is used, the Teams post will be formatting to accommodate for the puppies size.

---