Created
December 22, 2015 19:49
-
-
Save blizzarddreams/f49f437b9d78a501dbc8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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