no mute message for automute
This commit is contained in:
parent
8877a7658a
commit
c979df911f
|
@ -187,11 +187,13 @@ class ChatProvider {
|
||||||
if (timeMin) {
|
if (timeMin) {
|
||||||
const ttl = timeMin * 60;
|
const ttl = timeMin * 60;
|
||||||
await redis.setAsync(key, '', 'EX', ttl);
|
await redis.setAsync(key, '', 'EX', ttl);
|
||||||
webSockets.broadcastChatMessage(
|
if (timeMin !== 600) {
|
||||||
'info',
|
webSockets.broadcastChatMessage(
|
||||||
`${name} has been muted for ${timeMin}min`,
|
'info',
|
||||||
channelId,
|
`${name} has been muted for ${timeMin}min`,
|
||||||
);
|
channelId,
|
||||||
|
);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
await redis.setAsync(key, '');
|
await redis.setAsync(key, '');
|
||||||
webSockets.broadcastChatMessage(
|
webSockets.broadcastChatMessage(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user