Hello,

I am making a Java IRC bot and it all works fine. I connect via a socket and there is a while loop that will output whatever comes through the IRC. But, I also want to accept console input while the program is running. So far I can only find help that will wait for console input and not one that will accept it in the background. Any help would be appreciated, thanks.

don't use a while loop for that, it'll block all the code that is not within that while loop.
use a Thread instead.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.