寻找纯PowerShell IRC客户端
我正在寻找用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
http://ps1.soapyfrog.com/2007 /01/31/irc-chat-bot-and-monitor/
http://ps1.soapyfrog.com/2007/01/31/irc-chat-bot-and-monitor/
此 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