Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package bot_versie_15;
- import java.io.IOException;
- import java.io.InputStream;
- import java.io.UnsupportedEncodingException;
- import java.security.NoSuchAlgorithmException;
- import java.sql.ResultSet;
- import java.sql.SQLException;
- import java.util.ArrayList;
- import java.util.regex.*;
- import org.jibble.pircbot.*;
- public class MyBot extends PircBot implements Runnable
- {
- private String command = "!";
- private String me, owner, version, gebruiker;
- private String[] tijdelijk = null;
- private int senderID = -1;
- private String versionname = "1.5(alpha) 'Cretan Bull'";
- //http://en.wikipedia.org/wiki/List_of_Greek_mythological_creatures
- private ArrayList<Gebruiker> userList;
- @@private Database db;
- private ResultSet rs;
- private Debug d;
- private int usercount = 0;
- private java.lang.Thread thread;
- public MyBot()
- {
- version = versionname;
- me = "JAVA-BOTTEST";
- this.setName(me);
- this.setVersion(version);
- owner = "Mattie";
- this.setLogin("JAVA-BOT");
- Wait.manySec(2);//zodat de version name niet wordt gebruikt als way te lange login ;p
- version = me + " Running version " + versionname;
- @@db = new Database(this);
- userList = new ArrayList<Gebruiker>();
- getUsersFromDB();
- d = new Debug();
- thread = new Thread(this);
- thread.start();
- joinChannel("#javatest");
- }
Advertisement
Add Comment
Please, Sign In to add comment