Skip to content

Instantly share code, notes, and snippets.

@nolivo
Created August 12, 2020 11:26
Show Gist options
  • Save nolivo/b80bfac3a7982ba79cee2345cf8599bb to your computer and use it in GitHub Desktop.
Save nolivo/b80bfac3a7982ba79cee2345cf8599bb to your computer and use it in GitHub Desktop.
function updateRoll20AM(){
sendChat("API","!roll20AM --config,remove");
sendChat("API","!roll20AM --config,import");
}
on("add:jukeboxtrack",function(){
updateRoll20AM();
});
on("change:jukeboxtrack",function(){
updateRoll20AM();
});
on("destroy:jukeboxtrack",function(){
updateRoll20AM();
});
on("change:campaign:_jukeboxfolder",function(){
updateRoll20AM();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment