mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 22:34:46 +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.',
|
description: 'Draws an image or a user\'s avatar but with charcoal.',
|
||||||
throttling: {
|
throttling: {
|
||||||
usages: 1,
|
usages: 1,
|
||||||
duration: 60
|
duration: 15
|
||||||
},
|
},
|
||||||
clientPermissions: ['ATTACH_FILES'],
|
clientPermissions: ['ATTACH_FILES'],
|
||||||
credit: [
|
credit: [
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ module.exports = class EmbossCommand extends Command {
|
|||||||
description: 'Draws an image or a user\'s avatar but embossed.',
|
description: 'Draws an image or a user\'s avatar but embossed.',
|
||||||
throttling: {
|
throttling: {
|
||||||
usages: 1,
|
usages: 1,
|
||||||
duration: 60
|
duration: 15
|
||||||
},
|
},
|
||||||
clientPermissions: ['ATTACH_FILES'],
|
clientPermissions: ['ATTACH_FILES'],
|
||||||
credit: [
|
credit: [
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ module.exports = class ImplodeCommand extends Command {
|
|||||||
description: 'Draws an image or a user\'s avatar but imploded.',
|
description: 'Draws an image or a user\'s avatar but imploded.',
|
||||||
throttling: {
|
throttling: {
|
||||||
usages: 1,
|
usages: 1,
|
||||||
duration: 60
|
duration: 15
|
||||||
},
|
},
|
||||||
clientPermissions: ['ATTACH_FILES'],
|
clientPermissions: ['ATTACH_FILES'],
|
||||||
credit: [
|
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.',
|
description: 'Draws an image or a user\'s avatar but with liquid rescale from ImageMagick.',
|
||||||
throttling: {
|
throttling: {
|
||||||
usages: 1,
|
usages: 1,
|
||||||
duration: 60
|
duration: 30
|
||||||
},
|
},
|
||||||
clientPermissions: ['ATTACH_FILES'],
|
clientPermissions: ['ATTACH_FILES'],
|
||||||
credit: [
|
credit: [
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ module.exports = class NoiseCommand extends Command {
|
|||||||
details: `**Types:** ${types.join(', ')}`,
|
details: `**Types:** ${types.join(', ')}`,
|
||||||
throttling: {
|
throttling: {
|
||||||
usages: 1,
|
usages: 1,
|
||||||
duration: 60
|
duration: 15
|
||||||
},
|
},
|
||||||
clientPermissions: ['ATTACH_FILES'],
|
clientPermissions: ['ATTACH_FILES'],
|
||||||
credit: [
|
credit: [
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ module.exports = class OilPaintingCommand extends Command {
|
|||||||
description: 'Draws an image or a user\'s avatar but with oil paints.',
|
description: 'Draws an image or a user\'s avatar but with oil paints.',
|
||||||
throttling: {
|
throttling: {
|
||||||
usages: 1,
|
usages: 1,
|
||||||
duration: 60
|
duration: 15
|
||||||
},
|
},
|
||||||
clientPermissions: ['ATTACH_FILES'],
|
clientPermissions: ['ATTACH_FILES'],
|
||||||
credit: [
|
credit: [
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ module.exports = class SwirlCommand extends Command {
|
|||||||
description: 'Draws an image or a user\'s avatar but swirled.',
|
description: 'Draws an image or a user\'s avatar but swirled.',
|
||||||
throttling: {
|
throttling: {
|
||||||
usages: 1,
|
usages: 1,
|
||||||
duration: 60
|
duration: 15
|
||||||
},
|
},
|
||||||
clientPermissions: ['ATTACH_FILES'],
|
clientPermissions: ['ATTACH_FILES'],
|
||||||
credit: [
|
credit: [
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "119.4.1",
|
"version": "119.4.2",
|
||||||
"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