
Anyone know how I can make this script remove the msgWho tag that appears in the chat box? Looking to be able to remove the player 'name as' stamp that shows up in chat. See above shown as "Master MJ (GM):" after the Image emote. If you remove the msgWho from the sendChat code, the script will not work anymore. Anyway to add code or remove code to solve this issue? code: on("chat:message", function (msg) {
var cmdName = "!pic ";
var msgTxt = msg.content;
var msgWho = msg.who;
var piclink = msgTxt.slice(cmdName.length);
if (msg.type == "api" && msgTxt.indexOf(cmdName) !== -1) {
log(piclink);
sendChat(msgWho, '/direct <b><u>shared:<img src="' + piclink + '">');
};
});