Limit ability for users to spam phone/portal

This commit is contained in:
Dragon Fire
2020-03-19 14:03:35 -04:00
parent c65d8d6b89
commit fab7d6e96b
3 changed files with 9 additions and 1 deletions
+4
View File
@@ -10,6 +10,10 @@ module.exports = class PhoneCommand extends Command {
memberName: 'phone', memberName: 'phone',
description: 'Starts a phone call with a random server.', description: 'Starts a phone call with a random server.',
guildOnly: true, guildOnly: true,
throttling: {
usages: 1,
duration: 90
},
args: [ args: [
{ {
key: 'channelID', key: 'channelID',
+4
View File
@@ -9,6 +9,10 @@ module.exports = class PortalSendCommand extends Command {
group: 'other', group: 'other',
memberName: 'portal-send', memberName: 'portal-send',
description: 'Send a message to a portal channel.', description: 'Send a message to a portal channel.',
throttling: {
usages: 1,
duration: 5
},
args: [ args: [
{ {
key: 'message', key: 'message',
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "xiao", "name": "xiao",
"version": "112.11.0", "version": "112.11.1",
"description": "Your personal server companion.", "description": "Your personal server companion.",
"main": "Xiao.js", "main": "Xiao.js",
"scripts": { "scripts": {