I’m trying to run URL triggers with nightbot using urlfetch. Yet instead of it returning a message in Chat, which is a list it fetches form the URL, I want it to just return a message (like ‘STROBE PARTY’), while running the code at the same time.
Context: Using Voice Monkey to link my chat to my Alexa and smart home
$(eval r=decodeURIComponent("$(querystring $(urlfetch json https://mywebsite.com/abc/def))");/^(?:\[?Error|Remote Server Returned Code) /.test(r)?r:'STROBE PARTY')