From 1341714eed65d93961974b1582ad588efdeb0215 Mon Sep 17 00:00:00 2001 From: ChomeNS Date: Mon, 26 Dec 2022 13:58:08 +0700 Subject: [PATCH] amogus --- commands/draw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/draw.js b/commands/draw.js index 7ba5ca0..789f83f 100644 --- a/commands/draw.js +++ b/commands/draw.js @@ -34,7 +34,7 @@ module.exports = { bot.draw(data, info) } catch (_err) { - const e = image.data.toString() + const e = _err.toString() === 'Error: Input buffer contains unsupported image format' ? image.data.toString() : _err bot.tellraw(selector, { text: e, color: 'red' }) } }