Added spoiler support.
This commit is contained in:
parent
b56c9a3365
commit
77bc549653
9 changed files with 182 additions and 71 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
|
||||
this.message = this.message.replaceAll(`[${emote.name}]`, emote.link);
|
||||
//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}ㅤ`);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue