Finished up with inline and full-body chat-filters.

This commit is contained in:
rainbow napkin 2025-01-11 13:00:34 -05:00
parent 77bc549653
commit 4c31dbde1e
6 changed files with 198 additions and 40 deletions

View file

@ -78,8 +78,8 @@ class commandPreprocessor{
Object.keys(this.emotes).forEach((key) => {
//For each emote in the current list
this.emotes[key].forEach((emote) => {
//Inject emote links into the message, add invisible whitespace to the end to keep next character from mushing into the link
this.message = this.message.replaceAll(`[${emote.name}]`, `${emote.link}`);
//Inject emote links into the message, pad with invisible whitespace to keep link from getting mushed
this.message = this.message.replaceAll(`[${emote.name}]`, `${emote.link}`);
});
});
}