Mattie

Mattie

Jan 2nd, 2011
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.35 KB | None | 0 0
  1. package bot_versie_15;
  2.  
  3. import java.io.IOException;
  4. import java.io.InputStream;
  5. import java.io.UnsupportedEncodingException;
  6. import java.security.NoSuchAlgorithmException;
  7. import java.sql.ResultSet;
  8. import java.sql.SQLException;
  9. import java.util.ArrayList;
  10. import java.util.regex.*;
  11.  
  12. import org.jibble.pircbot.*;
  13.  
  14. public class MyBot extends PircBot implements Runnable
  15. {
  16.  
  17.     private String                  command     = "!";
  18.     private String                  me, owner, version, gebruiker;
  19.     private String[]                tijdelijk   = null;
  20.     private int                     senderID    = -1;
  21.     private String                  versionname = "1.5(alpha) 'Cretan Bull'";
  22.     //http://en.wikipedia.org/wiki/List_of_Greek_mythological_creatures
  23.     private ArrayList<Gebruiker>    userList;
  24. @@  private Database                db;
  25.     private ResultSet               rs;
  26.     private Debug                   d;
  27.     private int                     usercount   = 0;
  28.     private java.lang.Thread        thread;
  29.  
  30.     public MyBot()
  31.     {
  32.         version = versionname;
  33.         me = "JAVA-BOTTEST";
  34.         this.setName(me);
  35.         this.setVersion(version);
  36.         owner = "Mattie";
  37.         this.setLogin("JAVA-BOT");
  38.         Wait.manySec(2);//zodat de version name niet wordt gebruikt als way te lange login ;p
  39.         version = me + " Running version " + versionname;
  40. @@      db = new Database(this);
  41.         userList = new ArrayList<Gebruiker>();
  42.         getUsersFromDB();
  43.         d = new Debug();
  44.         thread = new Thread(this);
  45.         thread.start();
  46.         joinChannel("#javatest");
  47.     }
Advertisement
Add Comment
Please, Sign In to add comment