Skip to content

Instantly share code, notes, and snippets.

@LandonPowell
Created January 10, 2016 14:10
Show Gist options
  • Save LandonPowell/a98933964a56ae4a9243 to your computer and use it in GitHub Desktop.
Save LandonPowell/a98933964a56ae4a9243 to your computer and use it in GitHub Desktop.
var colors = ["e66","ea6","ee6","6e6","6ee","66e","a6e"];
String.prototype.flair = function() {
flair = "$Ubuntu Mono|/^/^";
for (i = 0; i < this.length; i++) {
color = colors[i%colors.length]
flair += "##" + color + "#" + color + this[i];
}
return flair;
}
CLIENT.on('message', function() {
CLIENT.attributes.flair = CLIENT.attributes.nick.flair();
colors = colors.slice(1) . concat(colors[0]);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment