Fix tail command off-by-1 error
This commit is contained in:
parent
94c1997ab0
commit
79a50e9059
1 changed files with 1 additions and 1 deletions
|
@ -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```")
|
||||
|
|
Loading…
Add table
Reference in a new issue