Started work on personal emotes.

This commit is contained in:
rainbow napkin 2024-12-22 13:46:08 -05:00
parent db5fac83ab
commit a4a1f6a65b
16 changed files with 248 additions and 18 deletions

View file

@ -16,6 +16,7 @@ class commandPreprocessor{
//When we receive site-wide emote list
this.client.socket.on("siteEmotes", this.setSiteEmotes.bind(this));
this.client.socket.on("chanEmotes", this.setChanEmotes.bind(this));
this.client.socket.on("personalEmotes", this.setPersonalEmotes.bind(this));
}
preprocess(command){
@ -104,6 +105,10 @@ class commandPreprocessor{
this.emotes.chan = data;
}
setPersonalEmotes(data){
this.emotes.personal = data;
}
getEmoteByLink(link){
//Create an empty variable to hold the found emote
var foundEmote = null;