Giving outside activation codes to users in order to trigger event

Hello all, I’m trying to figure out how to give users or clients outside of Youtube activation codes/tickets that they can redeem on my livestream to trigger things in my room like light colors, bubble machine, etc. For example if I meet in person irl that I want to checkout my stream I can give them 5 trigger(tickets) events with an activation code. Then when they check out my stream they can type !activation and the code I gave them or something like this and the bot will know that they have “X” amount of tickets. Then they can type !ticket and it will trigger lets same my lights to change color or my bubble machine to go off. Once they are out of tickets then the bot would know and if they type !ticket again it won’t work. Also others without tickets wouldn’t be able to trigger if they type !ticket. I would assume I need an outside first program that keeps track of the activations codes and the users name? Then I believe I would need to use a program like zapier to connect nightbot commands to a smartplug. I know this is a lot and I assume it can be done. I appreciate any help in advance! - Mike

Hiya, yes you would need some external database and code to handle your logic. Nightbot can connect to that using UrlFetch - Nightbot Docs or you can use the Nightbot API: Nightbot API Reference.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.