fix text too long

This commit is contained in:
derpystuff 2023-08-08 23:07:32 +02:00
parent 77ca289d1e
commit b06b0fea03

View file

@ -31,7 +31,7 @@ module.exports = {
input: [args.text]
})
return editOrReply(context, {embeds:[createEmbed("default", context, {
description: codeblock("ansi", ["👤 " + format(args.text, "cyan") + "\n🤖 " + res.body.output]),
description: codeblock("ansi", ["👤 " + format(args.text, "cyan") + "\n🤖 " + res.body.output.substr(0, 2000 - args.text.length)]),
footer: {
text: `This information may be inaccurate or biased • ${context.application.name}`
}