EvotecIT / PSDiscord

Simple PowerShell module allowing to send messages to Discord Channel over webhooks
47 stars 7 forks source link
discord hacktoberfest linux macos powershell webhook

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

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