Pircbotx sub/resub response


i am currently trying to make a bot for my twitch channel and i am looking for ways to interact with subs and resubs. If there is anyone using the Pircbotx framework i would really appreciate it if you could let me know how you are dealing with sub and resub notifications.

im not that great at programming (mostly self taught) just trying to figure this out. If you could provide examples of your code that would be very helpful.