Fix tail command off-by-1 error

This commit is contained in:
Zeva Rose 2022-04-19 17:09:20 -06:00
parent 94c1997ab0
commit 79a50e9059

View file

@ -23,7 +23,7 @@ class BotutilCog(Scale):
async with AIOFile("jarvis.log", "r") as af:
async for line in LineReader(af):
lines.append(line)
if len(lines) == count:
if len(lines) == count + 1:
lines.pop(0)
log = "".join(lines)
await ctx.reply(content=f"```\n{log}\n```")