From fab7d6e96b8be7089f324ffbfd1c10fc42807cb7 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 19 Mar 2020 14:03:35 -0400 Subject: [PATCH] Limit ability for users to spam phone/portal --- commands/other/phone.js | 4 ++++ commands/other/portal-send.js | 4 ++++ package.json | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/commands/other/phone.js b/commands/other/phone.js index 276ee4bc..566ead99 100644 --- a/commands/other/phone.js +++ b/commands/other/phone.js @@ -10,6 +10,10 @@ module.exports = class PhoneCommand extends Command { memberName: 'phone', description: 'Starts a phone call with a random server.', guildOnly: true, + throttling: { + usages: 1, + duration: 90 + }, args: [ { key: 'channelID', diff --git a/commands/other/portal-send.js b/commands/other/portal-send.js index 0cb5b7a9..a21e45d3 100644 --- a/commands/other/portal-send.js +++ b/commands/other/portal-send.js @@ -9,6 +9,10 @@ module.exports = class PortalSendCommand extends Command { group: 'other', memberName: 'portal-send', description: 'Send a message to a portal channel.', + throttling: { + usages: 1, + duration: 5 + }, args: [ { key: 'message', diff --git a/package.json b/package.json index 77367865..97372f05 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "112.11.0", + "version": "112.11.1", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {