diff --git a/bible/bible.py b/bible/bible.py index 8bd290a..91f888a 100644 --- a/bible/bible.py +++ b/bible/bible.py @@ -95,6 +95,10 @@ class Bible(commands.Cog): else: passage = await self._get_passage(bible_id, f"{book_id}.{passage.replace(':', '.')}") + if len(passage["content"]) > 4096: + await ctx.send("The passage is too long to send.") + return + embed = Embed(title=f"{passage['reference']}", description=passage["content"].replace('ΒΆ ', ''), color=await self.bot.get_embed_color(ctx.channel)) embed.set_footer(text=f"{ctx.prefix}bible passage - Powered by API.bible") await ctx.send(embed=embed)