fix issue

This commit is contained in:
derpystuff 2023-08-13 23:08:47 +02:00
parent ddb2a0cfa1
commit 33cc03d910

View file

@ -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({