Hey,
so as it is stated in the Github repository of pIRCBotX:
PircBot was forked due to its many issues and lack of maintenance
You can also see this in the repository that it last got updated around 6 years ago. Because of that, it is very likely that most of the features are deprecated nowadays. Also the events got improved, which shows that the ones from the original pIRCBot, did either not work anymore, or were not “good” enough, to be used in projects. I would suggest, you take a look at the pIRCBotX documentation and try learning how to work with it. Maybe you find fun in building chatbots and think about some more advanced bots. Here are always people ready to help you if you come across any questions ^^. However, i can take a look at your code, to ensure its really the library thats deprecated.
^^