Start researching CLR, how to trigger it and using it with obs.
Few helpful links to get you started, but far from the complete answer. Will get you started though.
Link 1
Link 2
Overall this isn’t really a twitch api question however.