mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 04:09:29 +02:00
change time of sending message to chat to 1 second
This commit is contained in:
@@ -68,7 +68,7 @@ export default {
|
|||||||
},
|
},
|
||||||
ClaimDatamsg(msg) {
|
ClaimDatamsg(msg) {
|
||||||
const now = Date.now();
|
const now = Date.now();
|
||||||
if (!this.lastMsgTime || now - this.lastMsgTime >= 100) {
|
if (!this.lastMsgTime || now - this.lastMsgTime >= 1000) {
|
||||||
SendMessageToChat(msg[0]);
|
SendMessageToChat(msg[0]);
|
||||||
this.lastMsgTime = now;
|
this.lastMsgTime = now;
|
||||||
} else {
|
} else {
|
||||||
@@ -135,5 +135,4 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user