用 Java 构建 IRC 机器人的最佳库是什么?

发布于 2024-11-10 03:46:14 字数 1536 浏览 10 评论 0原文

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

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

发布评论

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

评论(3

再可℃爱ぅ一点好了 2024-11-17 03:46:14

Netty 是一个您可能想了解的事件驱动的 IO 框架。

Netty is an event-driven IO framework you might want to look at.

∞琼窗梦回ˉ 2024-11-17 03:46:14

irc-api,一个设计良好的 Java IRC API,提供了其他 IRC API 不具备的一些功能't(如异步命令)。主要功能包括:

  • 状态(完整/较少)API
  • 回调支持/异步
  • 消息侦听器 - 消息过滤器
  • SSL 实现
  • DCC 实现
  • SLF4J/Maven 集成

您可能想尝试一下!

irc-api, a well designed Java IRC API that offers some features other IRC APIs don't (like asynchronous commands). Main features are:

  • State(ful/less) API
  • Callbacks support / Asynchronous
  • Message Listeners - Message Filters
  • SSL implementation
  • DCC implementation
  • SLF4J/Maven integration

You might wanna give it a try!

穿透光 2024-11-17 03:46:14

我已经编写了您在评论中提到的这样的框架:

JawaBot 2.x 是一款具有 IRC 和 Web UI 的可插入独立应用程序,旨在将多种功能置于一个机器人下,同时仍然保持代码结构的合理性。 Maven化
目前,有几个插件:

  • Jira - 从 Jira 问题跟踪器解析名称、状态和受让人。可配置。默认配置支持开源存储库:JBoss、Codehaus、Apache 等。
  • 记录器 - 将 IRC 事件记录到数据库。有一个网络用户界面。
  • 预留 - 通过 IRC 预留资源。有一个网络用户界面。
  • WhereIs - 在所有通道中查找缺口,支持通配符。
  • Messenger - 在连接时向离线用户传递消息(“答录机”)。
  • PasteBin - 让用户通过 PM 粘贴文本,保存它,并将 Web UI 的链接发布到频道。
  • AutoOp - 为用户提供操作。
  • 社交 - 对“嗨!”做出反应类似Hello World 插件

如果你不喜欢这个,你可以尝试 PircBotX,它试图修复 PircBot 的错误设计。

其他选项列表也在这里:用 Java 构建 IRC 机器人

I've already written such framework you mention in comment:

JawaBot 2.x is a pluggable standalone application with IRC and web UI which aims to put multiple functionalities under one bot, while still keeping the structure of the code sane. Mavenized.
Currently, there are few plugins:

  • Jira - resolves name, status and assignee from a Jira issue tracker. Configurable. Default config supports opensource repos: JBoss, Codehaus, Apache and others.
  • Logger - logs IRC events to a DB. Has a web UI.
  • Reservation - for reservation of resources over IRC. Has a web UI.
  • WhereIs - looks for nicks in all channels, supports wildcards.
  • Messenger - delivers messages to users which are offline when they connect ("answering machine").
  • PasteBin - let's user paste text through PM, saves it, and posts a link to a web UI to the channel.
  • AutoOp - gives op to users.
  • Social - reacts to "Hi!" etc. Kind of Hello World plugin.

If you're not into that, you may try PircBotX which tries to fix PircBot's wrong design.

List of other options is also here: Building an IRC bot in Java

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