From 41c4dbb7749a8d48788f39ac85d0e518092ee2fa Mon Sep 17 00:00:00 2001 From: HF Date: Thu, 30 Apr 2020 08:19:25 +0200 Subject: [PATCH] change mute times --- src/core/ChatProvider.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/ChatProvider.js b/src/core/ChatProvider.js index 7de6847..db858a6 100644 --- a/src/core/ChatProvider.js +++ b/src/core/ChatProvider.js @@ -209,7 +209,7 @@ class ChatProvider { */ // eslint-disable-next-line class-methods-use-this automute(name, channelId = 0) { - ChatProvider.mute(name, channelId, 600); + ChatProvider.mute(name, channelId, 60); } static async checkIfMuted(user) { @@ -227,7 +227,7 @@ class ChatProvider { if (timeMin) { const ttl = timeMin * 60; await redis.setAsync(key, '', 'EX', ttl); - if (timeMin !== 600) { + if (timeMin !== 600 && timeMin !== 60) { webSockets.broadcastChatMessage( 'info', `${name} has been muted for ${timeMin}min`,