Finished up with inline and full-body chat-filters.
This commit is contained in:
parent
77bc549653
commit
4c31dbde1e
6 changed files with 198 additions and 40 deletions
|
|
@ -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}ㅤ`);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue