My local irc bot isnt assigning operator status to users anymore

How do you go about retrieving those tags?

> @badge-info=<badge-info>;badges=<badges>;color=<color>;display-name=<display-name>;emotes=<emotes>;id=<id-of-msg>;mod=<mod>;room-id=<room-id>;subscriber=<subscriber>;tmi-sent-ts=<timestamp>;turbo=<turbo>;user-id=<user-id>;user-type=<user-type> :<user>!<user>@<user>.tmi.twitch.tv PRIVMSG #<channel> :<message>

That seems to get the data we want. Now how do i go about actually calling/retrieving that data in my scripts? I assume i’d have to have it run something when people type(?) or join(?) the channel. But what would that code look like.

Really apologize if this is obvious, but coding really isnt my strong suit.