change chat muting time to 100 mil from 2 second

This commit is contained in:
Hepatica
2024-03-12 19:03:41 +01:00
parent 0c7440440f
commit 4d09d7dd21

View File

@@ -68,11 +68,11 @@ export default {
}, },
ClaimDatamsg(msg) { ClaimDatamsg(msg) {
const now = Date.now(); const now = Date.now();
if (!this.lastMsgTime || now - this.lastMsgTime >= 2000) { if (!this.lastMsgTime || now - this.lastMsgTime >= 100) {
SendMessageToChat(msg[0]); SendMessageToChat(msg[0]);
this.lastMsgTime = now; this.lastMsgTime = now;
} else { } else {
alert("Вы не можете отправлять сообщения чаще, чем раз в 2 секунды."); alert("Вы не можете отправлять сообщения так часто");
} }
}, },
muteChat() { muteChat() {