Building an IRC bot in Java
Asked Answered
D

3

8

After some googling an obvious answer or starting point for a Java IRC bot has not presented itself, my question; is there an existing framework to help me do build an IRC bot? Failing that, is this possible using Sockets in Java to do this and has anyone seen an example around the web?

cheers guys.

Downright answered 1/5, 2010 at 15:4 Comment(0)
P
9
  • SilverTrout has many, but simple plugins. Similar approach as PircBot, only pluggable.
  • IRClib
  • IRC-API - Mavenized. I haven't tried. Seems to be quite well designed. Documentation and javadocs can be found on the main page.
  • ThimBot by David Lloyd, JBoss.
  • PircBot is the most famous and probably most used, but suffers from hevay design misconceptions and uses several antipatterns. Only use for really simple bots.
  • PircBot' is a PircBot revival by David Lazar, adds some features, mainly SSL.
  • PircBot 1.7 by me. Mavenized. I've partly got rid of the God-object antipattern and changed logging to Slf4j / Log4j, plus some minor additions.
  • PircBotX is a re-implementation of PircBot. I haven't used it in a project (yet), but looks good; I want to migrate JawaBot to it.

  • 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.
    • JBoss AS Management plugin - allows users to connect to JBoss AS 7 / EAP 6 / WildFly and send CLI commands.
Pisistratus answered 14/7, 2013 at 9:20 Comment(0)
W
10
Wolframite answered 1/5, 2010 at 15:8 Comment(2)
after reading through the PircBot page, this is going to be much easier than expected, cant thank you enough.Downright
After having used PircBot in several projects I can say that it has shitty multilanguage support.Collative
P
9
  • SilverTrout has many, but simple plugins. Similar approach as PircBot, only pluggable.
  • IRClib
  • IRC-API - Mavenized. I haven't tried. Seems to be quite well designed. Documentation and javadocs can be found on the main page.
  • ThimBot by David Lloyd, JBoss.
  • PircBot is the most famous and probably most used, but suffers from hevay design misconceptions and uses several antipatterns. Only use for really simple bots.
  • PircBot' is a PircBot revival by David Lazar, adds some features, mainly SSL.
  • PircBot 1.7 by me. Mavenized. I've partly got rid of the God-object antipattern and changed logging to Slf4j / Log4j, plus some minor additions.
  • PircBotX is a re-implementation of PircBot. I haven't used it in a project (yet), but looks good; I want to migrate JawaBot to it.

  • 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.
    • JBoss AS Management plugin - allows users to connect to JBoss AS 7 / EAP 6 / WildFly and send CLI commands.
Pisistratus answered 14/7, 2013 at 9:20 Comment(0)
M
2

A recent IRC API project written in Java and has (a)synchronous programming model. It also supports saving the IRC server state, and SSL. Check it out!

  • IRC-API
  • Mitrailleuse answered 5/4, 2012 at 8:2 Comment(1)
    Hah, I will do, all though I finished building this bot a good 2 years ago! Cheers for the reply all the same ^^Downright

    © 2022 - 2024 — McMap. All rights reserved.