diff --git a/package.json b/package.json index 1cab5235..6ec8533b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "116.15.2", + "version": "116.15.3", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": { diff --git a/structures/phone/PhoneCall.js b/structures/phone/PhoneCall.js index b6d501fb..147901a1 100644 --- a/structures/phone/PhoneCall.js +++ b/structures/phone/PhoneCall.js @@ -100,10 +100,12 @@ module.exports = class PhoneCall { if (!this.client.isOwner(msg.author)) { const ratelimit = this.ratelimitMeters.get(msg.author.id); if (!ratelimit) this.ratelimitMeters.set(msg.author.id, 1); - if (ratelimit > 2) { + if (ratelimit > 1) { this.cooldown.add(msg.author.id); - setTimeout(() => this.cooldown.delete(msg.author.id), 10000); - this.ratelimitMeters.set(msg.author.id, 0); + setTimeout(() => { + this.cooldown.delete(msg.author.id); + this.ratelimitMeters.set(msg.author.id, 0); + }, 10000); } else { this.ratelimitMeters.set(msg.author.id, ratelimit + 1); setTimeout(() => this.ratelimitMeters.set(msg.author.id, 0), 5000);