1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-07 06:40:54 +00:00
* Experiment Update: This contains further work on the MQTT-based PubSub experiment.
This commit is contained in:
SirStendec 2023-11-01 14:17:11 -04:00
parent 0460c02994
commit 4d2b65e7c2
4 changed files with 1188 additions and 66 deletions

View file

@ -640,7 +640,25 @@ export default class Emotes extends Module {
this.on('pubsub:command:follow_sets', this.updateFollowSets, this);
// TODO: Implement emote updates.
this.on('pubsub:command:add_emote', msg => {
const set_id = msg.set_id,
emote = msg.emote;
if ( ! this.emote_sets[set_id] )
return;
this.addEmoteToSet(set_id, emote);
});
this.on('pubsub:command:remove_emote', msg => {
const set_id = msg.set_id,
emote_id = msg.emote_id;
if ( ! this.emote_sets[set_id] )
return;
this.removeEmoteFromSet(set_id, emote_id);
});
this.on('chat:reload-data', flags => {
if ( ! flags || flags.emotes )