Skip to content

Commit 3e75e1f

Browse files
Update end index display when slicing in the zen command
Co-authored-by: Vivek Ashokkumar <[email protected]>
1 parent 6d3cbfb commit 3e75e1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bot/exts/utils/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ async def zen(
133133
if not (start_index % len(zen_lines) < end_index % (len(zen_lines) + 1)):
134134
raise BadArgument("The start index for the slice must be smaller than the end index.")
135135

136-
embed.title += f" (lines {start_index%len(zen_lines)}-{end_index%len(zen_lines)}):"
136+
embed.title += f" (lines {start_index%len(zen_lines)}-{(end_index-1)%len(zen_lines)}):"
137137
embed.description = "\n".join(zen_lines[start_index:end_index])
138138
await ctx.send(embed=embed)
139139
return

0 commit comments

Comments
 (0)