What I want to do: Have my bot detect when a user joins my twitch channel
I have looked through the documentation of pIRCbot (http://www.jibble.org/javadocs/pircbot/index.html) and I am aware that it has a onJoin() method which should allow the bot to know when someone joins the channel. I have not been able to get any success with this method (using a very simple sendMessage(channel, "welcome to the channel, " + sender); type of thing) and I know that I need to somehow get the Twitch Membership stuff working. I have looked at the Twitch page (https://github.com/justintv/Twitch-API/blob/master/IRC.md) referring to the Membership stuff and I dont understand it. Being new to IRC and Twitch Chat Development it would really help me to see some example code so I could understand what it is I need to do. Looking at the documentation just isn’t making sense and I am not sure how to perform the '< CAP REQ :twitch.tv/membership
:tmi.twitch.tv CAP * ACK :twitch.tv/membership’ part of this. What does this code look like? How to perform in Java and pIRCbot?
I am sure this has been heavily covered in other posts and I apologize but I am just not getting it. Thanks for any and all help on this.