Created
January 10, 2016 14:10
-
-
Save LandonPowell/a98933964a56ae4a9243 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
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