EvotecIT / PSDiscord

Simple PowerShell module allowing to send messages to Discord Channel over webhooks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PSDiscord - PowerShell Module

PSDiscord is a PowerShell Module working on Windows / Linux and Mac. It allows to send notifications to Discord. It's pretty flexible and provides of easy to use cmdlets.

For description and advanced usage visit PSDiscord dedicated page.

Updates

  • 0.2.4 / 2021.06.06
    • Replaced [RGBColors] with [string] and defined 800+ colors in New-DiscordSection
  • 0.2.3 / 2021.06.01
    • Supports UTF8 chars/emoji
  • 0.0.6 / 2019.01.01
    • small improvements
  • 0.0.5 / 2018.12.30
    • first release

Installing on Windows / Linux / MacOS

Install-Module PSDiscord
#Install-Module PSPSDiscord -Scope CurrentUser

Updating on Windows / Linux / MacOS

Update-Module PSDiscord

Usage

$Uri = 'https://discordapp.com/api/webhooks/5083323013'

$Author = New-DiscordAuthor -Name 'PSBlacklistChecker' -IconUrl "https://raw.githubusercontent.com/EvotecIT/PSDiscord/master/Links/Asset%20130.png"
$Fact = New-DiscordFact -Name 'Blacklisted IP 89.74.48.97' -Value 'Found on blacklist dnsbl.sorbs.net' -Inline $false
$Thumbnail = New-DiscordThumbnail -Url "https://raw.githubusercontent.com/EvotecIT/PSDiscord/master/Links/Asset%20130.png"
$Section = New-DiscordSection -Title 'Everybody panic!' -Description '' -Facts $Fact, $Fact, $Fact -Color BlueViolet -Author $Author -Thumbnail $Thumbnail -Image $Thumbnail
Send-DiscordMessage -WebHookUrl $Uri -Sections $Section -AvatarName 'PSBlackListChecker' -AvatarUrl "https://raw.githubusercontent.com/EvotecIT/PSDiscord/master/Links/Asset%20130.png"

How does it look like?

image

About

Simple PowerShell module allowing to send messages to Discord Channel over webhooks


Languages

Language:PowerShell 100.0%