correction lines
This commit is contained in:
parent
0422668097
commit
a403422e10
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ class Mybot(commands.Cog):
|
||||||
|
|
||||||
@commands.command(help='count lines numbers in quote file')
|
@commands.command(help='count lines numbers in quote file')
|
||||||
async def lines(self, ctx):
|
async def lines(self, ctx):
|
||||||
path = here + '/' + ctx.channel
|
path = '/data/log/%s.log' % ctx.channel
|
||||||
with open(path, 'r') as f:
|
with open(path, 'r') as f:
|
||||||
lines = f.read().splitlines()
|
lines = f.read().splitlines()
|
||||||
nb_lines = len(lines)
|
nb_lines = len(lines)
|
||||||
|
|
Loading…
Reference in a new issue