change mute times
This commit is contained in:
parent
2d48c55165
commit
41c4dbb774
|
@ -209,7 +209,7 @@ class ChatProvider {
|
||||||
*/
|
*/
|
||||||
// eslint-disable-next-line class-methods-use-this
|
// eslint-disable-next-line class-methods-use-this
|
||||||
automute(name, channelId = 0) {
|
automute(name, channelId = 0) {
|
||||||
ChatProvider.mute(name, channelId, 600);
|
ChatProvider.mute(name, channelId, 60);
|
||||||
}
|
}
|
||||||
|
|
||||||
static async checkIfMuted(user) {
|
static async checkIfMuted(user) {
|
||||||
|
@ -227,7 +227,7 @@ 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);
|
||||||
if (timeMin !== 600) {
|
if (timeMin !== 600 && timeMin !== 60) {
|
||||||
webSockets.broadcastChatMessage(
|
webSockets.broadcastChatMessage(
|
||||||
'info',
|
'info',
|
||||||
`${name} has been muted for ${timeMin}min`,
|
`${name} has been muted for ${timeMin}min`,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user