Execute a code when detecting livestream

Oh I see!
About the seconds thing, I just forgot a 0 in the pastebin code haha, currently I was calling it every 20 seconds.
Thank you so much for your response, I will try it.