mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 00:06:42 +02:00
Base imagemagick command throttling on response time
This commit is contained in:
@@ -11,7 +11,7 @@ module.exports = class CharcoalCommand extends Command {
|
||||
description: 'Draws an image or a user\'s avatar but with charcoal.',
|
||||
throttling: {
|
||||
usages: 1,
|
||||
duration: 60
|
||||
duration: 15
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
|
||||
@@ -11,7 +11,7 @@ module.exports = class EmbossCommand extends Command {
|
||||
description: 'Draws an image or a user\'s avatar but embossed.',
|
||||
throttling: {
|
||||
usages: 1,
|
||||
duration: 60
|
||||
duration: 15
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
|
||||
@@ -11,7 +11,7 @@ module.exports = class ImplodeCommand extends Command {
|
||||
description: 'Draws an image or a user\'s avatar but imploded.',
|
||||
throttling: {
|
||||
usages: 1,
|
||||
duration: 60
|
||||
duration: 15
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
|
||||
@@ -12,7 +12,7 @@ module.exports = class LiquidRescaleCommand extends Command {
|
||||
description: 'Draws an image or a user\'s avatar but with liquid rescale from ImageMagick.',
|
||||
throttling: {
|
||||
usages: 1,
|
||||
duration: 60
|
||||
duration: 30
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
|
||||
@@ -14,7 +14,7 @@ module.exports = class NoiseCommand extends Command {
|
||||
details: `**Types:** ${types.join(', ')}`,
|
||||
throttling: {
|
||||
usages: 1,
|
||||
duration: 60
|
||||
duration: 15
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
|
||||
@@ -12,7 +12,7 @@ module.exports = class OilPaintingCommand extends Command {
|
||||
description: 'Draws an image or a user\'s avatar but with oil paints.',
|
||||
throttling: {
|
||||
usages: 1,
|
||||
duration: 60
|
||||
duration: 15
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
|
||||
@@ -11,7 +11,7 @@ module.exports = class SwirlCommand extends Command {
|
||||
description: 'Draws an image or a user\'s avatar but swirled.',
|
||||
throttling: {
|
||||
usages: 1,
|
||||
duration: 60
|
||||
duration: 15
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "119.4.1",
|
||||
"version": "119.4.2",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user