Skip to content
This repository has been archived by the owner on Dec 15, 2024. It is now read-only.

Latest commit

 

History

History
45 lines (27 loc) · 1.16 KB

README.md

File metadata and controls

45 lines (27 loc) · 1.16 KB

Send-Pokemon

The Send-Pokemon script sends a Pokemon image & stats to a Teams channel using a Teams webhook connector URI.

This script will only send to teams if the $DeployPokemon variable is set to true which is randomized.

Pokemon images & facts are pulled from the pokeapi.glitch.me API


Send-Pokemon

Send-Pokemon

Initial Setup & Running

  1. Teams Channel > Connectors > Incoming Webhook
  2. Give the Webhook a name & logo
    • Create the Webhook
  3. Copy the URI
    • The URI is how you tell the script what teams channel to send posts to.

    .\Send-Pokemon.ps1 -TeamsURI 'https://outlook.office.com/webhook/123/123/123/.....'

Using the defined webhooks connector URI a random dad joke is sent to the webhooks Teams channel.

No output is displayed to the console. Using the -Verbose option will give you a basic display output

Help 📘

  • Help info and a list of parameters can be found by running Get-Help .\Send-Pokemon.ps1, such as:
Get-Help .\Send-Pokemon.ps1
Get-Help .\Send-Pokemon.ps1 -Full