# PSBlackListChecker – Added Discord support

It’s been less than 24 hours since I’ve released PSBlackListChecker with support, among other improvements, for Microsoft Teams and Slack and I’m now adding Discord to the mix. Discord was a popular request (well not really, just one person asked, but let’s pretend everyone loves PSBlackListChecker so much that they are too shy to ask for feature requests!).

blog

03 Nov 2018 en

![PSBlackListChecker – Added Discord support](/wp-content/uploads/2018/11/img_5bddf4c2bfdcc.png)

It's been less than 24 hours since I've released **PSBlackListChecker** with support, among other improvements, for [**Microsoft Teams** and](https://evotec.xyz/psblacklistchecker-notifications-to-microsoft-teams-slack-of-blacklisted-ips/)**[Slack](https://evotec.xyz/psblacklistchecker-notifications-to-microsoft-teams-slack-of-blacklisted-ips/) **and I'm now adding **Discord** to the mix. **Discord **was a popular request (well not really, just one person asked, but let's pretend everyone loves **PSBlackListChecker **so much that they are too shy to ask for feature requests!).

[!\[Discord notification from PSBlackListChecker showing a blacklisted IP alert\](/wp-content/uploads/2018/11/img_5bddf4c2bfdcc.png)](/wp-content/uploads/2018/11/img_5bddf4c2bfdcc.png)

> Please notice this article **contains parts of information **(still useful) and **may not reflect all functionalities of this module**. For download, source code and so on you should refer to the dedicated **[PSBlackListChecker](https://evotec.xyz/hub/scripts/psblacklistchecker/)**module page. After reading this one of course! It contains useful *information*, *examples, *and *know-how*. Without it, you may not know all the features.

### 💡 How to use PSBlackListChecker with Discord

There is merely a new section that shows up in the config file, and you will also have to do one little step of installing a module from **PowerShellGallery**.

```powershell
#using module PSDsHook
Import-Module PSBlackListChecker

$EmailParameters = @{
    EmailFrom            = "monitoring@domain.pl"
    EmailTo              = "przemyslaw.klys@domain.pl" #
    EmailCC              = ""
    EmailBCC             = ""
    EmailServer          = ""
    EmailServerPassword  = ""
    EmailServerPort      = "587"
    EmailServerLogin     = ""
    EmailServerEnableSSL = 1
    EmailEncoding        = "Unicode"
    EmailSubject         = "[Reporting] Blacklist monitoring"
    EmailPriority        = "Low" # Normal, High
}
$FormattingParameters = @{
    CompanyBranding   = @{
        Logo   = "/wp-content/uploads/2015/05/Logo-evotec-012.png"
        Width  = "200"
        Height = ""
        Link   = "https://evotec.xyz"
        Inline = $false
    }
    FontFamily        = "Calibri Light"
    FontSize          = "9pt"
    FontHeadingFamily = "Calibri Light"
    FontHeadingSize   = "12pt"
}
$ReportOptions = @{
    MonitoredIps         = @{
        Ip1 = '89.25.253.1'
        Ip2 = '188.117.129.1'
        # you can add as many Ip's as you want / IP1,2,3,4,5 etc
    }
    NotificationsEmail   = @{
        Use                          = $false
        EmailPriorityWhenBlacklisted = 'High'
        EmailPriorityStandard        = 'Low'
        EmailAllResults              = $false
        EmailAlways                  = $true
        SortBy                       = 'IsListed' # Options: 'IP', 'BlackList', 'IsListed', 'Answer', 'FQDN
        SortDescending               = $true
    }
    # Module uses PSTeams - it comes embedded with PSTeams
    NotificationsTeams   = @{
        Use              = $false
        TeamsID          = ''
        MessageTitle     = 'IP Blacklisted'
        MessageText      = 'Everybody panic!'
        MessageImageLink = 'https://raw.githubusercontent.com/EvotecIT/PSTeams/master/Links/Asset 130.png'
        MessageButtons   = $true
    }
    # Module uses PSSlack - it comes embedded with PSBlackListChecker
    NotificationsSlack   = @{
        Use            = $false
        Channel        = '#general'
        Uri            = ""
        MessageTitle   = 'IP Blacklisted'
        MessageText    = 'Everybody panic!'
        MessageButtons = $true
        MessageEmoji   = ':hankey:'  # Emoji List https://www.webpagefx.com/tools/emoji-cheat-sheet/
        MessageAsUser  = 'PSBlackListChecker'
    }
    # Discord requires using module PSDsHook at the top
    # It also requires Install-Module PSDsHook
    NotificationsDiscord = @{
        Use              = $false
        Uri              = 'https://discordapp.com/api/webhooks/...'
        MessageImageLink = 'https://raw.githubusercontent.com/EvotecIT/PSTeams/master/Links/Asset 130.png'
        MessageColor     = 'blue'
        MessageText      = 'Everybody panic!'
    }
}

Start-ReportBlackLists -EmailParameters $EmailParameters -FormattingParameters $FormattingParameters -ReportOptions $ReportOptions
```

If you're interested in **Microsoft Teams** or **Slack**, please visit**[PSBlackListChecker – Notifications to Microsoft Teams, Slack 0f Blacklisted IPs](https://evotec.xyz/psblacklistchecker-notifications-to-microsoft-teams-slack-of-blacklisted-ips/) **for more information.

### 💡 Installing module from PowerShellGallery

To be able to use **Discord** with **PSBlackListChecker** you need to install an additional module from **PowerShellGallery**.

```powershell
Install-Module -Name "PSDsHook"
```

This module is open source (sources available on [GitHub](https://github.com/gngrninja/PSDsHook)) and released by Mike Roberts. He was also so kind to add support for **PowerShell 5.1** so we can enjoy this great module.

## Related Projects

Projects that align with this post's tags, categories, and content.

[All projects](/projects/)

Matching projects...

[Back to Blog](/blog)

## Related posts

- [PowerBGInfo 2.x: support-ready Windows backgrounds from PowerShell](/blog/powerbginfo-support-ready-windows-backgrounds/)
- [Track Ubiquiti Unifi Stock, and get notified of changes](/blog/simplify-notifications-about-ubiquiti-unifi-stock/)
- [PowerBGInfo – PowerShell alternative to Sysinternals BGInfo](/blog/powerbginfo-powershell-alternative-to-sysinternals-bginfo/)

<!-- PowerForge markdown artifact sha256:FB0D689C7766F72F1F02DA34DB762FEF4A7907B6EF708B8F608CABB178BD277C -->
