Skip to content

Commit

Permalink
Merge pull request #573 from KyrunaKJ/patch-2
Browse files Browse the repository at this point in the history
Update chat.js temporary mute message
  • Loading branch information
11k authored Nov 25, 2024
2 parents e076c4c + 81ef48e commit 7c82683
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions assets/chat/js/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -1329,14 +1329,14 @@ class Chat {
message = new ChatMessage(messageText, null, MessageTypes.ERROR, true);
break;
}
case 'muted':
case 'muted': {
this.mutedtimer.setTimer(data.muteTimeLeft);
this.mutedtimer.startTimer();
const messageText = `You are temporarily muted! You can chat again ${this.mutedtimer.getReadableDuration()}. <a target="_blank" class="externallink" href="/subscribe" rel="nofollow">Subscribe</a>, or <a target="_blank" class="externallink" href="/donate" rel="nofollow">donate</a>, to remove the mute immediately.`;

message = MessageBuilder.error(
`You are temporarily muted! You can chat again ${this.mutedtimer.getReadableDuration()}. Subscribe to remove the mute immediately.`,
);
message = new ChatMessage(messageText, null, MessageTypes.ERROR, true);
break;
}
case 'bannedphrase': {
message = MessageBuilder.error(
`Your message was blocked because it contained this banned phrase: "${data.filtered}".`,
Expand Down

0 comments on commit 7c82683

Please sign in to comment.