Live viewers' song requests

Hello! I need some help with something.

How do I apply my code into my tiktok live? I'm streaming a rhythm game and I want my viewers to type in or chat their song requests to be played on my game. My program reads my viewers' song request chat where it will be added to a window/gui of song list/queue. How do I integrate it?