Added spoiler support.

This commit is contained in:
rainbow napkin 2025-01-11 01:30:25 -05:00
parent b56c9a3365
commit 77bc549653
9 changed files with 182 additions and 71 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
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}`);
});
});
}