diff --git a/botbotbot/__main__.py b/botbotbot/__main__.py index ec8bb33..af91d79 100644 --- a/botbotbot/__main__.py +++ b/botbotbot/__main__.py @@ -53,11 +53,14 @@ async def ai_reply(message): if prompt == "" and message.embeds: prompt = message.embeds[0].description answer = aibot.answer(prompt) - embed = discord.Embed( - description=answer, - thumbnail="https://mistral.ai/images/favicon/favicon-32x32.png", - ) - await message.reply(embed=embed) + if len(answer) > 2000: + embed = discord.Embed( + description=answer, + thumbnail="https://mistral.ai/images/favicon/favicon-32x32.png", + ) + await message.reply(embed=embed) + else: + await message.reply(answer) async def react(message):