no mute message for automute

This commit is contained in:
HF 2020-04-29 18:23:50 +02:00
parent 8877a7658a
commit c979df911f

View File

@ -187,11 +187,13 @@ class ChatProvider {
if (timeMin) {
const ttl = timeMin * 60;
await redis.setAsync(key, '', 'EX', ttl);
webSockets.broadcastChatMessage(
'info',
`${name} has been muted for ${timeMin}min`,
channelId,
);
if (timeMin !== 600) {
webSockets.broadcastChatMessage(
'info',
`${name} has been muted for ${timeMin}min`,
channelId,
);
}
} else {
await redis.setAsync(key, '');
webSockets.broadcastChatMessage(