Created
November 26, 2018 03:52
-
-
Save kuzin/d59183bcdfda58b65f47a124886b9818 to your computer and use it in GitHub Desktop.
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('ready', function() { | |
on('chat:message', function(msg) { | |
if (msg.type == "api" && msg.content.indexOf("!char-pic") !== -1) { | |
var charid =msg.content.split(' ')[1]; | |
var c = getObj('character',charid); | |
if(c) { | |
var fPart = "<div style='box-shadow: 3px 3px 2px #888888; font-family: Verdana; text-shadow: 2px 2px #000; text-align: center; vertical-align: middle; padding: 1px 1px; margin-top: 0.1em; border: 1px solid #000; border-radius: 8px 8px 8px 8px; color: #FFFFFF;"; | |
var Pic = fPart + "background-color:#AAAAAA;'><img src='" + c.get('avatar') + "'></div>"; | |
sendChat('', "/direct " + Pic); | |
} | |
}; | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment