Fixes to clip_url overwriting

This commit is contained in:
EdgarPironti 2015-11-18 12:30:39 -08:00
parent fb90ffec5c
commit d75209cb37
2 changed files with 3 additions and 0 deletions

View file

@ -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;
}

View file

@ -163,6 +163,7 @@ function sendCommand(id, action) {
if(subscribed){
Messages.sendMessage(channel, JSON.stringify(message));
print("Message sent!");
clip_url = null;
}
}