From d75209cb3783c071c18d097db199345612e86ea2 Mon Sep 17 00:00:00 2001 From: EdgarPironti Date: Wed, 18 Nov 2015 12:30:39 -0800 Subject: [PATCH] Fixes to clip_url overwriting --- examples/acScripts/playbackAgents.js | 2 ++ examples/acScripts/playbackMaster.js | 1 + 2 files changed, 3 insertions(+) diff --git a/examples/acScripts/playbackAgents.js b/examples/acScripts/playbackAgents.js index 9912e00010..93b563d497 100644 --- a/examples/acScripts/playbackAgents.js +++ b/examples/acScripts/playbackAgents.js @@ -60,6 +60,8 @@ function getAction(channel, message, senderID) { // Checking the id we can assign the correct url to the correct agent. action = command.action_key; + print("That command was for me!"); + print("My clip is: " + clip_url); } else { action = DO_NOTHING; } diff --git a/examples/acScripts/playbackMaster.js b/examples/acScripts/playbackMaster.js index f1f1b44768..e3448c0256 100644 --- a/examples/acScripts/playbackMaster.js +++ b/examples/acScripts/playbackMaster.js @@ -163,6 +163,7 @@ function sendCommand(id, action) { if(subscribed){ Messages.sendMessage(channel, JSON.stringify(message)); print("Message sent!"); + clip_url = null; } }