diff options
Diffstat (limited to 'src/commands/voice')
| -rw-r--r-- | src/commands/voice/abee.ts | 4 | ||||
| -rw-r--r-- | src/commands/voice/itemshop.ts | 6 | ||||
| -rw-r--r-- | src/commands/voice/leave.ts | 4 | ||||
| -rw-r--r-- | src/commands/voice/loop.ts | 4 | ||||
| -rw-r--r-- | src/commands/voice/minecraft.ts | 6 | ||||
| -rw-r--r-- | src/commands/voice/pause.ts | 4 | ||||
| -rw-r--r-- | src/commands/voice/play.ts | 6 | ||||
| -rw-r--r-- | src/commands/voice/psycho.ts | 6 | ||||
| -rw-r--r-- | src/commands/voice/queue.ts | 4 | ||||
| -rw-r--r-- | src/commands/voice/remove.ts | 4 | ||||
| -rw-r--r-- | src/commands/voice/resume.ts | 4 | ||||
| -rw-r--r-- | src/commands/voice/shuffle.ts | 4 | ||||
| -rw-r--r-- | src/commands/voice/skip.ts | 4 | ||||
| -rw-r--r-- | src/commands/voice/skipall.ts | 4 | ||||
| -rw-r--r-- | src/commands/voice/skipto.ts | 4 | ||||
| -rw-r--r-- | src/commands/voice/volume.ts | 4 |
16 files changed, 68 insertions, 4 deletions
diff --git a/src/commands/voice/abee.ts b/src/commands/voice/abee.ts index 2af71af..628909c 100644 --- a/src/commands/voice/abee.ts +++ b/src/commands/voice/abee.ts @@ -19,6 +19,10 @@ module.exports = class ABeeVoice extends Command { clientPermissions: ['SPEAK', 'CONNECT', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], examples: ['uwu!abee', 'uwu!a-bee'], + throttling: { + usages: 5, + duration: 30 + }, }); } async run(msg: CommandoMessage) { diff --git a/src/commands/voice/itemshop.ts b/src/commands/voice/itemshop.ts index 76e1f03..e06403f 100644 --- a/src/commands/voice/itemshop.ts +++ b/src/commands/voice/itemshop.ts @@ -18,7 +18,11 @@ module.exports = class ABeeVoice extends Command { guildOnly: true, clientPermissions: ['SPEAK', 'CONNECT', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - examples: ['uwu!itemshop', 'uwu!item-shop'] + examples: ['uwu!itemshop', 'uwu!item-shop'], + throttling: { + usages: 5, + duration: 30 + }, }); } async run(msg: CommandoMessage) { diff --git a/src/commands/voice/leave.ts b/src/commands/voice/leave.ts index bdcf259..9ad9984 100644 --- a/src/commands/voice/leave.ts +++ b/src/commands/voice/leave.ts @@ -13,6 +13,10 @@ module.exports = class LeaveVoice extends Command { examples: ['uwu!leave', 'uwu!end', 'uwu!stop'], clientPermissions: ['SPEAK', 'CONNECT', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + throttling: { + usages: 5, + duration: 30 + }, }); } run(msg: CommandoMessage) { diff --git a/src/commands/voice/loop.ts b/src/commands/voice/loop.ts index 4ea9fe7..69cc6a1 100644 --- a/src/commands/voice/loop.ts +++ b/src/commands/voice/loop.ts @@ -13,6 +13,10 @@ module.exports = class LoopVoice extends Command { examples: ['uwu!loop', 'uwu!repeat'], clientPermissions: ['SPEAK', 'CONNECT', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + throttling: { + usages: 5, + duration: 30 + }, }); } run(msg: CommandoMessage) { diff --git a/src/commands/voice/minecraft.ts b/src/commands/voice/minecraft.ts index ea8fb6d..26175d3 100644 --- a/src/commands/voice/minecraft.ts +++ b/src/commands/voice/minecraft.ts @@ -24,7 +24,11 @@ module.exports = class MinecraftVoice extends Command { 'uwu!minecraft-soundtrack', 'uwu!mcs', 'uwu!mc-s' - ] + ], + throttling: { + usages: 1, + duration: 60 + }, }); } async run(msg: CommandoMessage) { diff --git a/src/commands/voice/pause.ts b/src/commands/voice/pause.ts index c2475d2..1f23661 100644 --- a/src/commands/voice/pause.ts +++ b/src/commands/voice/pause.ts @@ -12,6 +12,10 @@ module.exports = class PauseVoice extends Command { examples: ['uwu!pause'], clientPermissions: ['SPEAK', 'CONNECT', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + throttling: { + usages: 5, + duration: 30 + }, }); } run(msg: CommandoMessage) { diff --git a/src/commands/voice/play.ts b/src/commands/voice/play.ts index b60cb73..17bca2f 100644 --- a/src/commands/voice/play.ts +++ b/src/commands/voice/play.ts @@ -30,7 +30,11 @@ module.exports = class PlayVoice extends Command { examples: [ 'uwu!play https://www.youtube.com/watch?v=dQw4w9WgXcQ', 'uwu!play despacito' - ] + ], + throttling: { + usages: 5, + duration: 30 + }, }); } async run(msg: CommandoMessage, { query }) { diff --git a/src/commands/voice/psycho.ts b/src/commands/voice/psycho.ts index 115b0b8..8df19f8 100644 --- a/src/commands/voice/psycho.ts +++ b/src/commands/voice/psycho.ts @@ -17,7 +17,11 @@ module.exports = class PsychoVoice extends Command { guildOnly: true, clientPermissions: ['SPEAK', 'CONNECT', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - examples: ['uwu!psycho'] + examples: ['uwu!psycho'], + throttling: { + usages: 5, + duration: 30 + }, }); } async run(msg: CommandoMessage, { query }) { diff --git a/src/commands/voice/queue.ts b/src/commands/voice/queue.ts index 70d6e7c..3516a2e 100644 --- a/src/commands/voice/queue.ts +++ b/src/commands/voice/queue.ts @@ -31,6 +31,10 @@ module.exports = class QueueVoice extends Command { ], clientPermissions: ['SPEAK', 'CONNECT', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + throttling: { + usages: 5, + duration: 30 + }, }); } run(msg: CommandoMessage) { diff --git a/src/commands/voice/remove.ts b/src/commands/voice/remove.ts index 5d84f0c..41c8cbf 100644 --- a/src/commands/voice/remove.ts +++ b/src/commands/voice/remove.ts @@ -19,6 +19,10 @@ module.exports = class RemoveVoice extends Command { examples: ['uwu!remove 2'], clientPermissions: ['SPEAK', 'CONNECT', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + throttling: { + usages: 5, + duration: 30 + }, }); } run(msg: CommandoMessage, { songNumber }) { diff --git a/src/commands/voice/resume.ts b/src/commands/voice/resume.ts index 39874df..ffe150b 100644 --- a/src/commands/voice/resume.ts +++ b/src/commands/voice/resume.ts @@ -12,6 +12,10 @@ module.exports = class ResumeVoice extends Command { examples: ['uwu!resume'], clientPermissions: ['SPEAK', 'CONNECT', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + throttling: { + usages: 5, + duration: 30 + }, }); } run(msg: CommandoMessage) { diff --git a/src/commands/voice/shuffle.ts b/src/commands/voice/shuffle.ts index 8dcd141..bce34ac 100644 --- a/src/commands/voice/shuffle.ts +++ b/src/commands/voice/shuffle.ts @@ -13,6 +13,10 @@ module.exports = class ShuffleVoice extends Command { examples: ['uwu!shuffle'], clientPermissions: ['SPEAK', 'CONNECT', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + throttling: { + usages: 5, + duration: 30 + }, }); } run(msg: CommandoMessage) { diff --git a/src/commands/voice/skip.ts b/src/commands/voice/skip.ts index c8c4c62..8c8740b 100644 --- a/src/commands/voice/skip.ts +++ b/src/commands/voice/skip.ts @@ -12,6 +12,10 @@ module.exports = class SkipVoice extends Command { examples: ['uwu!skip'], clientPermissions: ['SPEAK', 'CONNECT', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + throttling: { + usages: 5, + duration: 30 + }, }); } run(msg: CommandoMessage) { diff --git a/src/commands/voice/skipall.ts b/src/commands/voice/skipall.ts index dbcfeb5..7d8b113 100644 --- a/src/commands/voice/skipall.ts +++ b/src/commands/voice/skipall.ts @@ -23,6 +23,10 @@ module.exports = class SkipAllVoice extends Command { ], clientPermissions: ['SPEAK', 'CONNECT', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + throttling: { + usages: 5, + duration: 30 + }, }); } run(msg: CommandoMessage) { diff --git a/src/commands/voice/skipto.ts b/src/commands/voice/skipto.ts index fab0d68..d11d200 100644 --- a/src/commands/voice/skipto.ts +++ b/src/commands/voice/skipto.ts @@ -17,6 +17,10 @@ module.exports = class SkipToVoice extends Command { examples: ['uwu!skipto 5'], clientPermissions: ['SPEAK', 'CONNECT', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + throttling: { + usages: 5, + duration: 30 + }, }); } run(msg: CommandoMessage, { songNumber }) { diff --git a/src/commands/voice/volume.ts b/src/commands/voice/volume.ts index debd798..483653e 100644 --- a/src/commands/voice/volume.ts +++ b/src/commands/voice/volume.ts @@ -24,6 +24,10 @@ module.exports = class VolumeVoice extends Command { ], clientPermissions: ['SPEAK', 'CONNECT', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + throttling: { + usages: 5, + duration: 30 + }, }); } run(msg: CommandoMessage, { wantedVol }) { |