Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.BufferedReader;
- import java.io.InputStreamReader;
- import java.io.PrintWriter;
- import java.net.Socket;
- public class Ohyou {
- static Socket socket;
- static PrintWriter output;
- static BufferedReader input;
- public static void main(String[] args){
- try {
- socket = new Socket("irc.rizon.net", 6667);
- output = new PrintWriter(socket.getOutputStream(), true);
- input = new BufferedReader(new InputStreamReader(
- socket.getInputStream()));
- write("NICK TheSlaughter\n");
- write("USER slots watdo.net I pwn slots\n");
- Thread.sleep(1000);
- write("JOIN #ohyou\n");
- Thread.sleep(1000);
- while(true){
- write("PRIVMSG #ohyou !slots\n");
- Thread.sleep(3001);
- }
- } catch (Exception e){
- }
- }
- public static void write(String s){
- output.write(s);
- output.flush();
- }
- }
Add Comment
Please, Sign In to add comment