mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 12:19:31 +02:00
change chat muting time to 100 mil from 2 second
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user