aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/exts/utils/utils.py2
1 files changed, 1 insertions, 1 deletions
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