All pastes #340661 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-02-04 22:41 UTC
rendered paste body
import org.jibble.pircbot.*;

public class MyBot extends PircBot {

  public MyBot() {
    this.setName("MyBot");
  }

}
import org.jibble.pircbot.*;

public class MyBotMain {

  public static void main(String[] args) throws Exception {

    // Now start our bot up.
    MyBot bot = new MyBot();

    // Enable debugging output.
    bot.setVerbose(true);

    // Connect to the IRC server.
    bot.connect("irc.freenode.net");

    // Join the #pircbot channel.
    bot.joinChannel("#pircbot");

  }

}