GithubHelp home page GithubHelp logo

jeaye / pircbotx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pircbotx/pircbotx

0.0 2.0 0.0 10.62 MB

Modern Java IRC Library

Home Page: http://pircbotx.github.io/pircbotx/latest/apidocs/

Java 99.18% HTML 0.62% Shell 0.20%

pircbotx's Introduction

Build Status Codacy Badge Join the chat at https://gitter.im/pircbotx-irc/Lobby

November 2018 PircBotX 2.2 released

November 2017 Project moved from /TheLQ/pircbotx to a new github organisation /pircbotx/pircbotx

January 2016 PircBotX 2.1 is finally released!

June 2015 We've moved from Google Code! Issues, wiki, javadocs, and git mirror are on GitHub.

Current Version: 2.2 - See Migration Guide to 2.x and ChangeLog for more information

PircBotX is a powerful and flexible Java IRC library forked from the popular PircBot framework, bringing many new up-to-date features and bug fixes in an official alternative distribution.

  • Robust, multi-threaded Event-Listener system with over 50 supported IRC events
  • Powerful Channel/User Model
  • Native SSL support using SSLSocket or STARTTLS
  • Standard and reverse/passive DCC Chat and Filesharing
  • CTCP VERSION, ACTION, PING, TIME, and FINGER support
  • IPv6 IRC servers and DCC clients
  • Op, voice, halfop, superops, and owner user modes
  • IRCv3 CAP negotiation with native support for SASL, TLS, away-notify, and message tags
  • WEBIRC support
  • Built in Ident server

Checkout the Wiki for tutorials and documentation

PircBotX in 3 Steps

A brief getting started guide

import org.pircbotx.Configuration;
import org.pircbotx.PircBotX;
import org.pircbotx.hooks.ListenerAdapter;
import org.pircbotx.hooks.types.GenericMessageEvent;

public class MyListener extends ListenerAdapter {
        @Override
        public void onGenericMessage(GenericMessageEvent event) {
                //When someone says ?helloworld respond with "Hello World"
                if (event.getMessage().startsWith("?helloworld"))
                        event.respond("Hello world!");
        }

        public static void main(String[] args) throws Exception {
                //Configure what we want our bot to do
                Configuration configuration = new Configuration.Builder()
                                .setName("PircBotXUser") //Set the nick of the bot. CHANGE IN YOUR CODE
                                .addServer("irc.freenode.net") //Join the freenode network
                                .addAutoJoinChannel("#pircbotx") //Join the official #pircbotx channel
                                .addListener(new MyListener()) //Add our listener that will be called on Events
                                .buildConfiguration();

                //Create our bot with the configuration
                PircBotX bot = new PircBotX(configuration);
                //Connect to the server
                bot.startBot();
        }
}
  • Join the #pircbotx channel on irc.freenode.net and send ?helloworld . Your bot will respond with Hello world! Since its a GenericMessageEvent, it will also respond when private messaged. Congratulations, you just wrote your first bot!

PircBotX can do so much more! Read the docs for more information.

Support

Most answers can be found in the docs, javadocs (http://pircbotx.github.io/pircbotx/latest/apidocs/) and the wiki.

If you can't find an answer, ask on IRC at irc.freenode.net/#pircbotx . We also have a mailing list.

License

This project is licensed under GNU GPL v3 to be compatible with the PircBot license.

It is assumed that commercial users can buy the commercial license of PircBot which grants "modification of the Product's source-code and incorporation of the modified source-code into your software"

The PircBot developer has ignored multiple emails asking for a less restrictive license and clarification of the commercial license. Users can show support by respectfully asking him directly at pircbot developer's email. More up to date information is available at in Issue #63.

pircbotx's People

Contributors

thelq avatar hoerup avatar emabrey avatar cypherke avatar vbehar avatar micheljung avatar theroflcoptr avatar dependabot[bot] avatar stewue avatar dqkev avatar md-5 avatar gitter-badger avatar sgloutnikov avatar mbooth101 avatar harkin avatar bheesham avatar amshaegar13 avatar aerinnight avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.