寻找纯PowerShell IRC客户端

发布于 2024-08-01 14:04:00 字数 183 浏览 10 评论 0原文

我正在寻找用 PowerShell 编写的 IRC 客户端库/脚本。 目标是替换使用 Net::IRC 与 MindAlign 通道通信的 Perl 脚本。

SmartIrc4net 可以在紧要关头完成,但为了简单起见,我宁愿有一个纯粹的实现。

有想法吗?

I'm looking for a IRC client library/script written in PowerShell. The goal is to replace a Perl script that uses Net::IRC to communicate with a MindAlign channel.

SmartIrc4net will do in a pinch, but I'd rather have a pure implementation for simplicities sake.

Ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

扭转时空 2024-08-08 14:04:00

此 PowerShell 命令创建一个名为 monitor 的机器人,该机器人连接到给定的 IRC 服务器。 然后,它在脚本块中指定其主体,指定将所有消息通过管道传输到父命令。 然后,输出通过管道传送到 Select-String (sls),以 grep 表示“amazing”。

.\Run-IrcBot.ps1 监控 ircserver 通道 { if ($message.Text) { "/pipe " + $message.Text } } -Silent | sls 太棒了

我一直在寻找一种方法,让 IRC 机器人在 PowerShell 中按需运行命令。 没有找到简单的东西,所以我编写了自己的小框架。 单个文件下载允许您制作完全交互式的 IRC 机器人!

https://github.com/alejandro5042/Run-IrcBot

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文