From 3e75e1f89b1539c55424621da87813b35196b39d Mon Sep 17 00:00:00 2001 From: Leandro Vandari <90213288+LeandroVandari@users.noreply.github.com> Date: Thu, 20 Mar 2025 06:36:27 -0300 Subject: Update end index display when slicing in the zen command Co-authored-by: Vivek Ashokkumar --- bot/exts/utils/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/exts/utils/utils.py b/bot/exts/utils/utils.py index e1443ee66..1bd5c500b 100644 --- a/bot/exts/utils/utils.py +++ b/bot/exts/utils/utils.py @@ -133,7 +133,7 @@ class Utils(Cog): if not (start_index % len(zen_lines) < end_index % (len(zen_lines) + 1)): raise BadArgument("The start index for the slice must be smaller than the end index.") - embed.title += f" (lines {start_index%len(zen_lines)}-{end_index%len(zen_lines)}):" + embed.title += f" (lines {start_index%len(zen_lines)}-{(end_index-1)%len(zen_lines)}):" embed.description = "\n".join(zen_lines[start_index:end_index]) await ctx.send(embed=embed) return -- cgit v1.2.3