Skip to content

Instantly share code, notes, and snippets.

View rileydutton's full-sized avatar

Riley Dutton rileydutton

  • Overland Park, KS
View GitHub Profile
on("chat:message", function(msg) {
if(msg.type == "api" && msg.content.indexOf("!show") !== -1) {
var charName = msg.content.replace("!show ", "");
var charToken = findObjs({_type: "graphic", name: charName})[0];
if(!charToken) {
return;
}
if(charToken.get("layer") == "gmlayer"){
charToken.set("layer", "objects");
} else {