From 85d6da09bf313d9899d6a35e742498e4ec0a8e2a Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Tue, 20 Feb 2018 03:23:48 +0000 Subject: [PATCH] Limit images to 4MB --- package.json | 2 +- types/image.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 91eb5b72..2e58e963 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "65.3.0", + "version": "65.3.1", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": { diff --git a/types/image.js b/types/image.js index 16b90a86..087885b6 100644 --- a/types/image.js +++ b/types/image.js @@ -12,7 +12,7 @@ class ImageArgumentType extends ArgumentType { return valid; } if (!attachment.height || !attachment.width) return false; - if (attachment.size > 8e+6) return false; + if (attachment.size > 4e+6) return false; return true; }