Notify on block/muted users joining/leaving

This commit is contained in:
Natsumi
2021-05-21 23:31:50 +12:00
parent 09a4a823f8
commit 6de718e994
4 changed files with 169 additions and 5 deletions

View File

@@ -946,6 +946,18 @@ speechSynthesis.getVoices();
case 'VideoPlay':
text = `<strong>Now playing:</strong> ${noty.data}`;
break;
case 'BlockedOnPlayerJoined':
text = `Blocked user <strong>${noty.displayName}</strong> has joined`;
break;
case 'BlockedOnPlayerLeft':
text = `Blocked user <strong>${noty.displayName}</strong> has left`;
break;
case 'MutedOnPlayerJoined':
text = `Muted user <strong>${noty.displayName}</strong> has joined`;
break;
case 'MutedOnPlayerLeft':
text = `Muted user <strong>${noty.displayName}</strong> has left`;
break;
default:
break;
}