This PowerShell command creates a bot named monitor that conencts to the given IRC server. It then specifies its body in a scriptblock, specifying to pipe all messages to the parent command. The output is then piped to Select-String (sls) to grep for "amazing."
.\Run-IrcBot.ps1 monitor ircserver channel { if ($message.Text) { "/pipe " + $message.Text } } -Silent | sls amazing
I was looking for a way to make IRC bots in PowerShell to run commands on demand. Didn't find something easy so I wrote my own little framework. A single-file download allows you to make fully-interactive IRC bots!
https://github.com/alejandro5042/Run-IrcBot