Skip to content

Instantly share code, notes, and snippets.

@blizzarddreams
Created December 22, 2015 19:49
Show Gist options
  • Select an option

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

Select an option

Save blizzarddreams/f49f437b9d78a501dbc8 to your computer and use it in GitHub Desktop.
package ircscalabot;
import java.io.*;
import java.net.Socket;
/**
* Created by Anthony on 12/19/2015.
*/
class Bot {
public static void main(String[] args) {
Socket conn = new Socket("irc.freenode.net", 6667);
BufferedReader reader = new BufferedReader(new InputStreamReader(conn.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