mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-06 14:20:56 +00:00
Add getEmotes method to simplify getting a list of sets. Make the /ffz command with no arguments display the UI. Add analytics support. Restructured emoticons file. Fix cache bug with Feature Friday. Add massmod and massunmod commands.
This commit is contained in:
parent
2ee748dc6f
commit
2c3af2d51e
12 changed files with 611 additions and 121 deletions
|
@ -23,6 +23,7 @@ FFZ.prototype.setup_bttv = function() {
|
|||
this.log("BetterTTV was detected. Hooking.");
|
||||
this.has_bttv = true;
|
||||
|
||||
this.track('setCustomVariable', '3', 'BetterTTV', BetterTTV.info.versionString());
|
||||
|
||||
// Send Message Behavior
|
||||
var original_send = BetterTTV.chat.helpers.sendMessage, f = this;
|
||||
|
@ -73,11 +74,7 @@ FFZ.prototype.setup_bttv = function() {
|
|||
var original_emoticonize = BetterTTV.chat.templates.emoticonize;
|
||||
BetterTTV.chat.templates.emoticonize = function(message, emotes) {
|
||||
var tokens = original_emoticonize(message, emotes),
|
||||
user = f.users[received_sender],
|
||||
room = f.rooms[received_room];
|
||||
|
||||
// Get our sets.
|
||||
var sets = _.union(user && user.sets || [], room && room.sets || [], f.global_sets),
|
||||
sets = f.getEmotes(received_sender, received_room),
|
||||
emotes = [];
|
||||
|
||||
// Build a list of emotes that match.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue