|
import Network.Network; import Network.NetworkListener; import Password.Password; import java.awt.Toolkit; import java.util.StringTokenizer;
public class Bot implements NetworkListener, Runnable {
private Bot(String as[]) { System.out.println("Erster Java Bot!\n"); System.out.println("Coded by me!\n"); channel = ""; nickname = ""; password = ""; bot = ""; mode = ""; Toolkit.getDefaultToolkit().beep(); if(as.length < 2) { System.out.println("Nickname, Passwort und Channel \374bergeben!\n"); System.exit(-1); } nickname = as[0]; password = as[1]; channel = as[2]; bot = as[3]; mode = as[4]; net = new Network(this); (new Thread(this)).start(); }
public static void main(String args[]) { new Bot(args); }
public void connectionLost(Network network) { }
public void stringRecieved(Network network, String s) { StringTokenizer stringtokenizer = new StringTokenizer(s, "\0"); String s1 = stringtokenizer.nextToken(); if(s1.equals("4")) { String s2 = stringtokenizer.nextToken(); StringTokenizer stringtokenizer1 = new StringTokenizer(s2, "|"); String s13 = stringtokenizer1.nextToken(); System.out.println((new StringBuilder()).append(s13).append(" pingt dich!").toString()); network.sendString((new StringBuilder()).append("h\0").append(s2).toString(), 0); } if(s1.equals("(")) { String s3 = stringtokenizer.nextToken(); network.sendString((new StringBuilder()).append("n\0").append(channel).append("\0").append(nickname).append("\0").append(Password.getPasswd(password, s3)).toString(), 0); } if(s1.equals("k")) { String s5 = stringtokenizer.nextToken(); if(s5.startsWith("Beachte ")) { System.out.println("ACHTUNG! Wurde geflamt! Bin weg!"); network.sendString((new StringBuilder()).append("e\0").append(channel).append("\000/time").toString(), 0); network.disconnect(); } if(s5.startsWith(">>> ACHTUNG")) { System.out.println("ACHTUNG! Wurde geflamt! Bin weg!"); network.sendString((new StringBuilder()).append("e\0").append(channel).append("\000/time").toString(), 0); network.disconnect(); } } if(s1.equals("l")) { String s6 = stringtokenizer.nextToken(); s6 = stringtokenizer.nextToken(); for(int i = 0; i < admins.length; i++) if(s6.equalsIgnoreCase(admins[i])) { network.sendString((new StringBuilder()).append("e\0").append(channel).append("\000/time").toString(), 0); int j = (int)(Math.random() * 43467D + 10560D); System.out.println((new StringBuilder()).append("Admin ").append(admins[i]).append(" hat den Channel betreten! Bin in ").append(j).append(" Millisekunden Offline!").toString()); try { Thread.sleep(j); } catch(Throwable throwable) { } network.disconnect(); int l = (int)(Math.random() * 193467D + 18560D); System.out.println((new StringBuilder()).append("Baue Verbindung in ").append(l).append(" Sekunden wieder auf!").toString()); try { Thread.sleep(l); } catch(Throwable throwable3) { } net = new Network(this); (new Thread(this)).start(); }
if(s6.startsWith("")) System.out.println((new StringBuilder()).append(s6).append(" betritt den Channel! ").toString()); } }
public void stringSend(Network network, String s) { }
public void run() { while(net.connected) { if(net.connected) net.sendString((new StringBuilder()).append("e\0").append(channel).append("\000/a").toString(), 0); if(mode.equals("private")) { net.sendString((new StringBuilder()).append("e\0").append(channel).append("\000/p James:").append(bot).toString(), 0); } if(mode.equals("public")) { net.sendString((new StringBuilder()).append("e\0").append(channel).append("\000/a ").append(bot).toString(), 0); } try { Thread.sleep(30000L); } catch(Throwable throwable) { } } } Network net; String channel; String nickname; String password; String bot; String mode; String admins[] = { "00Kr\u00fcmelchen00", "11olli11", "14tiger14", "1991er Fireman", "19Magicg80", "1marie4", "60wattbirne", "Agnostic-Hardcore", "Al-bhed-girl", "AleVonDale", "Alexx666", "Ampelm\u00e4nnchen+w", "Anton14", "Avril@Sk8erboi", "B-u-t-t-e-r-f-l-y", "B00g-Y-mAn", "Babewatcha", "Bad Boy 2610", "Barcardi 87", "Beowulf der Engel", "Bithya", "BlackDevil83", "Blondi121", "BlueIce1982", "Bluephoenix1982", "Boy4Girl18", "BsC-Berlin", "Bushido19", "Crazy Chocolate", "CrazySurfer2003", "Da new em style01", "Dandalf", "DarkAngel2xX", "DarkAngel46", "Dear Bunny", "Detektiv007", "Deuces", "Dodo the first", "Erdbeermausi", "Farin den Urlaub", "GlennDanzig1979", "Gollum222", "Hathorman", "Hive", "IrishCoffee", "JCT-Designer", "Joey1225", "Jones@undergroundsekte", "Joyce-Fay", "King Nick", "KleinerFruchtzwerg", "Knuddel-Inna", "Knuddelmaus8158", "Knuddlbär82", "Kübimaus", "Legolas@HerrDerRinge", "Lilane Giraffe", "LittleTiger86", "Longing", "M@ik100", "Mainzer42", "MarcBochum05", "Master-of-Desaster1982", "MasterDevil", "MaxX-Bremen", "Mel\u00f6nchen", "Multi Vitamin Drink", "Nabura", "Nemessis2000", "Nero1990", "Nussnugat123", "Phoebe-Piper 89", "Porto Boy91", "Portugal2003", "Punkermeister", "Quake15", "Rollergirl 11", "Ruhrpottmieze", "Sebastino15m", "Seto Kaiba28", "SnoopYYY", "Snoopy220691", "Spirit of Dragon", "Sternchen1980", "SuesseMaus", "Sunnypower24", "SuperSuessesFlirtGirl12", "Sweety5000", "SüsseKathy1987", "Süsser20 Nrw", "Süße Schnuffi", "Teddyb\u00e4r1977m", "Tobi140", "Tochter des Windes", "Vampire of Darkness", "VaniLLeEngeL", "Werderfanboy", "Zombieprinzessin", "aDDi14", "amaretto-apfel", "angel1103", "babalubabay", "badboy250985", "baggyweib", "black angel 1991w", "bloody-maverick", "blueangel1610", "bluemoon733", "calumon", "campi kuddel un co", "daKingchen", "darkm@n", "delphino", "dergolla", "ekirlu", "everybodys enemy", "fallenangel82", "frechesTeufelchen001", "goldregen-15", "hawaiboy44", "kermit2", "kruemelchen2", "kr\u00fcmel-knuddel XXL", "lRabbit", "laluna66", "mRk@y", "melyssa", "missundercover4", "mondmausi", "mümmelmann", "oooOLeaOooo", "psx3", "slumber", "snoop-dogg-rapper", "sorrow007", "stoffeltier", "suisse", "supers\u00fc\u00dfeMelanie", "sweethoney14AN", "s\u00fc\u00df-Yase12", "s\u00fc\u00dfeknuddelmaus1990", "tommy007", "toto1986", "weisse-tigerin", "xxxx-S\u00fc\u00dfe-xxxx", "2Pac Da B@d6oY K1LLaH", "4everX", "Albion", "AngelofFantasy85", "AntiYou", "babe333", "Backi@BS", "belafarinrod w", "Bienimausi1990", "bjoebi", "BlondUndBissig", "bremen-nord2004", "BrokenAngel81", "Buster23", "Candela", "CheeperCreeper", "cleo-girl", "Crazyboy111", "cyberkeeper", "Cyberpunk", "D to the J", "daig", "Darkangel1972", "daywandler", "Dende zu Westfal", "Der @lex", "Die Knuddel Maus", "Don Ryan", "EikeB", "Element", "feuerfee014", "Fiona", "FireFighter-Bonn", "FirePhoenix", "Flirtboyy", "HappyAngel86w", "Heminator15", "hopeless-w", "Hundeblick-19m", "huuugooo", "Innerlichboese", "jorden 15", "Kakteechengirl", "Kampftiger", "Katie-Sara", "King of Cochones", "KingofRapKooLSaVaS", "Kiseitai", "knuddelzmausi", "kuschelb\u00e4r2702", "la vana", "l\u00e4mmie", "La-Rossa", "Limp89", "llcoolj1301", "Lover13", "m\u00e4uschen5", "Mona40", "Morpheus2107", "mr mars", "mrs sunshine", "Najo16", "NosefaceK", "patyman", "Peacemakerman", "phoebetron", "PsYcHo-DeLuXe84", "Raio", "Ramnip", "Rene1823", "Rene2710", "Romantic18mBln", "sammie 87", "save123", "Schwartzer Wolf", "Seele-ganz-allein", "sghm", "Shadow150", "Shadow54", "shadows destiny", "sl@g", "smarty1404", "Stiffler2003", "SweetAngel123", "sweetlilliana15", "SweetySchnuffel", "TheRiotGirl", "ThunderTimo", "tiger1409", "Tiger307", "Tigerwoman666", "Timaty", "Tyalis", "Wipe172", "W\u00fchlfried", "XDragonFighter", "XxBaby Bunny DeluxexX", "xXxangelzxXx", "YoungLoveAngel", }; }
|
|