mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 18:29:14 +02:00
Limit ability for users to spam phone/portal
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
@@ -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
@@ -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": {
|
||||||
|
|||||||
Reference in New Issue
Block a user