Skip to content

Instantly share code, notes, and snippets.

@blizzarddreams
Created December 21, 2015 22:27
Show Gist options
  • Select an option

  • Save blizzarddreams/cb3ea204c7d1492a10d2 to your computer and use it in GitHub Desktop.

Select an option

Save blizzarddreams/cb3ea204c7d1492a10d2 to your computer and use it in GitHub Desktop.
package ircscalabot;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.Socket;
/**
* Created by Anthony on 12/21/2015.
*/
public class Bot {
public static void main(String[] args) throws Exception {
Socket socket = new Socket("irc.freenode.net", 6667);
BufferedReader reader = new BufferedReader(new InputStreamReader(socket.getInputStream()));
while (true) {
System.out.println(reader.readLine());
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment