This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on("chat:message", function(msg) { | |
if(msg.type == "api" && msg.content.indexOf("!cone") !== -1) { | |
var slice = msg.content.split(" "); | |
var direction = slice[1]; | |
var size = parseInt(slice[2]); | |
var selected = msg.selected; | |
_.each(selected, function(obj) { | |
var tok= getObj("graphic", obj._id); | |
if (direction === "angle") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on("chat:message", function(msg) { | |
if(msg.type == "api" && msg.content.indexOf("!cone") !== -1) { | |
var slice = msg.content.split(" "); | |
var direction = slice[1]; | |
var size = parseInt(slice[2]); | |
var selected = msg.selected; | |
_.each(selected, function(obj) { | |
var tok= getObj("graphic", obj._id); | |
if (direction === "angle") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on("chat:message", function(msg) { | |
if(msg.type == "api" && msg.content.indexOf("!summon ") !== -1) { | |
var selected = msg.selected; | |
_.each(selected, function(obj) { | |
var tok= getObj("graphic", obj._id); | |
var slice = msg.content.split(" "); | |
var augmented = 0; |