I am using the PircBotX framework for my IRC bot, and since my completed bot will be hosted on a different PC that is not mine, I decided to create a custom bot manager program with a GUI for my private use and management of the bot without coming onto the IRC. I used
VB.NET for the manager because I am most familiar with that language in this point in time.
I set up a ServerSocket on the bot and a client socket on the manager. The way the two programs will communicate is by sending strings of code through these socket streams. Right now I don't have any real features set up because I'm still in the testing phase of the functionality of these sockets. Attached to this post you can find my current code for the bot and the manager.
What currently happens is, if I click the connect button in the bot manager, it will connect successfully. If I click the test button, it's supposed to send "a" through the socket stream, but doesn't. When I click the disconnect button, it then sends "a" through but it doesn't do anything (it's supposed to change the value of String "things" to "a") and sometimes, immediately after, i get a NullPointerException.
So I hope to fix this and ask, what is the simplest way I would be able to fix this and get messages sent through the socket correctly, and then get the bot to interpret them correctly? Thank you for your assistance.