mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-07 06:40:54 +00:00
4.56.2
* Experiment Update: This contains further work on the MQTT-based PubSub experiment.
This commit is contained in:
parent
0460c02994
commit
4d2b65e7c2
4 changed files with 1188 additions and 66 deletions
|
@ -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 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue