From 6e9e53bd0cb8f9485b2957dc9aa7f9c95cd655c5 Mon Sep 17 00:00:00 2001 From: samcake Date: Fri, 20 Nov 2015 18:17:53 -0800 Subject: [PATCH] Clean up a bit of the playbackAgent script --- examples/acScripts/playbackAgents.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/examples/acScripts/playbackAgents.js b/examples/acScripts/playbackAgents.js index 918d8a1e1d..16dd469a89 100644 --- a/examples/acScripts/playbackAgents.js +++ b/examples/acScripts/playbackAgents.js @@ -53,20 +53,9 @@ function getAction(channel, message, senderID) { if (command.id_key == id || command.id_key == -1) { if (command.action_key === 6) { - clip_url = command.clip_url_key; - - if (command.id_key == -1) { - Assets.downloadData(clip_url, function (data) { - var myJSONObject = JSON.parse(data); - var hash = myJSONObject.avatarClips[id]; - }); - - clip_url = hash; - } } - - + action = command.action_key; print("That command was for me!"); print("My clip is: " + clip_url); @@ -173,4 +162,3 @@ Messages.messageReceived.connect(function (channel, message, senderID) { }); Script.update.connect(update); -