mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 05:49:49 +02:00
Ratelimiting
This commit is contained in:
@@ -13,6 +13,10 @@ module.exports = class YearsCommand extends Command {
|
|||||||
group: 'avataredit',
|
group: 'avataredit',
|
||||||
memberName: '3000years',
|
memberName: '3000years',
|
||||||
description: 'It\'s been 3000 years...',
|
description: 'It\'s been 3000 years...',
|
||||||
|
throttling: {
|
||||||
|
usages: 1,
|
||||||
|
duration: 15
|
||||||
|
},
|
||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'user',
|
key: 'user',
|
||||||
|
|||||||
@@ -13,6 +13,10 @@ module.exports = class BeautifulCommand extends Command {
|
|||||||
group: 'avataredit',
|
group: 'avataredit',
|
||||||
memberName: 'beautiful',
|
memberName: 'beautiful',
|
||||||
description: 'Oh, this? This is beautiful.',
|
description: 'Oh, this? This is beautiful.',
|
||||||
|
throttling: {
|
||||||
|
usages: 1,
|
||||||
|
duration: 15
|
||||||
|
},
|
||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'user',
|
key: 'user',
|
||||||
|
|||||||
@@ -13,6 +13,10 @@ module.exports = class BobRossCommand extends Command {
|
|||||||
group: 'avataredit',
|
group: 'avataredit',
|
||||||
memberName: 'bob-ross',
|
memberName: 'bob-ross',
|
||||||
description: 'Make Bob Ross draw an avatar.',
|
description: 'Make Bob Ross draw an avatar.',
|
||||||
|
throttling: {
|
||||||
|
usages: 1,
|
||||||
|
duration: 15
|
||||||
|
},
|
||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'user',
|
key: 'user',
|
||||||
|
|||||||
@@ -16,6 +16,10 @@ module.exports = class CardCommand extends Command {
|
|||||||
memberName: 'card',
|
memberName: 'card',
|
||||||
description: 'Creates a Profile Card for the User.',
|
description: 'Creates a Profile Card for the User.',
|
||||||
guildOnly: true,
|
guildOnly: true,
|
||||||
|
throttling: {
|
||||||
|
usages: 1,
|
||||||
|
duration: 15
|
||||||
|
},
|
||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'member',
|
key: 'member',
|
||||||
|
|||||||
@@ -12,6 +12,10 @@ module.exports = class DexterCommand extends Command {
|
|||||||
group: 'avataredit',
|
group: 'avataredit',
|
||||||
memberName: 'dexter',
|
memberName: 'dexter',
|
||||||
description: 'Who\'s that pokemon?',
|
description: 'Who\'s that pokemon?',
|
||||||
|
throttling: {
|
||||||
|
usages: 1,
|
||||||
|
duration: 15
|
||||||
|
},
|
||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'user',
|
key: 'user',
|
||||||
|
|||||||
@@ -10,6 +10,10 @@ module.exports = class GreyscaleCommand extends Command {
|
|||||||
group: 'avataredit',
|
group: 'avataredit',
|
||||||
memberName: 'greyscale',
|
memberName: 'greyscale',
|
||||||
description: 'Greyscale a user\'s avatar colors.',
|
description: 'Greyscale a user\'s avatar colors.',
|
||||||
|
throttling: {
|
||||||
|
usages: 1,
|
||||||
|
duration: 15
|
||||||
|
},
|
||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'user',
|
key: 'user',
|
||||||
|
|||||||
@@ -9,6 +9,10 @@ module.exports = class InvertCommand extends Command {
|
|||||||
group: 'avataredit',
|
group: 'avataredit',
|
||||||
memberName: 'invert',
|
memberName: 'invert',
|
||||||
description: 'Invert a user\'s avatar colors.',
|
description: 'Invert a user\'s avatar colors.',
|
||||||
|
throttling: {
|
||||||
|
usages: 1,
|
||||||
|
duration: 15
|
||||||
|
},
|
||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'user',
|
key: 'user',
|
||||||
|
|||||||
@@ -13,6 +13,10 @@ module.exports = class RIPCommand extends Command {
|
|||||||
group: 'avataredit',
|
group: 'avataredit',
|
||||||
memberName: 'rip',
|
memberName: 'rip',
|
||||||
description: 'Puts a user\'s avatar over a gravestone.',
|
description: 'Puts a user\'s avatar over a gravestone.',
|
||||||
|
throttling: {
|
||||||
|
usages: 1,
|
||||||
|
duration: 15
|
||||||
|
},
|
||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'user',
|
key: 'user',
|
||||||
|
|||||||
@@ -12,6 +12,10 @@ module.exports = class SimbaCommand extends Command {
|
|||||||
group: 'avataredit',
|
group: 'avataredit',
|
||||||
memberName: 'simba',
|
memberName: 'simba',
|
||||||
description: 'Remember who you are...',
|
description: 'Remember who you are...',
|
||||||
|
throttling: {
|
||||||
|
usages: 1,
|
||||||
|
duration: 15
|
||||||
|
},
|
||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'user',
|
key: 'user',
|
||||||
|
|||||||
@@ -12,6 +12,10 @@ module.exports = class SteamCardCommand extends Command {
|
|||||||
group: 'avataredit',
|
group: 'avataredit',
|
||||||
memberName: 'steam-card',
|
memberName: 'steam-card',
|
||||||
description: 'Put an avatar on a Steam Card.',
|
description: 'Put an avatar on a Steam Card.',
|
||||||
|
throttling: {
|
||||||
|
usages: 1,
|
||||||
|
duration: 15
|
||||||
|
},
|
||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'user',
|
key: 'user',
|
||||||
|
|||||||
@@ -12,6 +12,10 @@ module.exports = class TriggeredCommand extends Command {
|
|||||||
group: 'avataredit',
|
group: 'avataredit',
|
||||||
memberName: 'triggered',
|
memberName: 'triggered',
|
||||||
description: 'Put an avatar on a "Triggered" sign.',
|
description: 'Put an avatar on a "Triggered" sign.',
|
||||||
|
throttling: {
|
||||||
|
usages: 1,
|
||||||
|
duration: 15
|
||||||
|
},
|
||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'user',
|
key: 'user',
|
||||||
|
|||||||
@@ -12,6 +12,10 @@ module.exports = class WantedCommand extends Command {
|
|||||||
group: 'avataredit',
|
group: 'avataredit',
|
||||||
memberName: 'wanted',
|
memberName: 'wanted',
|
||||||
description: 'Puts an avatar on a wanted poster.',
|
description: 'Puts an avatar on a wanted poster.',
|
||||||
|
throttling: {
|
||||||
|
usages: 1,
|
||||||
|
duration: 15
|
||||||
|
},
|
||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'user',
|
key: 'user',
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ module.exports = class PruneCommand extends Command {
|
|||||||
guildOnly: true,
|
guildOnly: true,
|
||||||
throttling: {
|
throttling: {
|
||||||
usages: 1,
|
usages: 1,
|
||||||
duration: 60
|
duration: 15
|
||||||
},
|
},
|
||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,6 +12,10 @@ module.exports = class SoundboardCommand extends Command {
|
|||||||
description: 'Plays a sound in your voice channel.',
|
description: 'Plays a sound in your voice channel.',
|
||||||
details: `**Sounds:** ${names.join(', ')}`,
|
details: `**Sounds:** ${names.join(', ')}`,
|
||||||
guildOnly: true,
|
guildOnly: true,
|
||||||
|
throttling: {
|
||||||
|
usages: 1,
|
||||||
|
duration: 15
|
||||||
|
},
|
||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'sound',
|
key: 'sound',
|
||||||
|
|||||||
Reference in New Issue
Block a user