From 33cc03d9102e623553e52f4d0cb21593106a21a4 Mon Sep 17 00:00:00 2001 From: derpystuff <3515180-derpystuff@users.noreply.gitlab.com> Date: Sun, 13 Aug 2023 23:08:47 +0200 Subject: [PATCH] fix issue --- commands/message/fun/chat.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commands/message/fun/chat.js b/commands/message/fun/chat.js index 0a8d296..c18d0d2 100644 --- a/commands/message/fun/chat.js +++ b/commands/message/fun/chat.js @@ -48,6 +48,8 @@ module.exports = { let description = [smallIconPill("generative_ai", args.text), ''] let files = []; + if(!res.body.output) res.body.output = '[Empty Response]' + if(res.body.output.length <= 2000) description.push(res.body.output.substr(0, 2000 - args.text.length)) else { files.push({