change time of sending message to chat to 1 second

This commit is contained in:
Hepatica
2024-03-12 19:13:28 +01:00
parent 4d09d7dd21
commit b0eb2984ad

View File

@@ -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>